The mask filter add the mask effect to the element.
Changes the transparent area to the specified color, and changes the non-transparent area to transparent.
#example {
filter: mask(color=#0000ff);
}
Attribute |
Value |
Explanation |
color |
color code or name |
the color of the transparent area |
Example