rotate

An individual transform property that rotates an element around a fixed point (the transform-origin) without needing the shorthand transform property.

It is documented as part of the CSS Transforms specification.

/* Usage Example */
.icon-rotated {
  rotate: 45deg;
  /* tilts the icon by 45 degrees */
}

/* Syntax */
rotate: none;

/* Global values */
rotate: inherit;
rotate: initial;
rotate: revert;
rotate: revert-layer;
rotate: unset;
Widely available Since 2022 94% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2022.

104+
72+
14.1+
104+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC