CSS 3D transforms allow you to transform elements in 3D space. You need to set a perspective on the parent element for 3D transforms to work.
rotateX(deg) - Rotate around X axisrotateY(deg) - Rotate around Y axisrotateZ(deg) - Rotate around Z axistranslateZ(px) - Move along Z axisperspective(px) - Set viewing depthEdit the code below and click Run to see the result live.