mask-origin

Class Description

mask-origin-border

Sets mask-origin to border-box, positioning the mask relative to the border edge.

CSS Rules

.mask-origin-border {
  mask-origin: border-box;
}

Usage

<element class="mask-origin-border" />

Responsive

Prefix .mask-origin-border utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:mask-origin-border" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="mask-origin-border:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="mask-origin-border:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before mask-origin-border::before" />

<element class="content-after mask-origin-border::after" />
.mask-origin-border Sets mask-origin to border-box, positioning the mask relative to the border edge.

mask-origin-padding

Sets mask-origin to padding-box, positioning the mask relative to the padding edge.

CSS Rules

.mask-origin-padding {
  mask-origin: padding-box;
}

Usage

<element class="mask-origin-padding" />

Responsive

Prefix .mask-origin-padding utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:mask-origin-padding" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="mask-origin-padding:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="mask-origin-padding:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before mask-origin-padding::before" />

<element class="content-after mask-origin-padding::after" />
.mask-origin-padding Sets mask-origin to padding-box, positioning the mask relative to the padding edge.

mask-origin-content

Sets mask-origin to content-box, positioning the mask relative to the content edge.

CSS Rules

.mask-origin-content {
  mask-origin: content-box;
}

Usage

<element class="mask-origin-content" />

Responsive

Prefix .mask-origin-content utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:mask-origin-content" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="mask-origin-content:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="mask-origin-content:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before mask-origin-content::before" />

<element class="content-after mask-origin-content::after" />
.mask-origin-content Sets mask-origin to content-box, positioning the mask relative to the content edge.

mask-origin-fill

Sets mask-origin to fill-box, positioning the mask relative to the SVG object's fill area.

CSS Rules

.mask-origin-fill {
  mask-origin: fill-box;
}

Usage

<element class="mask-origin-fill" />

Responsive

Prefix .mask-origin-fill utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:mask-origin-fill" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="mask-origin-fill:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="mask-origin-fill:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before mask-origin-fill::before" />

<element class="content-after mask-origin-fill::after" />
.mask-origin-fill Sets mask-origin to fill-box, positioning the mask relative to the SVG object's fill area.

mask-origin-stroke

Sets mask-origin to stroke-box, positioning the mask relative to the SVG object's stroke area.

CSS Rules

.mask-origin-stroke {
  mask-origin: stroke-box;
}

Usage

<element class="mask-origin-stroke" />

Responsive

Prefix .mask-origin-stroke utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:mask-origin-stroke" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="mask-origin-stroke:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="mask-origin-stroke:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before mask-origin-stroke::before" />

<element class="content-after mask-origin-stroke::after" />
.mask-origin-stroke Sets mask-origin to stroke-box, positioning the mask relative to the SVG object's stroke area.

mask-origin-view

Sets mask-origin to view-box, positioning the mask relative to the SVG viewport.

CSS Rules

.mask-origin-view {
  mask-origin: view-box;
}

Usage

<element class="mask-origin-view" />

Responsive

Prefix .mask-origin-view utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:mask-origin-view" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="mask-origin-view:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="mask-origin-view:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before mask-origin-view::before" />

<element class="content-after mask-origin-view::after" />
.mask-origin-view Sets mask-origin to view-box, positioning the mask relative to the SVG viewport.