Free tool
Spring playground
Feel stiffness, damping and mass before you ship. Copy a Motion transition, or the same spring as a CSS linear() easing.
Presets
Spring
Stiffness pulls harder, damping bleeds energy off, mass makes everything slower to start and slower to stop.
Demo
Response curve
position / time
Settle time
1,164 ms
within 0.2% of target
Overshoot
36.2%
peaks at 185 ms
Damping ratio
ζ 0.31
underdamped
linear() stops
34
sampled from the curve
Live demo
Motion spring
CSS linear()
Click the stage to replay. Both lanes should move as one.
<motion.div
animate={{ x: 240 }}
transition={{
type: "spring",
stiffness: 320,
damping: 11,
mass: 1,
}}
/>How the spring playground works
A spring animation is defined by stiffness (how hard it pulls toward the target), damping (how quickly it loses energy) and mass (how heavy it feels). The playground simulates the spring, plots its curve and samples it into a CSS linear() easing so you can use the same feel without JavaScript.
- What do stiffness, damping and mass do in a spring animation?
- Higher stiffness makes the spring faster and snappier, higher damping reduces bounce, and higher mass makes the motion slower to start and stop. A damping ratio below 1 overshoots; at 1 or above it settles without bouncing.
- Can I use a spring animation in plain CSS?
- Yes. CSS has no spring timing function, but the linear() easing function can approximate any curve. This tool samples the simulated spring into a linear() value and a matching duration.
More from the workshop
Gradient Generator
Linear, radial and conic gradients with draggable stops. Copy as CSS or Tailwind.
Shadow Generator
Stack soft, layered box-shadows that look like real light. Copy as CSS or Tailwind.
Glass Generator
Tune blur, tint, border and noise for frosted-glass surfaces over any backdrop.
Theme Builder
Pick a brand colour and radius, preview real components, and copy shadcn-compatible CSS variables.