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.
Syntax
/* 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;
rotate Browser support
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+