Sep 11, 2026
Detent Slider
Magnetic ends and a soft spring settle. A continuous reveal with detent feel.
A fold control with magnet ends. Drag toward open or closed and the thumb seats itself. Keep pulling past an end for a soft stretch, then it settles back.
Not a hinged book, and not a plain range input. A continuous reveal with detents you can feel.
How it works
Your finger doesn't move the thumb. It sets a target, and a small loop moves the thumb toward it at a fixed 1/60 s step. A spring follows your finger. Two magnets wait at the ends.
The spring is tuned by feel. Duration 0.4 and bounce 0.4, turned into stiffness and damping. No allocations per frame.
Magnets
Each magnet has a radius of 0.08 and pulls harder the closer you get. Let go near an end and it seats. Once seated, it only lets go when you pull well inland, so a shaky finger won't unseat it.
Stretch
Past an end, a second spring handles the stretch. It gives fast at first, then flattens out. Pull harder and it barely moves. Let go and it settles back.
Accessibility
Under the hood it's a React Aria slider. Real input, label, and keys. Arrows step through closed, halfway, and open, and the same loop animates them. The thumb is written straight to the DOM, and React only hears about the value once it settles.
Preview
Inspired by
iPhone Duo product viewer: left-pinned continuous reveal, magnet seating, stretch when you keep pulling. No Apple assets here.