The .translate
class is flagged as a value-driven selector.
The variable --translate is required.
<element class="translate" style="--translate: /* value */;" />
Responsive
Prefix
.translate
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:translate" style="--md-translate: /* value */;" />
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
.
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 translate::before" style="--translate-before: /* value */;" /><element class="content-after translate::after" style="--translate-after: /* value */;" />
Shorthand
Value-driven classes support a shorthand syntax like bg=pink or p=4. The runtime
processes this for you. Unlike :hover that is
generating CSS on the fly, shorthand only splits it
and appends the corresponding style.
The .[translate]
class is flagged as a value-driven selector.
The variable --translate is required.
<element class="[translate]" style="--translate: /* value */;" />
Responsive
Prefix
.[translate]
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:[translate]" style="--md-translate: /* value */;" />
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
.
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 [translate]::before" style="--translate-before: /* value */;" /><element class="content-after [translate]::after" style="--translate-after: /* value */;" />
Shorthand
Value-driven classes support a shorthand syntax like bg=pink or p=4. The runtime
processes this for you. Unlike :hover that is
generating CSS on the fly, shorthand only splits it
and appends the corresponding style.
The .translate-x
class is flagged as a value-driven selector.
The variable --translate-x is required.
<element class="translate-x" style="--translate-x: /* value */;" />
Responsive
Prefix
.translate-x
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:translate-x" style="--md-translate-x: /* value */;" />
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
.
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 translate-x::before" style="--translate-x-before: /* value */;" /><element class="content-after translate-x::after" style="--translate-x-after: /* value */;" />
Shorthand
Value-driven classes support a shorthand syntax like bg=pink or p=4. The runtime
processes this for you. Unlike :hover that is
generating CSS on the fly, shorthand only splits it
and appends the corresponding style.
The .[translate-x]
class is flagged as a value-driven selector.
The variable --translate-x is required.
<element class="[translate-x]" style="--translate-x: /* value */;" />
Responsive
Prefix
.[translate-x]
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:[translate-x]" style="--md-translate-x: /* value */;" />
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
.
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 [translate-x]::before" style="--translate-x-before: /* value */;" /><element class="content-after [translate-x]::after" style="--translate-x-after: /* value */;" />
Shorthand
Value-driven classes support a shorthand syntax like bg=pink or p=4. The runtime
processes this for you. Unlike :hover that is
generating CSS on the fly, shorthand only splits it
and appends the corresponding style.
The .translate-y
class is flagged as a value-driven selector.
The variable --translate-y is required.
<element class="translate-y" style="--translate-y: /* value */;" />
Responsive
Prefix
.translate-y
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:translate-y" style="--md-translate-y: /* value */;" />
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
.
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 translate-y::before" style="--translate-y-before: /* value */;" /><element class="content-after translate-y::after" style="--translate-y-after: /* value */;" />
Shorthand
Value-driven classes support a shorthand syntax like bg=pink or p=4. The runtime
processes this for you. Unlike :hover that is
generating CSS on the fly, shorthand only splits it
and appends the corresponding style.
The .[translate-y]
class is flagged as a value-driven selector.
The variable --translate-y is required.
<element class="[translate-y]" style="--translate-y: /* value */;" />
Responsive
Prefix
.[translate-y]
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:[translate-y]" style="--md-translate-y: /* value */;" />
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
.
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 [translate-y]::before" style="--translate-y-before: /* value */;" /><element class="content-after [translate-y]::after" style="--translate-y-after: /* value */;" />
Shorthand
Value-driven classes support a shorthand syntax like bg=pink or p=4. The runtime
processes this for you. Unlike :hover that is
generating CSS on the fly, shorthand only splits it
and appends the corresponding style.
The .translate-z
class is flagged as a value-driven selector.
The variable --translate-z is required.
<element class="translate-z" style="--translate-z: /* value */;" />
Responsive
Prefix
.translate-z
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:translate-z" style="--md-translate-z: /* value */;" />
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
.
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 translate-z::before" style="--translate-z-before: /* value */;" /><element class="content-after translate-z::after" style="--translate-z-after: /* value */;" />
Shorthand
Value-driven classes support a shorthand syntax like bg=pink or p=4. The runtime
processes this for you. Unlike :hover that is
generating CSS on the fly, shorthand only splits it
and appends the corresponding style.
The .[translate-z]
class is flagged as a value-driven selector.
The variable --translate-z is required.
<element class="[translate-z]" style="--translate-z: /* value */;" />
Responsive
Prefix
.[translate-z]
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:[translate-z]" style="--md-translate-z: /* value */;" />
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
.
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 [translate-z]::before" style="--translate-z-before: /* value */;" /><element class="content-after [translate-z]::after" style="--translate-z-after: /* value */;" />
Shorthand
Value-driven classes support a shorthand syntax like bg=pink or p=4. The runtime
processes this for you. Unlike :hover that is
generating CSS on the fly, shorthand only splits it
and appends the corresponding style.
This feature may cause CLS (Cumulative Layout
Shift). Make sure to include a
z-not-ready
class in your <head>
tag.
.[translate-z]
Applies raw --translate-z directly to z-axis translation for 3D depth movement.
translate-none
Resets translation by setting the translate property to none.
CSS Rules
.translate-none { translate: none;}
Usage
<element class="translate-none" />
Responsive
Prefix
.translate-none
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:translate-none" />
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
.
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.