Why things move
4 minA menu that grows out of the button you tapped shows where it came from. A logo that spins on every page shows nothing. Keep the first kind of motion and cut the second.
Lesson video
Tastebud · 3:49 · Captions on screen
Animate a change only when the motion shows where something came from or where it went.
- Why. A hard cut makes people work out what changed. Motion that starts at the source lets the eye follow the change, so people keep their place without thinking.
- Real example. In iOS 18 apps that adopt the zoom transition, the cell you tap grows into the next screen. Going back, the screen shrinks into that same cell. (Apple iOS 18, Nov 2026)
- When to break it. A rare moment, like finishing a whole course, can move for joy alone. Keep it short and skippable, and never on a tap repeated all day.
- Common mistake. A dropdown scales from its own centre, the CSS default, though its button sits in a corner. The motion is smooth and still points nowhere.
Our take. Every animation in a prototype has to answer where something came from or where it went. If it answers neither, cut it, because extra motion buries the one moment you're there to pitch.
A menu should grow out of the button that opened it
Scale a menu from its own centre, the CSS default, and it appears from nowhere. Set its transform-origin, the point a scale grows from, to the corner by the button, and the eye follows it from the tap.
- transform-origin left at the default, 50% 50%
- The menu swells out of empty space
- Nothing links it to the ⋮ you tapped
- People glance around to see what opened
- transform-origin set to top right
- The menu starts on the ⋮ and unfolds
- The eye moves from the tap into the list
- Closing shrinks it back into the button
Both menus drawn for this lesson.
Motion can show where you are about to go
Origin works backwards too. On Android 15, a back swipe in an app that supports predictive back shows a preview of where you'll land, such as the home screen, before you let go. Change your mind halfway and you stay.
Predictive back shows the destination before the swipe finishes
- Swipe in from the edge. The back gesture starts. Nothing has changed yet.
- The destination shows behind. As the finger moves, the app pulls aside and a preview of where the swipe leads, such as the home screen, appears behind it.
- Let go, or slide back. Letting go finishes the move. Sliding back cancels it, so people can look before they commit.
Cut the motion that answers nothing
Before you animate anything, name the change it shows. If nothing changed, it stays still. If the change happens on a tap people repeat all day, keep the motion short and small, or drop it.
Two questions decide whether a moment moves
- No: keep it still. A logo that spins on load or a heading that bounces in answers nothing, so cut it.
- Yes: can motion show where. Ask whether the move can start at the source or end at the destination.
- Yes, and it's rare: animate it. A menu from its button, a deleted row closing its gap. Most UI moves should take 100 to 500 ms.
- Yes, but it repeats all day. Keep it short and subtle, like a heart that fills on save. The more often it plays, the less it should move.
Try it
Five animations: which ones explain something?
Five animations from a grocery prototype made up for this lesson. For each one, decide whether the motion explains a change or only decorates.
Make the menu grow from its button
Tap ⋮ in the preview. The menu is slowed to 600 ms so you can see where it grows from. Change transform-origin so it grows out of the button, then bring the speed back to 300 ms or less.
Tab adds two spaces. Press Esc, then Tab, to leave the editor.
- The menu grows from its top right corner, where the button is (not yet)
- The scale is back to 300 ms or less (not yet)
What to notice: Watch the first frame after each tap. From the centre, the menu appears out of empty space; from top right, it peels out of the ⋮ and you never wonder what opened it.
Quick check
Your prototype for a made-up Nykaa wishlist plays a sparkle burst every time someone taps the heart, and people tap it dozens of times a session. The client loved it in the pitch. What do you change?
Watch next
Watch it for How motion keeps an element recognisably the same thing as it moves or changes shape, so people never lose track of it.
Watch it for Side-by-side clips of the same interface with and without motion, and how the wrong timing turns a helpful animation into a wait.
Connects to: 4.3 Noise, easing and movement · 2.2 CSS that lays out and moves · 14.1 What a pitch with proof looks like · 9.3 Interaction in an engine
Sources · checked Nov 2026
- Apple Developer: Enhance your UI animations and transitions (WWDC24)In iOS 18 the new zoom transition makes the cell you tap morph into the incoming view; it runs on zoom in and again on zoom out; it keeps the same elements on screen for a sense of continuity
- Apple Developer: SwiftUI zoom(sourceID:in:)A navigation transition that zooms the appearing view from a given source view; available from iOS 18.0
- Apple Human Interface Guidelines: MotionAdd motion purposefully; don't add motion for the sake of adding motion; generally avoid motion on UI interactions that occur frequently; let people cancel motion
- Android Developers: Add support for the predictive back gesturePredictive back lets people preview where the back swipe takes them, such as the home screen behind the app; from Android 15 the system animations are on by default for apps that opt in; a back gesture can be cancelled
- Radix UI: Dropdown Menu, origin-aware animationsRadix exposes --radix-dropdown-menu-content-transform-origin so content animates from its computed origin next to the trigger
- MDN: transform-origintransform-origin sets the point a transform grows from; its initial value is 50% 50% 0, the centre of the element
- Nielsen Norman Group: The Role of Animation and Motion in UX (Jan 2020)Animation helps as feedback, to show a state change, and to show direction in spatial navigation; gratuitous animation distracts and annoys
- Nielsen Norman Group: Executing UX Animations, Duration (Feb 2020)Most UI animations last 100 to 500 ms; the more frequent an animation, the shorter and subtler it should be