<angle>
Widely availableSince 201597% of users
A basic CSS type for rotation values. It can be expressed in degrees (deg), radians (rad), gradians (grad) or turns (turn).
What's modern
From web-features, MDN's browser data and our snippets, checked dailyClassicIt has worked everywhere since July 2015.
See how modern your own CSS is.Check your CSS →
Quick example
.spinner {
transform: rotate(0.5turn); /* Equivalent to 180deg */
}All units
Angle units
Used for rotations, gradient directions, conic-gradient stops and color hues.
| Unit | Measures | Notes | Baseline |
|---|---|---|---|
deg | Degrees | Most common. A full circle is 360deg. | Widely |
grad | Gradians | A full circle is 400grad. Rare on the web. | Widely |
rad | Radians | A full circle is 2π rad (≈6.2832rad). Useful when porting math from code. | Widely |
turn | Turns | A full circle is 1turn. Best when expressing fractional rotations: 0.25turn = 90deg. | Widely |
<angle> browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
2+
3.6+
4+
12+Mobile
18+Android
4+Android
3.2+iOS