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.

CSS Animation

Note: When an animation is finished, it goes back to its original style.