01Ridgeline parallax
Clip-path layers
move · scroll the pagedrag · scroll the page
y = Σ (1 − |sin(f·x + φ)|) / k7 layers
depth 0.15 → 1.00 · lerp 6% / frameclip-path · translate3d
Seven mountain ridges stacked by depth. Near ridges travel farther than distant ones, so the scene reads as three-dimensional with no 3D engine at all.
Move your pointer across the scene, then scroll the page and watch the near ridges rise faster than the far ones.
- Technique
- clip-path polygons, translate3d
- Inputs
- Pointer position, scroll offset
- Layers
- 7, depth 0.15 → 1.00
- Easing
- Lerp, 6% per frame