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

09Reduced motion — turning inertia and springs off for instant, static values

Detecting prefers-reduced-motion via matchMedia and skipping the inertia and overshoot loops reflects values into position instantly — the same slider, fully functional, animation-free. It also covers damping-to-zero vs killing the loop, and aria-valuenow update timing.

Best forThe accessibility wrap-up

prefers-reduced-motiontransitionaria-valuenow
Reduced motion — turning inertia and springs off for instant, static values
Open in a new tab

09 Reduced motion — turning inertia and springs off for instant, static values — Measured area 2.876% · moving frames 21/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