Boneyard Tools

CSS Transform Generator

Compose a CSS transform without remembering the syntax. Adjust translate, rotate, scale and skew, set a transform-origin, see the box move in a live preview, then copy the generated transform rule. Only the parts you change are written out, so the output stays clean.

How to generate a CSS transform

  1. Drag the translate, rotate, scale and skew sliders to move the box.
  2. Set the transform-origin if you want rotation or scale to pivot somewhere other than the center.
  3. Copy the generated transform code from the output box into your stylesheet.

Examples

Translate, rotate and scale together

translateX 10, translateY 20, rotate 45, scale 1.2
transform: translate(10px, 20px) rotate(45deg) scale(1.2);

Skew on one axis

skewX 10
transform: skewX(10deg);

Rotate around the top-left corner

rotate 45, transform-origin top left
transform: rotate(45deg);
transform-origin: top left;

Frequently asked questions

What does the CSS transform property do?

Transform lets you move, rotate, scale and skew an element without changing the surrounding layout. The element shifts visually but still takes up its original space, which makes transforms ideal for hover effects, animations and adjustments that should not push other content around.

Why does the output only show some functions?

Each transform function has an identity value that does nothing: translate 0, rotate 0, scale 1 and skew 0. The generator skips any axis still at its identity, so you only see the parts you actually changed. If everything is at its default the value is simply none.

When is scale() written instead of scaleX and scaleY?

When the horizontal and vertical scale match, the tool collapses them into a single scale() for shorter code. If the two axes differ it writes scaleX() and scaleY() separately so each direction keeps its own factor.

What does transform-origin change?

Transform-origin sets the pivot point that rotate and scale work around. The default is the center, so a rotation spins in place. Set it to a corner like top left or a percentage pair to make the element rotate or scale from that point instead.

Does the order of transform functions matter?

Yes. Transforms apply from left to right, so rotating then translating differs from translating then rotating. This tool always emits a consistent order (translate, rotate, scale, skew); if you need a different sequence, reorder the functions in the copied value by hand.

Is my work sent to a server?

No. The live preview and the generated transform code are computed entirely in your browser, so nothing about your design leaves your device.

Related tools