When to animate
5 minSome motion tells people where a menu came from or what just happened, and some only decorates. Learn the test that tells them apart, then use it on five motions we've proposed for Gmail.
Lesson video
Tastebud · 4:37 · Captions on screen
Animate a change only when the motion shows where something came from, where it went, or what just happened.
- Why. People watch things that move. A change that moves shows how the old screen and the new one connect, and one that just appears makes people search the page again.
- Real example. In the Gmail app, with Archive set as the swipe action, a swiped row follows your finger off the edge. You watched it leave, so you know where it went. (Gmail app, Nov 2026)
- When to break it. A moment people see once, such as a first-launch welcome or a finished goal, can move just for the feeling. Keep it short and let people skip it.
- Common mistake. Fading every inbox row in, one after another, each time the page opens. It looks polished in a demo, then delays the list on every visit and explains nothing.
Our take. Cut any animation you can't explain with a sentence that starts 'it shows'. Motion on something people do many times a day, like opening the inbox, has to earn its place on every visit.
- Nothing links it to the More button
- Eyes jump around to find what opened it
- On close it vanishes, with no clue where it went
- transform-origin: top right, the corner beside the button
- Scales from 95% to 100% in 150 ms
- On close it shrinks back toward the button
Drawn on a menu like Gmail's More menu, Nov 2026. The origin, the point a transform grows from, is the whole difference.
Grow a menu from the button that opened it
transform-origin sets the point an element scales from. Leave it at the centre and the menu swells out of nowhere. Set it to the corner beside More, keep it short, and add a calmer version for people who turn on Reduce motion.
- transform-origin: center, so it swells from its own middle
- scale(0.6) over 600ms, slow for a menu
- No version for people who turn on Reduce motion
- transform-origin: top right, the corner beside More
- scale(0.95) to 1 in 150ms
- @media (prefers-reduced-motion: reduce) sets transform: none, leaving a fade
Ask what each motion explains
Before you animate anything, finish the sentence 'it shows'. Where it came from, where it went and what just happened are good endings. If nothing fits, cut the motion, or save it for a rare moment.
A motion earns its place when it finishes the sentence 'it shows'
- Where it came from. The More menu grows out of its button, so people see what opened it.
- Where it went. An archived row slides out and the gap closes, so people see it leave the inbox.
- What just happened. Message sent appears in the bottom left with Undo, so people know the send worked and how to take it back.
- Nothing. Rows fading in on every visit, a count that pulses forever. Cut these, or keep them for a moment people see once.
Try it
Which motions explain something?
We wrote these five motions as proposals for Gmail's inbox on the web. They aren't Gmail's real animations. Tap each one that explains nothing, because those are the ones to cut.
Tap anything on the screen that looks wrong.
Gmail's inbox, recreated Nov 2026. The five motions are our proposals for this exercise. They are not Gmail's real animations.
Make the More menu come out of its button
This menu opens slowly and grows from its own middle. Fix the origin, the length and the reduced motion version until all three checks tick.
Tab adds two spaces. Press Esc, then Tab, to leave the editor.
- The menu grows from the corner beside More (not yet)
- It's quick: 200ms or less (not yet)
- Reduce motion gets a calmer version (not yet)
What to notice: Press More as it is: the menu swells slowly out of its own middle, away from the button. Set the origin to top right, the time to 150ms and the scale to 0.95, then open it again and watch it come out of More. For the last check, add a @media (prefers-reduced-motion: reduce) block that sets transform: none, so only the fade is left.
Quick check
A designer adds a 400 ms bounce every time someone switches tabs in Google Pay. What do you tell them?
Watch next
Watch it for How motion keeps an element recognisable as it changes, so people can tell it's the same thing in a new place.
Watch it for Transitions built with Material Components for Android to show how two screens relate. For each one, ask what it shows: where something came from, where it went, or what happened.
Connects to: 8.4 Contrast and reduced motion · 3.5 Positioning and stacking · 11.3 Scroll animations · 17.3 React Native styling
Sources · checked Nov 2026
- Apple Human Interface Guidelines: MotionAdd motion purposefully and don't add motion for the sake of adding motion; in apps, generally avoid motion on interactions that occur frequently; let people cancel motion; and, in the visionOS section, 'When an object moves from one location to another, people naturally watch the movement'
- Gmail Help: Undo sending your mailAfter Send, Message sent appears in the bottom left with Undo and View message; the cancellation period can be 5, 10, 20 or 30 seconds
- Gmail Help: Archive Gmail messages (Android)Archive can be set as the left or right swipe action, and archived mail leaves the inbox but stays under All mail
- Gmail Help: Snooze emails until laterOn a computer, point to an email and Snooze is on the right of the row; if Snooze isn't there, it's under More (the menu items in the lab)
- W3C: WCAG 2.2, 2.2.2 Pause, Stop, HideMoving content that starts automatically, lasts more than five seconds and sits beside other content needs a way to pause, stop or hide it (Level A)
- Web Platform Status: 2D transformstransform and transform-origin are Baseline widely available
- Web Platform Status: CSS transitionsCSS transitions are Baseline widely available
- Web Platform Status: prefers-reduced-motionThe prefers-reduced-motion media query is Baseline widely available
- Web Platform Status: :focus-visible:focus-visible, used for the lab's focus ring, is Baseline widely available