Timing is how long a move takes. Spacing is where the object is at each moment along the way. People mix the two up all the time, but spacing is where most of the feel of a move comes from.
Two moves can last exactly the same time and still look completely different. If the object covers the same distance in every frame, it reads as a machine. If the frames are crowded together at the start and the end, it reads as something with weight.
Take a food delivery app. When someone taps "View cart", a cart panel should slide up from the bottom of the screen.
Count the frames
Most screens draw at least 60 frames a second. At 60, one frame lasts about 17 milliseconds, so a cart panel that rises 400 pixels in 10 frames takes about 170 milliseconds. Timing is that number of frames. Spacing is how far the panel moves in each one.
Writing the distances down frame by frame makes the difference easy to see. Both columns below add up to 400 pixels in the same 10 frames.
| Frame | Linear, pixels moved | Eased, pixels moved |
|---|---|---|
| 1 | 40 | 80 |
| 2 | 40 | 70 |
| 3 | 40 | 60 |
| 4 | 40 | 50 |
| 5 | 40 | 40 |
| 6 | 40 | 35 |
| 7 | 40 | 25 |
| 8 | 40 | 20 |
| 9 | 40 | 12 |
| 10 | 40 | 8 |
Spread the movement unevenly
Linear spacing, the same distance in every frame, is the default in many tools because it is the simplest thing to compute. Nobody chose it for how it looks. A real object needs a force to start and to stop, so it speeds up and slows down. Something that reaches full speed on its first frame looks weightless.
Animators call this crowding of frames "slow in and slow out". The cart panel is arriving in answer to a tap, so give it the big steps first and the small ones last, as in the eased column. It jumps up quickly and settles. The next lesson covers which curve suits which kind of move.
Keep the duration in a narrow range
Under about 100 milliseconds, a move is not seen as motion at all, only as a change. Past about 400 milliseconds, the person starts waiting for the app instead of watching it. Most interface motion belongs between 150 and 300 milliseconds.
Larger moves can take a little longer than small ones. A tick appearing beside "Added" can take 150 milliseconds, while the cart panel covering half the screen can take 250.
Test it forty times
A duration that looks lovely once in a prototype can be maddening the fortieth time. Someone who orders lunch every weekday opens that cart again and again. Before handing the animation over, tap "View cart" forty times in a row on a real phone.
If you feel the wait by the tenth tap, take 50 milliseconds off and test again. If the panel starts to look like it snaps into place, the problem is the spacing, so give the last few frames smaller steps instead of adding more time.
The next lesson looks at easing curves.