2. What is CSS transform?

2.2. The rotate() Method


          The rotate() method enables the element to rotate clockwise or counterclockwise. The parameter of this method is the angle of rotation expressed in degrees. The positive values will rotate the element clockwise. However, if this is negative, the element will rotate counter-clockwise. See sample code below and the resulting output:


div { transform: rotate(20deg); }