Nick Taylor 1/9/2019

The CSS mask property

Read Original

This article introduces the CSS mask property, comparing it to a cookie cutter for selectively revealing parts of a background. It provides a real-world example of dynamically coloring an SVG icon (like the dev.to logo) to match a site's theme, using a CodePen demo with CSS variables and JavaScript. Browser support and fallbacks for Internet Explorer are also discussed.

The CSS mask property

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week