Transforms
Utilities for controlling if an elements children are placed in 3D space.
Class | Styles |
---|---|
transform-3d | transform-style: preserve-3d; |
transform-flat | transform-style: flat; |
Use transform-3d
to position children in 3D space:
Without this, any children will only be transformed in 2D space and not in 3D space.
Prefix a transform-style
utility with a breakpoint variant like md:
to only apply the utility at medium screen sizes and above:
<div class="transform-3d md:transform-flat ..."> <!-- ... --></div>
Learn more about using variants in the variants documentation.