Unfolding the Box Model
summary
Live demos build entire scenes with CSS3 3D transforms: a six-sided cube made from div faces, a 50 div slinky that rotates by 5° per nested element, and a solar system where one div orbits another; perspective is controlled in pixels (typical value ~1000px). Examples run in Chrome/Safari/Firefox today, use transform-style, perspective-origin and backface-visibility, and are hardware-accelerated — avoid changing colors mid-transform to prevent repaints. Some complex effects combine small JavaScript drivers (book, FPS) and they work, albeit with performance caveats.
AI-written summary · about
chapters (14)
- 0:00Start
- 1:38Unfolding the Box Model
- 2:34Dom Element
- 3:43Floats
- 4:11Positioning
- 9:06Perspective
- 11:39Rotation
- 11:50Back Face Visibility
- 12:34Cube
- 15:58Slinky
- 21:17First-Person Shooter in Transform
- 27:12Histogram
- 32:28The Matrix 3d Transform
- 34:49Apply Texture to the Box








