Parallax Drag Rail

group .........
Sliders and carousels
human .........
/lab/parallax-drag-rail

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

An endless horizontal rail you can wheel or drag. Six copies of the set are laid end to end and the track silently jumps back a full sequence whenever it drifts past the safe band, so the loop never runs out and never visibly seams. Each image is held at 2.25 zoom and slid against its own frame by its distance from center, so cards read as windows onto one continuous scene. Captions only appear once the rail is genuinely still, and a real drag suppresses the click.

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

  • * The jump happens in the safe band

    Six sequences are laid out and the track is teleported one sequence back whenever it leaves the middle band. Because the jump distance equals exactly one sequence, the visible arrangement is identical before and after and the seam is invisible.

  • * Parallax is per card, from screen position

    Each image is offset by a quarter of its distance from the rail's center, read live from its bounding box, so the effect is correct no matter where the track has been teleported to.

  • * Captions gate on real stillness

    A caption only fades in when velocity drops below 0.1 and no input has landed for 200ms, exposed as a CSS variable, so hover labels never flicker during a fling.

  • * A drag is not a click

    Movement past five pixels marks the gesture as a drag and suppresses the navigation on release, so throwing the rail never opens a project by accident.