rotateY(), rotateX() & rotate() functions


The CSS rotateY() function of the transform property is used to rotate elements vertically around the Y-axis. The CSS rotateX() function of the transform property is used to rotate elements horizontally around the x-axis. The CSS rotate() function of the transform property is used to rotate elements in a clockwise or anti-clockwise direction. The negative values rotate the element in an anti-clockwise direction and the positive values rotate the element in a clockwise direction. The value can also be in turns, gradians, and radians.