Skip to main content
100%

CSS Mask test

✓ Published0🌍 Public
TThanaporn-sk
Last edited Mar 9, 2017
Created on Mar 9, 2017

This example demonstrates how CSS masking can display icons from a sprite sheet in different colors and levels of transparency. It uses the `-webkit-mask-image` property with the Bootstrap glyphicons halflings sprite as the mask source, applying solid green and semi-transparent black background colors to the masked elements. The code also includes a traditional CSS sprite technique using `background-image` and `background-position` to show the same icons unmasked, allowing for a side-by-side comparison of the two rendering approaches.

AI-generated description

Playing with CSS masking sprites.

forked from <a href='http://bl.ocks.org/nmu/'>nmu</a>'s block: <a href='http://bl.ocks.org/nmu/7997037'>CSS Sprite Mask</a>

mit Licensed

Similar vizzes