CSS 2D Transform Lab
Preview ordered translation, rotation, scaling and skew with origin controls and an equivalent affine matrix.
Loading tool…
How to use CSS 2D Transform Lab
See why rearranging CSS transform functions changes the result. A native 120 by 80 pixel rectangle shows the selected origin and ordered functions; the exported matrix describes their combined transform before origin translation.
- Choose the bounded settings and select Run tool.
- Inspect the native preview and generated CSS. Smaller screens can scroll inside a fixed-size layout preview.
- Copy or download the CSS, then adapt selectors and test real content in your own project.
Good to know
- Order keys mean translate/rotate/scale, rotate/translate/scale, or scale/rotate/translate; skew is always last in the written list. CSS applies the rightmost function first.
- Only 2D affine transforms are supported. Zero scale or a singular combination can make the rectangle disappear. The viewport scrolls or clips extreme transformed bounds.
- No HTML or CSS input is executed. Only known properties, enumerated choices and bounded numbers reach this preview. No data leaves this tab.
Common questions
Is the generated CSS ready for every production page?
Adapt selectors, dimensions and origin to your element. This tool does not model 3D perspective, layout reflow, animation or calibrated image transforms.
Does the preview upload information or import a framework?
No. It uses native browser rendering with original local demonstration content. It makes no external requests, saves no history and requires no framework.
Keep going with related tools
All developer →CSS Grid Layout Builder
Generate fixed columns or auto-fitting CSS card grids with native layout, spacing and row-size previews.
DeveloperCubic Bezier Easing Lab
Plot CSS cubic-bezier timing curves and inspect eased progress without automatically playing an animation.
DeveloperCSS Keyframe Timeline Builder
Build a typed transform and opacity timeline, then download actual CSS or a fixed standalone animation demonstration.