rotate
Widely availableSince 202296% of users
An individual transform property that rotates an element around a fixed point (the transform-origin) without needing the shorthand transform property.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since August 2022. Widely available since February 2025.
The old way and the modern waySee the snippet: Independent transforms without the shorthand →
Old way 6 lines
.icon {
transform: translateX(10px) rotate(45deg) scale(1.2);
}
.icon:hover {
transform: translateX(10px) rotate(90deg) scale(1.2);
}Modern 8 lines
.icon {
translate: 10px 0;
rotate: 45deg;
scale: 1.2;
}
.icon:hover {
rotate: 90deg;
}See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
none- Inherited
- No
- Applies to
- transformable elements
- Animation type
- transform
Quick example
.icon-rotated {
rotate: 45deg;
/* tilts the icon by 45 degrees */
}Values
nonerotate browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2022.Safe to use without fallbacks.
Usage96%of people can use this4% use a browser without it.
Browsers
104+
72+
14.1+
104+Mobile
104+Android
79+Android
14.5+iOS