CSS Transform Generator
Set rotation, scale, skew, translate and the transform origin, preview the result on a box and copy the transform CSS.
Set rotation, scale, skew, translate and the transform origin, preview the result on a box and copy the transform CSS.
The CSS transform property moves, rotates, scales and skews an element without changing the layout around it. Several functions can be combined in one declaration.
Enter your values, check the preview box and copy the transform and transform-origin lines. Functions you leave at their default are left out of the output.
transform: rotate(15deg) scale(1.2); transform-origin: center;
Yes. Transforms apply right to left, so translate then rotate gives a different result from rotate then translate. This tool writes translate, rotate, scale, skew in that order.
It sets the point the element rotates, scales or skews around. The default is the center.
No. The element keeps its original space, so neighbours do not move. Only how it is painted changes.
Add a transition or @keyframes that changes the transform value. The CSS Transition and Animation Generator on this site can write that for you.
A skew of 90 degrees flattens the element to a line, so the inputs stop just before that.