<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by samsakhavarz on Medium]]></title>
        <description><![CDATA[Stories by samsakhavarz on Medium]]></description>
        <link>https://medium.com/@samsakhavarz?source=rss-fc9e5f52bae3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qmeMzkkb5gMS7S77Bskr5g.jpeg</url>
            <title>Stories by samsakhavarz on Medium</title>
            <link>https://medium.com/@samsakhavarz?source=rss-fc9e5f52bae3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 20:11:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samsakhavarz/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Getting started with CSS knockout text effects]]></title>
            <link>https://medium.com/@samsakhavarz/getting-started-with-css-knockout-text-effects-fe0adb8c9937?source=rss-fc9e5f52bae3------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe0adb8c9937</guid>
            <category><![CDATA[knockout]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[text]]></category>
            <dc:creator><![CDATA[samsakhavarz]]></dc:creator>
            <pubDate>Wed, 05 Dec 2018 16:32:06 GMT</pubDate>
            <atom:updated>2018-12-05T16:32:06.572Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever visited a website, or seen some cool piece of graphic design with text that’s been clipped out to show another image/graphic in the background?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mbjlLIxFcnVTFzUs" /><figcaption>Photo by <a href="https://unsplash.com/@bernardhermant?utm_source=medium&amp;utm_medium=referral">Bernard Hermant</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>That’s typically referred to as knock-out text. It’s a very visually impactful styling that can add a real dramatic effect to your website. Many times, a designer will come up with this layering effect in Photoshop or some other design software and provide the final asset as a static flat image for wherever it’s being used.</p><p>But what about the web? What if you had a headline that was a key message in your website(e.g. h1 tag), but it was included as part of this flat image? This would create issues with accessibility on your website. A screen reader will have no way of reading that knock-out text if it’s been created as part of a flattened image.</p><p>Thankfully, CSS now lets us create this knock-out effects on actual HTML elements (e.g. &lt;h1&gt;, &lt;h2&gt;, etc…). Meaning, you can add a dramatic visual effect to elements of text that will be accessible on the web.</p><p>The magic is simply in the “mix-blend-mode” property within CSS!</p><p>Here’s a basic example to see how it works.</p><p>Let’s say you had an h1 tag in the header of your HTML, and you wanted to give it a cool knock-out text effect. Add your h1, like you normally would, but we’ll also put it in a “header-box” div (so we can move it around if we need to); plus, we’ll wrap those up in another div and give it a class of “backdrop”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*itlqGdQBO75h4ngfI8wAJg.png" /></figure><p>We will then use the “.backdrop” div (in our CSS) to contain what we want to see behind our text. In this example, we’re using an image (photo), but you can use any graphic — perhaps a coloured or textured graphic…whatever you feel like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1IGJbWwTts6zlqrqt8hsYg.png" /></figure><p>Going back to our h1, we will now give it a couple of class attributes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*sQn3eys0U2Fu2QV2Yi5GdA.png" /></figure><p>In our styling, we can then get working with the magic of mix-blend-modes! As you can see, we apply the mix-blend-mode property with a value of “multiply”, which matches the class attributes on our h1. Overall, there are <a href="https://css-tricks.com/almanac/properties/m/mix-blend-mode/">four blend modes</a> that can make text cutouts: multiply, screen, darken, and lighten. Applying these to the top element of a stack of image and text (have your text on top) creates the knockout design. In our example, we use white for our text colour and set the foreground to a darker layer. From there, the ‘multiply’ value blends these values resulting in the knocked out text effect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HYOGomPxi3oQdZjfEZybvQ.png" /></figure><p>Depending on your background/foreground colour combinations, you can experiment with the other mix-blend-mode values to get the desired effect.</p><p>In our example, we used a sheep image in the background and applied the text layer knockout effect on top of it, which results in this…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gwog-i5XZtQAWehs2HoJCg.png" /><figcaption>knock-out text effect with dad joke included :)</figcaption></figure><p>This should give you enough info to get started and experimenting with the effect. Again, this is very important to keep in mind for accessibility if you’re planning to apply dramatic text effects on major pieces of text content.</p><p>For more info on CSS knockout, check out this handy article from <a href="https://css-tricks.com/css-techniques-and-effects-for-knockout-text/">CSS Tricks</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe0adb8c9937" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The 40 Year-old Coding Virgin]]></title>
            <link>https://medium.com/@samsakhavarz/the-40-year-old-coding-virgin-f3d9d832b550?source=rss-fc9e5f52bae3------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3d9d832b550</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[career-change]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[samsakhavarz]]></dc:creator>
            <pubDate>Sun, 04 Nov 2018 20:07:59 GMT</pubDate>
            <atom:updated>2018-11-04T20:07:59.298Z</atom:updated>
            <content:encoded><![CDATA[<p>Can you make a career change at 40? I sure hope so, because that’s what I’m about to do.</p><p>When I came out of school 18 years ago, I wanted to work in the music industry — get a cool marketing job with a big record label, that was the dream. I almost made it too, landing an internship outside of school and did that for a few months — but I quickly became impatient with an unknown future <em>(remember when people stopped buying CD’s because they could download free MP3’s from Napster?)</em>, so I started looking elsewhere and ended up at an ad agency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5YMcbv_FUy3Y6W2S" /><figcaption>“turned off flat screen monitors on top of beige desks” by <a href="https://unsplash.com/@anniespratt?utm_source=medium&amp;utm_medium=referral">Annie Spratt</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>My first full-time salary job was an Account Coordinator in Direct Marketing — sometimes called Relationship Marketing, Direct Mail, or the less sexy ‘Junk Mail’. While it didn’t have the cool, hip vibe of perceived of ad agencies; e.g. Mad Men, Melrose Place, Who’s the Boss? <em>(Remember, the Bower Agency?)</em>, it was a great foundation for learning corporate/agency culture, collaborating with creative teams and interacting with clients.</p><p>Over the years, I stayed in account management but transitioned onto digital; e.g. banner ads, microsites, etc…I even jumped onto some client-side roles for the experience, but didn’t really click with that corporate culture. Agencies seemed to be a good fit for me, and I worked my way up to the title of Account Director.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5xG5fy3zSTo3LtKE" /><figcaption>“opened book near pink cloth” by <a href="https://unsplash.com/@justinecz?utm_source=medium&amp;utm_medium=referral">Justine Camacho</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Throughout my career, I would always picture my next chapter/move . I would visualize moving from a junior account role to one with more experience, getting a senior title and managing other account people — and this all worked well, until I reached the Account Director title. I couldn’t see what the next chapter looked like and now I was 40. Did I want to be a VP? President? <strong>No thanks</strong>. So what was next? I felt like I had reached my shelf-life as an agency account person. As I looked around the office, all the 20-somethings were moving up the ranks at a frighteningly fast pace and now sharing the same Director title.</p><p>It’s important to note that the role of an agency account person has changed over the past decade, in my opinion. An Account Director used to mentor/manage large teams, lead briefings, develop strategic plans, be a go-to for clients — a real senior trusted advisor. The reality today, is that the Director mostly facilitates…facilitates meetings, conversations; make sure this person does this, this person does that, get these two people in a room to talk about what they did, make sure to tell the client what they did <em>and</em> that they talked!….it started to feel like herding cats.</p><p>I started getting into a really dark head space, not knowing what was next for me, feeling demotivated with nothing left to contribute. That’s when all the ‘career change at 40’ Google searches started. I was really nervous about it at first — can I start over again at the age of 40? But then I realized something: I’ve only been working for about 17 years. I have 20+ more years of work in front of me; i.e. more than the time I’ve worked so far. When I thought of it like that, it became less scary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yRsYQ-5P-PQD4AVb" /><figcaption>“roadway during day time” by <a href="https://unsplash.com/@florianzeh?utm_source=medium&amp;utm_medium=referral">Florian Zeh</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>So what was I going to do next? After giving it some thought, I realized — why not stay in digital (the space you love and know), but change roles and learn how to build these innovative tools and web experiences I was selling to clients? How much more rewarding would it be to have the knowledge to create these experiences first-hand and feel like a truly valued resource?</p><p>So that was it — I looked into some part-time courses, got my feet wet in coding and realized this was something I could see myself doing for the rest of my career. I’m now in a full-time immersive web development bootcamp at <a href="http://hackeryou.com/">HackerYou</a> and feel like I belong again — in a truly welcoming and supportive developer community.</p><p>So after about 10 months of some murkiness, I’m starting to see what the next chapter is going to look like again — and it’s really exciting.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3d9d832b550" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>