Skip to main content
Interactive UI5 min readNovember 2026

What is the difference between spring physics and duration-based animation in UI?

Short answer

Duration-based animations force motion into a rigid time constraint (like 300ms) along a cubic-bezier curve, which feels robotic and snaps jarringly if interrupted mid-gesture. Spring physics animations use physical properties—stiffness, damping, and mass—to calculate movement dynamically. Springs naturally inherit gesture velocity, meaning interactive components feel organic and remain seamlessly interruptible.

Core Takeaway

  • Duration animations use fixed time and bezier curves; springs use physical simulation
  • Springs preserve momentum and velocity when interrupted mid-flight
  • Touch drags, sheet dismissals, and button taps feel vastly more natural with springs
  • Fixed durations are best for predictable, non-physical transitions like opacity fades
  • ExodeUI supports native spring kinematics directly on layer transforms

Animation in digital interfaces has evolved from fixed timelines to dynamic physical modeling. Understanding when to use duration curves versus spring physics is fundamental to crafting high-craft interactive software.

How duration-based animations work

A duration-based animation specifies a fixed time window (e.g., `transition: transform 250ms ease-out`). Regardless of how far the element travels or how fast the user was moving their finger, the animation must complete in exactly 250ms.

If the user taps or drags the element while it is halfway through that transition, a duration-based system must either cancel the animation abruptly or reset from zero, creating visual stutter and broken momentum.

How spring physics work

Spring kinematics calculate an element’s acceleration, velocity, and position frame-by-frame based on harmonic oscillation physics:

- **Stiffness:** How strong the pull toward the target is (higher stiffness = faster snap).

- **Damping:** How much friction resists the motion (lower damping = bouncy overshoot; critical damping = smooth stop with zero bounce).

- **Mass:** How heavy the object feels (higher mass = slower start and greater inertia).

Because springs calculate velocity dynamically, they naturally inherit user gesture speed. If a user flicks a bottom sheet downward with high velocity, a spring-driven sheet accelerates smoothly into place without snapping.

When to use which in interactive UI

- **Use Spring Physics for:** Draggable elements, modal sheets, button click squash-and-stretch, toggle switches, and anything directly manipulated by a pointer or finger.

- **Use Duration Curves for:** Pure color fades, background opacity cross-fades, and fixed linear progress bars.

In ExodeUI, which we make, you can rig true spring kinematics directly on layer transforms without mathematical guesswork, generating clean spring tokens for production runtimes.

Frequently asked questions

What is critically damped spring motion?

A critically damped spring returns to its resting position as fast as possible without overshooting or oscillating back and forth.

Are spring animations heavier on CPU performance than CSS easing?

When executed by modern native runtimes or optimized GPU transform worklets, spring animations run smoothly at 60fps or 120fps with minimal overhead.

Can you use spring physics in standard CSS?

Native CSS has limited spring support via linear() approximations. True dynamic velocity-inheriting springs require JavaScript physics runtimes or native mobile animation engines.

How do you tune spring parameters for UI?

Start with high stiffness and near-critical damping for UI controls (snappy and responsive), reserving bouncy overshoot for playful illustrations or celebration modals.

Related Guides & Examples

Generate and test spring physics in real time

Tune stiffness, damping and mass in the browser and copy production-ready tokens.

Open spring generator
ExodeUI

EXODEUI DESKTOP

A little space for good ideas.

Choose your platform to get the official ExodeUI installer.

Looking for Intel Mac or other builds? Explore the web studio or check all download options.

Prefer the browser? Try for free in your browser →