Spring Animation Calculator
Tune spring stiffness, damping and mass, and see the curve, duration and bounce. Export Framer Motion, React Spring or a CSS linear() easing.
Runs in your browserExports CSS, JSON, React
About this tool
- 1Set stiffness, damping and mass, or duration and bounce.
- 2Watch the response curve and live preview.
- 3Pick or save a preset.
- 4Copy Motion, React Spring or CSS linear().
How it works
The tool integrates the damped harmonic oscillator equation to plot displacement over time. The settle time is when the motion stays within 0.1% of the target. The curve is sampled into a CSS linear() function so pure CSS can reproduce the spring.
Use cases
- Natural UI interactions
- Matching motion between platforms
- Documenting a motion system
Questions
What's the difference between damping and bounce?
Damping removes energy. Low damping means more bounce. The bounce slider is a friendlier way to set the damping ratio.
Can CSS do springs?
Yes, with the linear() easing function, which approximates the spring with many points.
Why does duration change when I edit stiffness?
Springs have no fixed duration. It's derived from how long the motion takes to settle.
Related tools
- Easing Curve GeneratorMotion Lab
- Particle Background GeneratorMotion Lab
- SVG Animation GeneratorSVG Studio
- CSS Animation GeneratorUI Effects
- All tools in Motion Lab
How the algorithms workHow your files are handledUsing what you export