The depth effect is the browser's native 3D projection of translateZ-positioned layers inside a perspective scroll container. No scroll listeners, no animation frame loops, no jank. The compositor does all the work.
Panoramic AVIF compresses 30–50% smaller than WebP. Four layers stacked at depths 8, 5, 2, 1 give a perceptible parallax range without bloating mobile load times. Lighthouse scores stay above 95.
Search, instant navigation, code-copy buttons, content tabs, admonitions, sticky tabs, dark or light themes. Everything Material gives you, plus the cinematic hero on top.
A scroll container with perspective: 2.5rem establishes a 3D context. Each layer is pushed back with translateZ and scaled to compensate. Layers further from the camera move slower as you scroll — the parallax is the browser's projection math, not a simulation.
The technique was originally built for Material for MkDocs. This repo is the standalone extraction: documented, scripted, and ready to drop into any project.
Read the deep dive →Pick a host, click deploy, swap the four hero AVIFs for your own. The site is live in under five minutes — no account beyond your deploy platform, no JavaScript framework, no build pipeline beyond mkdocs build.
src/assets/hero/ with your artoverrides/home.html — push, deploy auto-updates