CSS rotate Property Reference
The CSS rotate property is a standard property in CSS Transforms. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
rotate overview
The CSS rotate property is a standard property in CSS Transforms. Review its formal syntax, computed behavior, and practical declarations.
The property is not inherited by default. Use an explicit global keyword when inheritance is intended.
Syntax and formal definition
| Field | Value |
|---|---|
| Formal syntax | none | <angle> | [ x | y | z | <number>{3} ] && <angle> |
| Initial value | none |
| Applies to | transformableElements |
| Inherited | No |
| Percentages | no |
| Computed value | asSpecified |
| Animation type | transform |
| Media | visual |
| Specification group | CSS Transforms |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set rotate. The initial and inherit global keywords remain available even when a property-specific value is preferable.
CSS
.reset-example {
rotate: initial;
}
.inherit-example {
rotate: inherit;
}
@supports (rotate: 15deg) {
.supported {
rotate: 15deg;
}
}