Sticky Parallax Slides

group .........
Sliders and carousels

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

A pinned horizontal run where the images resist the track. Each photo is held at 1.35 zoom and pushed back a quarter of the slide width as its panel crosses, so the frames slide over the pictures instead of carrying them. Only the outgoing and incoming pair are offset at any moment. Titles are governed by an IntersectionObserver against the slider, so the caption swaps at the quarter visible mark and steps back correctly on reverse.

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

  • * Only the crossing pair is offset

    Parallax is applied to the outgoing and incoming slide only, computed from their relative progress. Every other image sits at zero, so nothing drifts out of place while off screen.

  • * Titles are observed, not calculated

    An IntersectionObserver rooted on the slider switches captions at the quarter visible mark, and on reverse it explicitly restores the previous slide's title, so scrubbing backwards does not leave the caption blank.

  • * The zoom is the parallax budget

    Images sit at 1.35 scale so a quarter-width push never exposes an edge. Lower the scale and the offset has to come down with it.