CSS also supports 3D transformations.
Mouse over the elements below to see the difference between a 2D and a 3D transformation:
In this chapter you will learn about the following CSS property:
With the CSS transform
property, you can use the following 3D transformation functions:
rotateX()
rotateY()
rotateZ()
The rotateX()
function rotates an element around its X-axis at a given degree:
The rotateY()
function rotates an element around its Y-axis at a given degree:
The rotateZ()
function rotates an element around its Z-axis at a given degree: