GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

02Spring overshoot — a damped oscillation that pops the thumb in on change

Integrating the thumb's scale with a spring-damper equation (accel = -k(target - current) - c*velocity) inside requestAnimationFrame gives a natural pop past the target and back on release. Two coefficients, k and c, tune the whole feel.

Best forAudio players, editing tools

requestAnimationFrameCSS custom propertiestransform: scale
Spring overshoot — a damped oscillation that pops the thumb in on change
Open in a new tab

02 Spring overshoot — a damped oscillation that pops the thumb in on change — Measured area 6.238% · moving frames 22/23Original by GODRICH · SCSS and React ship in the zip · CSS Range Slider: 9 Physics-Grade Custom Sliders

The post this demo lives in

CSS Range Slider: 9 Physics-Grade Custom Sliders - preview of all 9 demosCSS Range Slider: 9 Physics-Grade Custom SlidersA css range slider, explained: A velocity lerp decays your drag to rest, and a spring overshoots the thumb on each value See all demos in this post

If you like this effect - similar demos