CSS
CSS TransformsCSS Transforms
CSS transforms rotate, scale, and move elements visually.
Read Time
5 min readDifficulty
BeginnerLast Updated
Jun 15, 2026Version
v1.0.0Introduction
CSS transforms manipulate the geometry of an element. Developers use them to spin icons, zoom into images on hover, or slightly nudge an element without disrupting the surrounding layout. The browser renders transforms efficiently using hardware acceleration.
Example
Example
Key Points
- The `rotate()` function spins the element.
- The `scale()` function shrinks or enlarges the element.
- The `translate()` function pushes the element horizontally or vertically.
- The `skew()` function tilts the element on its axes.