Published at
Updated at
Reading time
1min

Here's Kilian over on the Polypane blog with a nice explanation of how to create text that fades out with CSS mask-image.

Using mask-image is smart.

HTML
CSS
Preview

Nice one! Bookmarked for later.😉

Was this snippet helpful?
Yes? Cool! You might want to check out Web Weekly for more snippets. The last edition went out 1 days ago.

Related Topics

Related Articles

About the author

Stefan standing in the park in front of a green background

Frontend nerd with over ten years of experience, "Today I Learned" blogger, conference speaker, Tiny helpers maintainer, and DevRel at Checkly.