transform
Utilities for transforming elements.
| Class | Effect |
|---|---|
transform-[<value>] |
transform: <value>; |
transform-none |
transform: none; |
transform-gpu |
transform: translateZ(0) var(--tw-rotate-x) var(--tw-rotate-y) var(--tw-rotate-z) var(--tw-skew-x) var(--tw-skew-y); |
transform-cpu |
transform: var(--tw-rotate-x) var(--tw-rotate-y) var(--tw-rotate-z) var(--tw-skew-x) var(--tw-skew-y); |
Examples
Section titled “Examples”Combining transforms
Section titled “Combining transforms”Translate, rotate, scale and skew compose in one matrix around transform-origin, and hit testing follows the transformed shape.


ui.button("Click me", "rounded-lg bg-indigo-500 px-5 py-2 text-sm font-semibold text-white shadow-lg rotate-6 scale-110 transition hover:rotate-0 hover:scale-100")