# I spent an evening teaching a box to slow down

> Forty tries at making one small panel open nicely, and the speeds and timings I ended up with.

- **Published:** 25 July 2023
- **Category:** Design theory
- **Takeaway:** Quick start, gentle stop. If I'm bored by the fifth replay, the animation is too long.

Tonight I opened and closed the same little pop-up roughly forty times. Open. Close. Open. Close. If anyone had been watching they’d have taken the laptop off me.

It was a small thing I was building for myself. Click a button, and a panel appears with a message in it. The first version simply blinked into existence, which works, but feels like being interrupted. So I made it slide up and fade in instead, and it looked like a lift door. Smooth, even and completely dead.

The trouble was the speed. It moved at exactly the same pace from start to finish, and nothing real does that. A drawer being pushed shut, a ball rolling to a stop, a car pulling up outside: everything real gathers speed or loses it.

Designers call the fix easing, which only means changing speed along the way. The setting I wanted is called ease-out: a quick start and a gentle stop. The panel moves the instant you click, so it feels as though it heard you, and it slows down as it arrives, which is right where your eye needs to land.

For leaving, I did the opposite. Slow start, quick finish, gone. Nobody needs to watch something arrive gracefully at nowhere.

The old Disney animators had all this worked out with pencils long before anyone had a touch screen. It’s in their big book, “The Illusion of Life”, as “slow in and slow out”. It’s a bit galling to spend an evening rediscovering something that was in print in 1981.

## The numbers I ended up with

Then there was how long it should take.

My first guess was 600 milliseconds, a bit over half a second, because I wanted people to enjoy my nice slide. By the fifth go I was drumming my fingers. I was waiting for my own pop-up.

At 100 milliseconds it was so quick it might as well have blinked. No point animating something nobody can see.

Where I landed, somewhere around go number forty:

- Opening: it fades in and rises 16 pixels over 250 milliseconds, quick start, gentle stop.
- Closing: it fades and drops 8 pixels over 180 milliseconds.

Closing is quicker on purpose. By then you’ve read the message and you want your page back.

Most of the movement I like in apps seems to sit somewhere between 150 and 400 milliseconds, small things at the quick end and big things at the slow end. That’s my taste, not a law.

## The bit I always forget

Some people feel properly ill when things slide and zoom around a screen. Phones and computers have a setting for it, usually called reduce motion, and a website can check for it. In code it’s `prefers-reduced-motion`.

I remembered at about open-and-close number thirty-five. With the setting on, my panel now just fades, with no rising. It still says “I heard you”. It just doesn’t travel to say it.

I make product videos and animated banners for Eurotech Lighting too, and the question there is the same as with my little pop-up: what is this movement for? If the honest answer is “I thought it looked nice”, I’ve learned to be suspicious of myself. I do think a lot of things look nice.

Note to self: if I’m bored by the fifth replay, take 50 milliseconds off.

---

From Nicky Caparas: https://nickycaparas.com/journal/teaching-a-box-to-slow-down/ (last updated 16 November 2026).
