Endless Side Story

group .........
Sliders and carousels
human .........
/lab/endless-side-story

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

A whole editorial page laid out sideways and looped. The section run is cloned two sequences either side of the original and the track jumps a full sequence whenever it drifts past the halfway guard, so scrolling never reaches an end in either direction. The progress bar and counter read position modulo one sequence and snap rather than ease across the wrap, so the bar never runs backwards through the whole width.

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

  • * Real sections, cloned in place

    The markup is written once as ordinary sections, then measured and cloned two sequences either side at runtime, so the content stays authorable as normal HTML rather than a data array.

  • * The progress bar snaps across the wrap

    When the reading jumps from high to low percent, the bar's eased value is force-set instead of lerped, so it never animates backwards across the entire width on every loop.

  • * The loop guard sits at the halfway mark

    The teleport fires at half a sequence past the buffer rather than at the edge, leaving a full sequence of slack in both directions so a fast fling cannot outrun the reset.