The rotateZ() function rotates an element around its z-axis, so clockwise or counterclockwise.

The rotate() function spins an element either clockwise or counterclockwise in a 2D plane.

The rotateZ() function rotates an element around its z-axis, so clockwise or counterclockwise.

The rotateY() function rotates an element around its vertical y-axis.

The rotateX() function rotates an element around the x-axis in a three-dimensional space