The idea
A ball, a dashed box, and two sliders: stiffness and damping. Drag the ball anywhere and let go. It springs home using exactly the values on the sliders, so every change you make is something you can feel straight away.
Why
Springs are the backbone of how this site moves. Every animated component pulls from three shared presets (snappy, bouncy, gentle) so the whole thing feels tuned by one hand. But a spring is described with two numbers that mean nothing to most people. "Stiffness 300, damping 14" is a sentence only an engineer could love.
I wanted a way to skip the vocabulary. You don't explain a spring, you hand someone the spring and let them break it.
Approach
- One object, one gesture. The ball is a draggable element that snaps back to its origin. There's nothing else to look at, so all your attention goes to how it moves.
- Live physics, not presets. The slider values feed straight into the snap-back transition. There's no "apply" button and no reset. Turn the damping down to 2 and the ball wobbles forever. Turn it up to 40 and it slides home like it's moving through honey.
- The ranges are opinionated. Stiffness runs 50 to 800 and damping runs 2 to 40. That covers everything from "broken on purpose" to "barely animated", and nothing in between is useless.
Decisions & trade-offs
- Remounting on change. The ball remounts whenever a slider moves. That's a small, invisible cost, and in return the new values are guaranteed to apply on the very next flick, not halfway through one.
- No curve plot. The point is to feel the spring, and a chart would pull your eyes off the motion.
- Touch support stays in. The ball sets
touch-noneso dragging on a phone moves the ball instead of scrolling the page.
What I'd try next
- A "copy as code" button that hands you the transition object for your current slider values.
- Ghost trails, so you can compare two settings side by side.
- Snap markers on the sliders for the site's three presets, so the house style is one tap away.