![]() |
VOOZH | about |
The mask-image property in CSS is used to set the mask of an image or a text. It is used to form a mask layer for a particular element in CSS.
Syntax:
mask-image: none | <mask-source>Syntax:
mask-image: noneExample:
In this example, no mask is created.
Output:
<mask-source>: Used to give the source of the image url.
Syntax:
mask-image: url();Example :
The icon is a mask over background color which is black. It can be changed as required.
Output:
Browsers supported: