Magnetic filings
A magnet on a steel rule. Iron filings align to it and the marks attract it, but it can rest anywhere.
Physics-Based · Original concept
A ball in a shallow bowl. Drag it up the slope, release, and it rolls back to the default and settles.
Drag the ball up the bowl and let go.
Tab to the slider, then ← → to step, PgUp PgDn to jump, Home End for the ends.
A native range input is the real control: it owns the value, the keyboard and what screen readers hear. Everything you see is drawn from it.
No libraries, just HTML, CSS and JavaScript
Uses Vibration
The concept
A ball in a bowl: drag it up the slope and let go, and it rolls back to the default and settles. The return itself explains what the default is.
5 real-world places this slider fits, from product UIs to marketing pages.
Pitch bend or temporary adjustments that spring back to neutral.
Throttle or steering that returns to centre on release.
Teaching potential energy, equilibrium and damping interactively.
"Peek" interactions that show a change while held, then reset.
A memorable hero interaction that invites people to play.
Implementation
Two files and a small shared scaffold. Copy them, or take the whole package.
Loading slider.js…
Work with Codevibe
If this design fits your product, we are happy to adapt it to your brand, or design something new that feels just as good to use. The same team that made this library builds websites, apps and product UIs that people enjoy using.
Just want this slider? Download the code free, no form needed.
A magnet on a steel rule. Iron filings align to it and the marks attract it, but it can rest anywhere.
A rubber band you can over-pull. Past the ends the track squishes and stretches, then springs back when you let go.
An air-hockey puck on a rail. Fling it and it coasts with momentum, bounces off the end with a knock, and settles.
Tell us what you are working on. We will respond within 12 hours on working days with an honest assessment and a recommended path forward.