CSS transform Property Explained

What the CSS transform property does, with an example.

Published November 5, 2026

The CSS transform property applies 2D or 3D transformations like rotation, scaling, or translation to an element.

Key points

  • Check browser compatibility on a resource like caniuse.com if targeting older browsers

Example

transform: rotate(45deg);
More CSS articles