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

, 1 minute 39 seconds

How do you make UI animations feel right?

The rule

Ease out to enter and ease in to leave, and scale the time to the distance: 100 ms for a tooltip, 300 ms for a bottom sheet, 500 ms for a full page.

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 interface I share for animations that run linear, or that take one duration for every move. Fix the curve and the duration of each animation, and change nothing else.

1. Curve: give everything that enters the screen ease-out, and everything that leaves it ease-in. Replace linear, which starts and stops abruptly.
2. Duration: scale the time to the distance moved. 100ms for a tooltip that travels a few pixels, 300ms for a bottom sheet that crosses half the screen, 500ms for a full page.

Keep the content, the features, the layout and what each animation moves. When you are done, list each animation you changed with its old and new curve and duration.

More prompts like this in the free guide 

The problem

The example in the video is a delete dialog on a Projects page. Every move in it runs at one steady speed, called linear, and every move takes 300 ms. Linear starts and stops abruptly, so the dialog feels mechanical. And a tooltip that travels a few pixels takes as long as a full page.

The fix

  1. Curve: ease out to enter, ease in to leave. The dialog now enters with ease-out and leaves with ease-in, still in 300 ms.
  2. Duration: bigger moves take longer. The tooltip drops to 100 ms, the bottom sheet keeps 300 ms, and the full page gets 500 ms.

Why it works

The curve, also called easing, is how the speed changes during a move. Ease out starts fast, then lands softly. Ease in starts slowly, so a dialog that enters with it lags behind your tap, but a dialog that leaves with it speeds out of the way. Material 3 pairs its curves the same way. The duration follows the distance. The tooltip moves 8 px, the sheet 422 px and the page 844 px, so the longer the trip, the more time it gets.

How to apply it

Go through each transition in your CSS. Anything that comes onto the screen gets ease-out and anything that leaves it gets ease-in, like .dialog-enter { transition: 300ms ease-out; } and .dialog-exit { transition: 300ms ease-in; }. Then set each duration by how far the thing moves: 100 ms for a tooltip, 300 ms for a bottom sheet, 500 ms for a full page.

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