Skip to main content

Mask Repeat

Utilities for controlling the repetition of an element's mask image.

CSS Property:mask-repeat
Classes:6

Mask Repeat Classes

ClassCSS
mask-repeatmask-repeat: repeat;
mask-no-repeatmask-repeat: no-repeat;
mask-repeat-xmask-repeat: repeat-x;
mask-repeat-ymask-repeat: repeat-y;
mask-repeat-roundmask-repeat: round;
mask-repeat-spacemask-repeat: space;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[mask-repeat:value]

Responsive Variants

Apply mask repeat utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:mask-repeat
768px+md:md:mask-repeat
1024px+lg:lg:mask-repeat
1280px+xl:xl:mask-repeat
1536px+2xl:2xl:mask-repeat