Inversa Scroll

group .........
Hero sections
markdown ......
/lab/inversa-scroll.md
human .........
/lab/inversa-scroll

── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────

A pinned hero that inverts through a masked window on scroll: the photo parallaxes up while an SVG slat-mask shrinks to punch a window through a dark overlay, the image desaturates inside it, a wireframe grid and pulsing markers fade in, copy blocks slide past, and a progress bar fills — then it re-opens to color. GSAP ScrollTrigger + Lenis.

── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────

  • * One scroll, many phases

    A single pinned ScrollTrigger drives everything by hand in onUpdate. Each effect — parallax, mask scale, saturation, grid, markers, copy — owns its own slice of progress with smoothstep easing, so they overlap without a timeline.

  • * Subtract-mask window

    The dark overlay is masked by a solid layer minus the SVG slats (mask-composite: subtract), so the slats read as a hole. Scaling the mask grows or closes that window.

  • * Owns its scroll

    By default it pins inside its own scroll container so it embeds in a bounded box. Pass embedded={false} to run it as a full-page section on the window scroll.