Threshold Snap Reel
A full-viewport reel that springs to the next frame only after the drag or the fling passes a threshold. A short gesture springs back.

A threshold snap reel is a full-viewport sequence with a rule: a small gesture returns home, a committed gesture advances. The frame always springs. What changes is the target. Drag past about 18% of the width, or fling hard enough, and the index steps. Anything less and the index stays. The outgoing frame’s giant numeral drifts a little faster than the frame, so the content leads the chrome.
This is stricter than the momentum skew carousel, which is happy to coast across many cards. A reel is a sentence of three frames. Coasting through all three on one flick would skip the sentence. The threshold is how the reel refuses to skip.
Two numbers
index is the frame you are committed to. offset is where the track is painted, in pixels. While the pointer is down, offset follows the finger and is not sprung. On release, the drag distance and the velocity pick a direction or they don’t. Then offset springs toward index * width.
const threshold = Math.max(80, width * 0.18);
if (drag < -threshold || velocity > 900) index += 1;
else if (drag > threshold || velocity < -900) index -= 1;
[offset, velocity] = spring(offset, velocity, index * width, 58, 14, dt);
Stiffness 58 and damping 14 is a longer settle than the mesh. A viewport-sized frame should arrive with a little weight. A snappy spring makes the reel feel like a tab. Clamp the index to the ends. This reel does not loop, because the three lines are an order: light, water, rest.
The numeral on each slide is translated by (slideIndex - offset / width) * 40. As a frame leaves, its numeral moves ahead of the type. As it enters, the numeral is still catching up. That is the parallax. It is one multiply. It does not need a second timeline.
Wheel, keys, and the lock
A trackpad fires a burst of wheel events for one flick. Without a lock, one gesture walks the index from the first frame to the last. The listener calls preventDefault, ignores tiny deltas, and then ignores further wheels for 680 milliseconds. Arrow keys call the same commit function, so the rule lives in one place.
The reel also advances on its own every 4.2 seconds when nobody is dragging and the frame is settled. commit resets that clock. A preview shows the spring without a user. On a homepage hero you may remove the auto-advance and keep the gesture. Auto-advance that fights a reader is the failure mode of carousels. Four seconds is long enough to read the line. If the line gets longer, turn auto-advance off.
Reduced motion
Offset is set to the target in one step. The frames still change by drag, wheel, or arrow. The parallax numeral can stay. It is a position, and under reduced motion you can skip that translate too. The demo still writes it. The important part is that the track does not interpolate.
touch-action: none lets the pointer gesture own the reel. That is correct while the reel is the page. If you embed the reel in a scrolling article, do not steal vertical wheel events. Gate the preventDefault on a horizontal delta, or the reel becomes a trap.
Questions about snap reels
How do I make a carousel snap back when the drag is too short?
On release, compare the drag distance to a threshold around 18% of the width. If it is under the threshold and the velocity is low, keep the current index. If it crosses either test, step the index. Spring the painted offset toward index * width either way.
Why does one trackpad flick skip every slide?
Wheel events arrive in a burst. Advance once, then ignore the wheel for about 700 milliseconds. Treat arrow keys as the same single step.
How do I add parallax inside a sliding frame?
Move an inner layer by the fractional progress times a small pixel distance. The track carries the frame. The inner layer carries a little extra. One extra transform is enough. A second one starts to look like a template.