What Is the CSS Transform Playground?
Experiment with CSS transforms interactively — rotate, scale, skew, translate, and apply 3D perspective in real time. Copy the generated CSS.
Why Use This Tool?
CSS transforms are powerful but hard to visualize from code alone. This playground lets you drag sliders and see the effect immediately, making it easy to find the right combination of rotation, scale, skew, and perspective.
How to Use This CSS Transform Playground
- Select a transform function — Choose from translate, rotate, scale, skew, or combine multiple transforms.
- Adjust the values — Use the sliders or inputs to set the transform parameters — degrees for rotation, pixels for translation, percentages for scale.
- Preview the result — Watch the element transform in real time as you adjust values. The preview shows both the original and transformed states.
- Copy the CSS — Click Copy to grab the complete
transformproperty declaration.
Worked example: where the perspective has to go
The perspective property applies to an element’s children, not to the element itself, so where the depth goes decides whether a rotateX or rotateY looks 3D. On October 12, 2026 we rendered a 200 × 150 px box with rotateY(45deg) in Chromium three ways and measured the two vertical edges (before October 12 the tool copied the first version):
| Where the perspective is | Near edge | Far edge | Looks 3D? |
|---|---|---|---|
| On the element (what the tool copied before Oct 12, 2026) | 150 px | 150 px | No: just a narrower rectangle |
| perspective: 800px on the parent | 164 px | 138 px | Yes |
| transform: perspective(800px) rotateY(45deg) | 164 px | 138 px | Yes, identical |
- What the tool copies now: when rotateX or rotateY is set, the transform starts with perspective(800px) (or your value), as in the third row, and the preview renders that exact rule; 2D-only settings get no perspective at all. If several children should share one vanishing point, delete the perspective() and put
perspective: 800pxon their parent instead. In our check of the copied rule, the edges of a 160 px card at rotateY(45deg) measured 171 and 149 px (they measured 159 and 159 before the fix). - The order is fixed by the tool: translate, rotate, rotateX, rotateY, scale, skew. Functions apply in the order written, each in the coordinate system the previous ones left, so translate then rotate spins the box in place after moving it, while rotate then translate moves it along the rotated axis. Reorder the copied string if you need the other effect.
- Smaller perspective, stronger effect. Perspective is the viewer's distance in px: 800 px gave a 26 px difference between the near and far edges at 45°; around 300 px looks dramatic, above 1500 px almost flat.
- Transforms do not move other elements. The box keeps its original space in the layout; a scaled or translated element can overlap its neighbours, and hit testing follows the transformed shape.
- transform-origin (0–100% on each axis here) sets the pivot for rotate, scale and skew; it does not affect translate.
Sources
Checked on .
Frequently Asked Questions
Built by Derek Giordano · Part of Ultimate Design Tools