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

> 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.

Updated November 2026. Source: https://www.exodeui.com/questions/spring-physics-vs-duration-animation-in-ui/

## Key takeaways

- 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

## 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

- [Spring animation generator](https://www.exodeui.com/tools/spring-animation-generator/)
- [Physics UI animation](https://www.exodeui.com/physics-ui-animation/)
- [Interactive animation tool](https://www.exodeui.com/interactive-animation-tool/)
- [State machines for UI](https://www.exodeui.com/learn/state-machine-ui/)
