rotateX() 2s2a62
The rotateX() function is used to rotate an element about the x-axis in three-dimensional space. 345q18
It is equivalent to:
transform: rotate3d(1, 0, 0, <angle>);
Where rotate3d()
is the transformation function used to rotate an element in the three-dimensional space.
It takes an transform entry for a visual representation of the clockwise direction along the x-axis.
Examples:
transform: rotateX(30deg); transform: rotateX(-135deg); transform: rotateX(90deg);
The following image shows the result of applying rotateX(50deg)
and rotateX(-50deg)
on an image:

rotateX(50deg)
and rotateX(-50deg)
on an image
The official syntax looks as follows:
transform: rotateX(<angle>);
For a better understanding of the transform functions, please refer to the transform entry.
Browser 572e63
The following is the table for three-dimensional CSS transforms:
CSS3 3D Transforms 95t5k
Method of transforming an element in the third dimension using the `transform` property. Includes for the `perspective` property to set the perspective in z-space and the `backface-visibility` property to toggle display of the reverse side of a 3D-transformed element.
W3C Working Draft
ed from the following versions:
Desktop ea5q
- 36
- 16
- 10
- 23
- 9
Mobile / Tablet 6s2f12
- 9.0
- 66
- No
- 66
- 60