Here is a brief description of how to rotate an element in 3D in CSS3 using the CSS3 3D rotate() method.
Explanation
Property :
rotate()
rotate3d(x,y,z,angle) - Defines a 3D rotation
rotateX(angle) - Defines a 3D rotation along the X-axis
rotateY(angle) - Defines a 3D rotation along the Y-axis
rotateZ(angle) - Defines a 3D rotation along the Z-axis