Back

Slider

A percentage slider. The fill tracks the pointer and the readout counts along, hopping above the track when it nears the edge. Snap mode makes the fill magnetic, ticking between 10% marks.

Notes

Technique
One motion value, the fill’s percentage, drives everything: the fill, the counting readout, the handle, the ticks ducking under the edge, and the readout’s hop above the track. Dragging past an end stretches the whole track from its far edge along a rubber-band curve with a 48px range.
Timing
Springs, as stiffness / damping: detent hop 700 / 42, press and keyboard jumps 420 / 36, free drag 1200 / 80, readout hop 550 / 32, overdrag rebound 480 / 26.
Interruption
Everything. The pointer is captured for the whole drag and each spring retargets from its current velocity, so grabbing the track mid-glide or mid-rebound blends instead of snapping.
Reduced motion
The fill jumps to its value, there is no stretch, and the weave at 100% is a single still frame.
Accessibility
The track has the slider role, with its value exposed as text. Arrow keys step 1% (10% in snap mode), Page Up and Page Down 10%, Home and End go to the ends.