CSS · Properties — CSS Masking

mask

The CSS mask property. Initial value: mask-image,mask-mode,mask-repeat,mask-position,mask-clip,mask-origin,mask-size,mask-composite. Not inherited.

Syntax
mask: <mask-layer>#

Example

Try it

Notes

Media: visual. Applies to: allElementsSVGContainerElements. Computed value: mask-image,mask-mode,mask-repeat,mask-position,mask-clip,mask-origin,mask-size,mask-composite.

More in this group

clip-path clip-rule mask-border mask-border-mode mask-border-outset mask-border-repeat mask-border-slice mask-border-source

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course