Split Column Infinite Slider
- group .........
- Sliders and carousels
- recording .....
- https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/split-column-infinite-slider.mp4
- source ........
- https://ui.aryank.space/components/split-column-infinite-slider
- markdown ......
- /lab/split-column-infinite-slider.md
- human .........
- /lab/split-column-infinite-slider
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
Two columns that scroll in opposite directions off one wheel. Each slide is revealed by a clip path growing from the bottom on the left and the top on the right, with a half percent overlap so no seam ever shows. Images drift against the reveal at 1.25 zoom so the drift never exposes an edge, and copy holds dead center through a short window before easing away on a smoothstep. Slides are built and destroyed around a three slide buffer, so the loop is endless without cloning the set.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* The reveal overshoots by half a percent
Clip paths grow to 100.5 percent rather than 100, so consecutive slides always overlap by a sliver and no hairline of background can appear between them at any scroll position.
* Zoom exists to hide the drift
Images are held at 1.25 scale purely so the counter-drift against the reveal never pulls an edge into frame. The drift direction is inverted per column, which is what makes the two sides read as moving apart.
* Copy holds, then leaves on a smoothstep
Titles stay pinned dead center through a ten percent window either side of the slide's midpoint, then depart on a t*t*(3-2t) curve, so the type feels held rather than continuously sliding.