The section pins
ScrollTrigger locks this section to the viewport the moment its top hits the top of the screen. Your scroll wheel never stops working; it just changes direction.
The section below pins in place while your vertical scroll drives a horizontal track of panels. Snap, parallax, and a progress bar included.
ScrollKeep scrolling down. The gallery locks to the viewport and translates sideways through five variable-width panels; the numbers drift with parallax and the bar at the bottom tracks progress. Scroll back up and it all reverses.
ScrollTrigger locks this section to the viewport the moment its top hits the top of the screen. Your scroll wheel never stops working; it just changes direction.
A single scrubbed tween maps scroll distance to the track's x position. This panel is deliberately wider than the others; the distance is measured from the track's real scrollWidth, so mixed widths just work.
Release the scroll and the track settles on the nearest panel. Tab to the button below; keyboard focus drives the scroll too.
Focusable buttonEvery big number carries a data-hscroll-parallax value. This one moves fastest; watch it slide against the track as the panel crosses the screen.
When the track reaches its end, the pin releases and the page carries on scrolling vertically as if nothing happened.
Get the effectThe pin released and normal scrolling resumed. Scroll back up to run the whole sequence in reverse.