CSS Studio
Interactive Learning
On this tool
A 3D rotation looks flat unless a parent sets perspective. rotateX and rotateY need that distance to read as depth.
Transforms
transform does not change layout. Neighbors stay put even when the element visually overlaps them.
What people get wrong
A 3D rotation looks flat unless a parent sets perspective. rotateX and rotateY need that distance to read as depth.
- Does CSS transform move other elements?
- No. Transforms are visual. The original box still occupies its layout space. Use margin or position if you need neighbors to move.
Transforms
3D Rotation
0deg
0deg
0deg
1000px
2D Transform
1px
0deg
0deg
Translation
0px
0px
Generated CSS
From the controls
Loading...
Transform Me