Home
CSS
CSS 2D Transforms
Tryit: The rotate() method
Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Save Code
Ctrl+Alt+A
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
The rotate() Method
The rotate() method rotates an element clockwise or counter-clockwise.
This a normal div element.
This div element is rotated clockwise 20 degrees.