CSS Transform Generator
Build a CSS transform visually - translate, rotate, scale, and skew - with a live preview.
Adjust translate, rotate, scale, and skew - the preview element updates live and the combined transform value is ready to copy.
More Frontend / CSS Tools
View all 20Pair this with the CSS Animation Generator if you want the transform to animate over time rather than apply statically.
What Does CSS transform Do?
The transform property moves, rotates, resizes, or skews an element visually without affecting the document's layout flow - multiple transform functions can be combined in one declaration.
Why Use This Tool?
Combining several transform functions (like rotate + scale together) changes the visual result depending on their order - seeing the live combined effect avoids trial-and-error editing.
How to Use It
- Adjust translate (X/Y), rotate (degrees), scale, and skew (X/Y) with the sliders.
- Watch the preview element update live.
- Copy the generated
transformCSS value.
Limitations
This covers standard 2D transform functions - 3D transforms (rotate3d, perspective, and similar) aren't included here.
Examples
/* Lift a card on hover */
.card:hover { transform: translateY(-4px) scale(1.02); }
/* Centre an element of unknown size */
.centered { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
/* Flip an icon horizontally */
.icon-flip { transform: scaleX(-1); }
Order Matters
Functions are applied from right to left in effect. rotate(45deg) translateX(100px) moves the element along its rotated axis, while translateX(100px) rotate(45deg) moves it right and then rotates it in place - two different results.
Why Animate Transforms
Animating transform and opacity is usually handled by the GPU without recalculating the page layout, so it stays smooth. Animating top, left, width or margin forces layout work on every frame and can stutter on phones.
Tips
- Change the pivot point with
transform-origin- for exampletop leftfor a dropdown that grows from its corner. - Transforms do not move other elements; the original space stays reserved.
- Individual properties (
translate,rotate,scale) are supported in modern browsers and are easier to animate separately.
Animate it with the CSS Animation Generator, or shape the element with the CSS Clip Path Generator.
Frequently Asked Questions
Explore More Tools
Keep going with related categories and our most used tools.