CSS Tutorials

Overview

3D CSS transforms allow you to move, rotate, scale, and skew an element on three planes.

Note

The following are basic examples. Towards the bottom of this page you’ll find a complete list of all applicable properties, where you can find more information on the properties discussed, and sometimes find more involved properties not discussed on this page.

The following 3D transformation methods can be used with the transform property:

  • rotateX()
  • rotateY()
  • rotateZ()
/* rotates the element around its X-axis 120deg */
div {
    transform: rotateX(120deg);
}
/* rotates the element around its Y-axis 120deg */
div {
    transform: rotateY(120deg);
}
/* rotates the element around its Z-axis 120deg */
div {
    transform: rotateZ(120deg);
}

Properties


CSS Notes:


We’d like to acknowledge that we learned a great deal of our coding from W3Schools and TutorialsPoint, borrowing heavily from their teaching process and excellent code examples. We highly recommend both sites to deepen your experience, and further your coding journey. We’re just hitting the basics here at 1SMARTchicken.