Skip to main content
T

CSS Transform Generator

NEW

Compose CSS transforms with sliders — translate, scale, rotate, skew and full 3D — and copy the transform property.

2D transforms

3D transforms

Preview

BOX

CSS

Send output to:
Advertisement

How to use CSS Transform Generator

  1. Adjust the 2D sliders for translate, scale, rotate and skew.
  2. Pick a transform-origin to change the pivot point.
  3. Open the 3D section to set rotateX/Y/Z, translateZ and a parent perspective.
  4. Click Copy CSS to grab the transform declaration.

What is CSS Transform Generator?

The CSS Transform Generator builds the transform property visually. Use the 2D sliders for translateX/Y, scaleX/Y, rotate and skewX/Y, set the transform-origin, then drop into the 3D section for rotateX, rotateY, rotateZ, translateZ and a parent perspective.

A gridded preview box with a labelled element shows the result in real time, so you can see exactly how each function stacks. The order of functions matters in CSS, and the generated declaration keeps a sensible, predictable order for you.

Everything runs in your browser. Copy the resulting transform line — along with any transform-origin and perspective rules — and paste it into your stylesheet.

Advertisement

FAQ

Why does the order of transform functions matter?
CSS applies transform functions left to right, so rotating then translating gives a different result than translating then rotating. The generator outputs them in a consistent order; adjust your CSS if you need a specific sequence.
Why is perspective on the parent and not the box?
For 3D rotations to look correct, perspective is usually set on the parent (the element containing the transformed box). The tool applies it to the preview stage and notes this in the generated CSS comment.

Related tools

← Back to Developer Tools · All tags

Last updated:

Advertisement