Rotation
Animate the rotation of an element
Basic Usage
Rotate in
Available Values
These are the theme default values. You can customize the theme to add your own values to the motionRotate
property or use arbitrary values.
Class | Value |
---|---|
motion-rotate-in-0 | 0deg |
motion-rotate-in-1 | 1deg |
motion-rotate-in-2 | 2deg |
motion-rotate-in-3 | 3deg |
motion-rotate-in-6 | 6deg |
motion-rotate-in-12 | 12deg |
motion-rotate-in-45 | 45deg |
motion-rotate-in-90 | 90deg |
motion-rotate-in-180 | 180deg |
motion-rotate-in | 12deg |
motion-rotate-in-[2turn] | Arbitrary value |
Loop Animations
Continuous rotation
Spinner Example
Spinner
Exit Animations
Rotate out
Combining with Other Animations
Rotate and scale in
Combining Rotation with Modifiers
Rotate in with delay