Free guideThe newsletter. Real UI fixes by email, and a free 35-page guide to AI design skills.
Ship Better UI

, 1 minute 34 seconds

Should UI animations use springs or easing curves?

The rule

Give anything people can interrupt or grab a spring, not a 400 ms curve: set stiffness and damping, not a duration, so it keeps the speed it already has.

Try it

Apply the fix

Prompt for your AI coding tool

Paste it into Claude Code, Cursor or any AI coding tool, then share the page you want fixed.

Review the animations in the interface I share. Find every one that people can interrupt or grab (sheets, drawers, menus, toggles, anything dragged) and move it from an easing curve to a spring. Change nothing else.

1. Spring: replace the fixed duration and easing curve with a spring. For example stiffness 300, damping 30, mass 1, which brings a 150 pt sheet home in under 300 ms.
2. Keep speed: when the animation is interrupted, the spring must start from the speed it has now, not from rest. Do not restart a new timeline.
3. Flick: when a dragged element is let go, start the spring at the finger's speed.

Set stiffness and damping, not a duration: a spring given a duration starts from rest and ignores the speed it had. Keep animations that nobody can interrupt as they are. Keep the content, the features and the layout.

When you are done, list each animation you changed: what it was, and the spring it uses now.

More prompts like this in the free guide 

The problem

The video opens a share sheet on a curve: a fixed 400 ms timeline that sets the sheet's speed at every moment. Change your mind 80 ms in, when it is half open, and tap away. Slowed down five times, the speed drops to 0 at once and a new 400 ms timeline starts. The sheet stalls before it turns back.

The fix

  1. Spring. A spring has no timeline. It pulls the sheet toward its target, like a rubber band, and works out the speed as it goes.
  2. Keep the speed. Same tap, same moment: the spring keeps the speed it had, slows down and turns around. It is home in 290 ms, not 400.
  3. Flick. Let go of a dragged sheet and the spring starts at your finger's speed. It closes in 230 ms, with no stall under your thumb.

Why it works

A curve sets the speed from its clock, so a new target needs a new clock, and every new clock starts from rest. A spring only knows where it is going and how fast it is moving now. Stiffness sets how hard it pulls. Damping sets how fast it settles. The sheet in the video uses stiffness 300 and damping 30, and its speed graph draws one smooth line through the tap where the curve drew a cliff.

How to apply it

Ask one question of each animation: can people interrupt it or grab it? If they can, use a spring. Set stiffness and damping, not a duration. As the Motion docs note, a spring given a duration starts from rest and ignores the speed it had.

Free guide · 35 pages

Get fixes like this by email

Join the newsletter and get the 35-page guide to AI design skills: the skills, the order to use them in, and prompts to copy.

Watch it on

More on motion