CSS · Properties — CSS Transforms

rotate

The CSS rotate property. Initial value: none. Not inherited.

Syntax
rotate: none | <angle> | [ x | y | z | <number>{3} ] && <angle>

Example

Try it

Notes

Media: visual. Applies to: transformableElements. Computed value: asSpecified.

More in this group

backface-visibility perspective-origin scale transform-box transform-style translate

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course