Spring animation

A spring animation moves a value toward its target as if it were pulled by a spring, so its speed and timing come from physics (stiffness, damping, mass) instead of a fixed duration.

Because a spring keeps its velocity, it can be interrupted: grab or redirect it mid-flight and it carries on smoothly from where it is. That is why springs feel natural on drag, swipe and toggle interactions.

Low damping lets the spring overshoot and wobble; high damping settles it without a bounce. A damping ratio just under 1 gives a decisive move with a hint of life.

// Motion (React)
<motion.div animate={{ x: 100 }} transition={{ type: 'spring', stiffness: 420, damping: 30 }} />

Try it: Spring animation generator

See it live

Related terms