Rotation of a square
The rotate() method rotates an element clockwise or counter-clockwise.
This is the original.
Square rotated counter-clockwise with 20 degrees.
Square rotated counter-clockwise with 40 degrees.