Build a CSS transform string from translate, rotate, scale and skew controls and preview the result.
transform: none;Transform function order matters. This tool uses translate → rotate → scale → skew in that fixed order.
How to build a CSS transform
- Use Translate X and Y to move the preview in pixels. Positive X moves right; positive Y moves down.
- Set rotation and skew in degrees. Use Scale X and Y to resize each axis: 1 keeps the original size, 0.5 halves it, and 2 doubles it.
- Review the preview and generated declaration, then select Copy CSS. Paste the declaration into your element’s CSS rule.
- Select Reset to restore the original preview and
transform: none;.
A practical example
Set Translate X to 20, Rotate to 15, and both scale values to 1.2. With the other values at zero, the generated declaration is transform: translate(20px, 0px) rotate(15deg) scale(1.2, 1.2);. Try it on a card or icon and check the surrounding layout before using it in a finished interface.
Why transform order matters
The output lists functions in a fixed order: translate, rotate, scale, then skew. Reordering them can change the result because each transform affects the coordinate system used by the others. The preview uses the browser’s default center origin; a different transform-origin on your own element may change the appearance.
Limits and common questions
Why does the transformed box overlap nearby content?
A CSS transform changes the visual appearance without reallocating the element’s original layout space. Leave enough space in your own design. The preview area clips content outside its bounds, so very large translations can move the box out of view.
Why did the box disappear or flip?
A zero scale collapses an axis. A negative scale mirrors that axis. Reset returns both scale values to 1. Large skew values, especially near 90 degrees, can create extreme distortion.
Does this generate animations or 3D transforms?
No. It generates one static 2D transform declaration. Add transitions or keyframes separately, and test readability, interaction and reduced-motion preferences when introducing animation.
Combine the result with a CSS gradient or browse Developer Tools. Reference: MDN transform documentation.