| Class | Description | |
|---|---|---|
mask-sizeScales the mask layer that controls which parts of an element are visible. CSS Rules Usage
The .mask-size
class is flagged as a value-driven selector.
The variable --mask-size is required. Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The Shorthand
Value-driven classes support a shorthand syntax like CLS Alert
This feature may cause CLS (Cumulative Layout
Shift). Make sure to include a
| .mask-size | Scales the mask layer that controls which parts of an element are visible. |
mask-autoSets mask-size to auto, rendering the mask image at its natural size. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .mask-auto | Sets mask-size to auto, rendering the mask image at its natural size. |
mask-coverSets mask-size to cover, scaling the mask image to fully cover the element. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .mask-cover | Sets mask-size to cover, scaling the mask image to fully cover the element. |
mask-containSets mask-size to contain, scaling the mask image to fit fully within the element. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .mask-contain | Sets mask-size to contain, scaling the mask image to fit fully within the element. |