Lifted card on hover
translateY(-4px) scale(1.02).card:hover { transform: translateY(-4px) scale(1.02); transition: transform 0.2s ease; }Your shortcut to the everyday. Create, convert, calculate,
and get back to what you love.
Combine translate, rotate, scale, and skew with live matrix feedback and CSS export.
Loading interactive tool…
CSS transforms — translate, rotate, scale, skew, and their 3D variants — are the foundation of hover lift effects, card flips, skewed hero backgrounds, and GPU-accelerated animations. The catch is that transform functions compose in sequence: rotate then translate produces a different result than translate then rotate, a fact that trips up developers used to thinking of transforms as commutative operations. The CSS Transform Playground lets you stack any combination of transform functions and drag their sliders, reorder them by dragging, and see the resulting element update in real time. Set a custom transform-origin for hinge and pivot effects, add perspective for 3D depth, and copy the final combined transform shorthand with the composition order you tested.
All Transform Functions: Translate, rotate, scale, skew, translateX/Y/Z, rotateX/Y/Z, and scaleZ are all available as toggleable function slots. Mix 2D and 3D transforms in the same stack and see how they interact, without switching between tools or writing test code.
Stack Order: Transform functions apply in written order — the first function in the declaration transforms first, affecting the coordinate system for every subsequent function. The playground makes this concrete by letting you drag functions up or down in the stack and watching the result shift.
Live Cube: A 3D sample element with visible faces rotates and translates in real time as you adjust function values. This makes 3D perspective, rotateX, and rotateY transforms intuitive rather than abstract, and helps you detect gimbal-lock-style issues before shipping.
3D Perspective: Enable the perspective slider to add depth to 3D transforms. Without perspective, rotateY(45deg) looks like a flat scale — with perspective(600px), the near edge looks larger and the far edge recedes. Adjust the value to control how dramatic the depth effect appears.
Origin Picker: A visual nine-point grid sets transform-origin to corners, edges, or center. Changing the origin changes where rotation pivots and where scale expands from, enabling hinge effects, corner zooms, and perspective-correct card flips.
Copy CSS: The output is a single transform declaration with all active functions in the exact order you tested them. The transform shorthand preserves composition order faithfully — the playground prevents the common mistake of copying functions in wrong order from DevTools.
translateY(-4px) scale(1.02).card:hover { transform: translateY(-4px) scale(1.02); transition: transform 0.2s ease; }rotate(-3deg) skewX(2deg).polaroid { transform: rotate(-3deg) skewX(2deg); }perspective(600px) rotateY(180deg), transform-style preserve-3d.card-back { transform: perspective(600px) rotateY(180deg); transform-style: preserve-3d; backface-visibility: hidden; }