
CSS-Tricks · 4 min read
translate3d()
Learn how to use CSS translate3d() to move elements in 3D space, including syntax, argument units, and the role of perspective. Understand why translate3d() can improve GPU compositing and animation performance, and how to combine it with other 3D transforms for complex effects.
- Use translate3d(0,0,0) to promote an element to its own GPU layer for smoother animations.
- Combine translate3d() with rotate3d() or scale3d() in the correct order to achieve desired 3D effects.
- Apply a parent element’s perspective (400–900px) to make Z-axis translations visible.