Duration, easing, and the honest transition. Motion treated as a statement of cause: this appeared because of that, this went there, this changed. Six durations, four curves, and the rules for which property may move.
A transition is a claim about cause: this surface came from that button, this row moved to that list, this value changed while you weren't looking. Motion is a primitive because the claim has to be made the same way everywhere, and a transition that makes no claim, or makes it slowly, is a cost the user pays on every click.
Start with one interaction done three ways. Each panel below is the same toolbar from an invented seed bank's accession tracker, with a Sort menu. One toggle opens all three menus at once; turn it off again to watch them close.
The three failures are the three ways motion goes wrong in a product, and each has its own excuse. Teleporting comes from teams that treat motion as decoration and so leave it out: the menu is correct, but nothing connects it to the button, and on a busy screen the user has to search for what changed. Performing comes from treating motion as personality: bounce, overshoot, 600ms on everything, and the product feels slow no matter how fast its server is, because every click is followed by a short film. Drift is the third and most common, and it can't be shown in one panel because it is the sum of many: every component picked its own duration and curve, so the menu takes 250ms with ease, the dialog 400ms with a back-out curve, the toast 350ms linear, and the product moves like a room full of clocks set by different people.
| Component, as found | Duration | Curve | Property |
|---|---|---|---|
| Sort menu | 250ms | ease | all |
| Move dialog | 400ms | cubic-bezier(.68,-.55,.27,1.55) | transform |
| Row hover | 300ms | ease-in-out | background |
| Tooltip | 500ms | ease | opacity |
| Accession details | 600ms | ease | max-height |
| Toast | 350ms | linear | bottom |
| Tab underline | 250ms | ease | left, width |
| Sidebar collapse | 400ms | ease-out | width |
Eight components, seven durations, five curves, four layout properties animated. Nobody chose any of it as a system; each line was a reasonable afternoon. Section XI audits a screen like this one down to the scale.
What motion is for, stated once: it shows cause and continuity. A surface that grows out of its trigger says which button made it. A row that slides into a list says where it went. A highlight that fades on a number someone else just changed says "this is new." In each case the motion carries information the static end state can't, which is where something came from. That is the test for every transition in this chapter. If it doesn't say where something came from, where it went, or that it changed, it is decoration, and decoration in motion costs time on every interaction. The industry converged here after the expressive period of the mid-2010s: Material 3, Carbon, and Apple's HIG all now lead with purpose and brevity before personality.
The boundary with neighbouring chapters, stated once. Button Taxonomy Part III owns how a button hovers and presses: which property changes and by how much. This chapter owns the durations and curves it draws on. Elevation & Depth owns which surface rises and to which level; this chapter owns how it gets there. Overlays: Modal & Drawer and Overlays: Popover & Tooltip will own opening and dismissal behaviour, focus, and delay; section IX gives them their numbers and stops there. Loading & Skeleton States owns when to show a skeleton; section VII only says how it may move. What is left belongs here: the duration scale, the curves, which properties may move, and the reduced-motion contract.
Use six durations, from 0 to 450ms, named for speed: instant, snap, fast, base, slow, deliberate. Nothing the user waits on runs longer than 500ms. Every lane below crosses the same distance; one toggle starts them all together, and unchecking runs them home.
The scale is built from two perceptual facts. Below about 100ms a change reads as instantaneous, so anything that should feel like a direct result of the user's hand (a press, a selection, a focus ring) lives at 0 or just above it. Above about 400ms a transition reads as a wait, so the top of the scale is reserved for movement across a large part of the screen, and even there it is rare. Between those, the steps are spaced so that neighbours are distinguishable side by side but not so finely that the choice between them becomes a debate: 60, 150, 200, 300, 450. Five steps of motion and one of none.
| Token | Value | For | Never for |
|---|---|---|---|
| --duration-instant | 0ms | Focus rings, selection the user made, typed values, anything under the pointer while it is dragged. | Surfaces that appear away from the pointer; they need at least a fade to be found. |
| --duration-snap | 60ms | Press (:active), the exit of a menu or tooltip, a checkbox mark. | Anything entering; at 60ms an arrival is a cut. |
| --duration-fast | 150ms | Hover in and out, colour and tint changes, a switch knob, a menu or popover entering, a dialog leaving. | Large surfaces; a drawer at 150ms is a flash. |
| --duration-base | 200ms | A dialog entering, the scrim, a tab indicator, expand and collapse, a drawer or toast leaving. | Hover; at 200ms it starts to trail the pointer. |
| --duration-slow | 300ms | A drawer or sheet entering, a toast entering, a card moving across a board. | Anything the user triggers many times a minute. |
| --duration-deliberate | 450ms | A surface crossing most of the screen; a one-time reveal on first use. | Anything repeated. If it happens twice a session, it is slow. |
Pick the step from what moves, not from how important it feels. Small things over short distances take short steps; large surfaces over long distances take longer ones, because the eye expects a heavier object to take longer to get somewhere, and a small one that takes as long looks reluctant. The growth is far less than linear: a drawer travels ten times as far as a switch knob and takes only twice as long. And things that leave go one step faster than things that arrive: the user needs to see where an arriving thing lands, and has already stopped looking at a leaving one.
This is close to where the major systems landed, with fewer steps. Material 3 publishes sixteen durations from 50ms to 1000ms in four bands (short, medium, long, extra long) and uses the short band for almost all component motion. Carbon has six, from 70ms to 700ms, and splits motion into productive (efficient, for the work itself) and expressive (for moments that deserve attention), recommending productive for nearly everything in an application. Products known for feeling fast, such as Linear, get that feeling partly from restraint: little moves, and what moves finishes quickly. This chapter takes the productive position outright. A product UI has no expressive band; the top step is for distance, not for emphasis.
The scale also settles Button Taxonomy Part III's ranges. Its transition table gives 120–200ms for hover, 40–80ms for press, and writes 150ms for colour and 200ms for lift in its code. Those are fast, snap (60), and base on this scale, so its examples stand as written; where it gives a range, the scale picks the point.
One exception to the ceiling, stated so it isn't mistaken for a loophole: clocks are not transitions. A spinner's revolution, a skeleton's shimmer, and the decay of a highlight on changed data (section VII) run for a second or more, because nobody waits for them to finish. The ceiling governs anything standing between the user and their next action.
Use four curves, named for the job: enter (ease-out) for things arriving, exit (ease-in) for things leaving, move (ease-in-out) for things travelling between two places on screen, and linear only where nothing moves. No curve in product UI overshoots its target. Each plot shows progress (up) against time (across); the dashed diagonal is linear, and the handles are the two control points of the cubic-bezier().
The curves come from a physical metaphor, and the metaphor is why they feel honest. Ease-out is friction: something that arrives already moving, from off-screen or out of its trigger, and is brought to rest. Ease-in is a push: something at rest that gathers speed as it leaves, so its last frames are its fastest and it is gone before the eye follows it. Ease-in-out is mass: an object resting in one place must accelerate to leave it and decelerate to stop in another. Linear is a clock: it is right for things that represent time or quantity, and wrong for any object, because nothing with mass starts and stops at full speed. Overshoot is a spring: a mass on a spring passes its rest point and returns. Interface surfaces don't have springs, so a bouncing menu claims a physics the product doesn't have, and it spends 150ms settling after it has visibly arrived.
ease, the CSS default, is the curve nobody chose. It is a passable enter (a short acceleration, then a long settle) and a bad exit, because it decelerates as the thing leaves, so a closing menu lingers half-transparent at the end of its fade. Its presence in a stylesheet is usually evidence that no decision was made; section XI's audit counts it as a defect wherever it appears. ease-in-out as a CSS keyword is a softer version of --ease-move and acceptable, but the system names its own so every component shares the same shape.
| Token | Value | Shape | For |
|---|---|---|---|
| --ease-enter | cubic-bezier(0, 0, .2, 1) | ease-out | Anything arriving: menus, dialogs, drawers, toasts, rows. Hover and colour changes too, so every state change shares one shape. |
| --ease-exit | cubic-bezier(.4, 0, 1, 1) | ease-in | Anything leaving the screen or the user's attention. |
| --ease-move | cubic-bezier(.4, 0, .2, 1) | ease-in-out | Travel between two rest positions: a tab indicator, a reordered card, a switch knob, expand and collapse. |
| --ease-linear | linear | constant | Things that are not objects: a scrim, a cross-fade, a progress bar, a spinner, a shimmer, a decaying highlight. |
These are Material's standard curves from its 2014 motion system, and they are used here because they are the most widely understood set, not because they are the only good one. Carbon ships the same three shapes twice, a gentler productive set and a stronger expressive one. Apple's frameworks have moved to springs, and its no-bounce .smooth spring is, to the eye, an ease-out. A spring with no bounce is a curve; it is the bounce that is the problem. Where a team wants a sharper personality, steepen the enter curve (for example cubic-bezier(.2, 0, 0, 1)); don't add overshoot.
Every transition is one of three kinds, and the kind decides both numbers: enter takes ease-enter and the longer step, exit takes ease-exit and one step shorter, move takes ease-move and a step chosen by distance. A symmetric transition, the same duration and curve both ways, is wrong in both directions: too slow on the way out, and decelerating at the moment it should be accelerating away.
In CSS the pairing falls out of one rule: a transition is defined on the state being entered. The resting rule carries the exit timing, the open rule carries the enter timing, and the browser uses whichever belongs to the state it's going to. A component that declares transition once, on its base class, has chosen symmetry without meaning to.
Use transitions, not keyframe animations, for state. A transition interrupted halfway (the user closes the panel while it is still opening) reverses from where it is, and browsers shorten the return to match the distance left. A keyframe animation restarts from its first frame, so an interrupted open-then-close jumps. Keyframes are for loops, and for one-shot effects that have no reverse.
A move is something already on screen going somewhere else on screen: a card dragged to another column and dropped, a reordered row, a tab indicator. It starts at rest and ends at rest, so it takes --ease-move, and its duration comes from the distance: fast under about 40px, base to a few hundred, slow beyond. Using the enter curve for a move is the common mistake, because ease-out is the one people learn first; the object then leaves its starting place at full speed, with no acceleration, and the start reads as a jolt.
| Kind | Curve | Duration | Examples |
|---|---|---|---|
| Enter | --ease-enter | One step above its exit, by size: fast for small, base for medium, slow for large. | Menu fast · dialog base · drawer slow · toast slow |
| Exit | --ease-exit | One step below its enter. | Menu snap · dialog fast · drawer base · toast base |
| Move | --ease-move | By distance: fast under 40px, base to a few hundred, slow beyond. Same both ways. | Switch knob fast · tab indicator base · card across a board slow |
| Change in place | --ease-enter or linear | fast. Same both ways. | Hover tint, selection tint, a badge count cross-fading |
Move things with transform and fade them with opacity; change colour with the colour properties; never animate a property that changes layout. That is the whole rule, and it comes from what each property costs the browser on every frame.
The browser draws a frame in stages: it resolves styles, lays out boxes, paints their pixels into layers, and composites the layers onto the screen. Animating width or top changes geometry, so every frame repeats layout for the element and for every sibling it pushes, then repaints all of it. On a dense screen that misses frames, and the motion stutters exactly when the user is watching it. transform and opacity don't change geometry: a promoted layer is moved or faded by the compositor, usually on the GPU, without layout or paint, and it stays smooth even when the main thread is busy.
Colour properties sit between: they repaint but don't re-lay out, which is cheap for a button and acceptable for any state change of the fast step. box-shadow is the expensive member of that group, because a large blur is costly to repaint every frame; for a shadow that changes level, put the raised shadow on a pseudo-element and fade its opacity, which is the cross-fade Elevation's hover lift can use on anything larger than a button. Reserve will-change: transform for an element about to move, and remove it after; applied everywhere, it allocates a layer per element and costs memory instead of saving time.
The one place layout animation tempts everyone is expand and collapse, because the content must push what's below it. The usual implementation animates max-height to a guess, and the guess breaks the timing. The right default is to let the height change at once and fade the content in; when the push itself must be seen, animate grid-template-rows from 0fr to 1fr, which runs the curve over the true height and stays short.
Hover enters and leaves in fast (150ms), press lands in snap (60ms), and a focus ring appears at once. These three are responses to the user's own hand, so they must keep up with it; a hover that takes longer to leave than the pointer takes to cross the next row leaves a trail.
Hover is symmetric. Button Taxonomy Part III allows a leave of up to 250ms, slightly longer than the enter; this system takes the 150ms end of that range in both directions, because a longer leave is what draws the trail above, and because Elevation's hover lift asks the same: arrive quickly, leave at the same speed, track the pointer rather than perform for it. Hover is also not an enter: nothing arrives, a state changes in place, so it doesn't follow the enter/exit asymmetry of section IV. The specifics of how a button changes on hover and press stay in Button Taxonomy Part III; this section only sets their clock.
A focus ring never animates in. A keyboard user moves focus by pressing Tab, often several times a second, and needs to find the ring the instant it lands; a ring that grows, fades, or slides makes them wait at every stop and, at speed, leaves them looking for focus that has already moved on. It may fade out, since by then the user's attention is elsewhere, but instant is simpler and loses nothing. Press is snap, the release fast: the press must land while the finger is still down, or the button feels like it didn't register.
Animate a state change when the user could miss it or misread it; don't when they caused it and are looking straight at it. A change the user made with a click is already explained by the click. A change that arrives from elsewhere (another user, a background job, a timer) has no cause the user saw, and a brief, colour-only signal is the cause.
The sliding tab indicator is allowed, and the sliding content is not. The indicator moves a short distance along one bar, connects the old tab to the new, and finishes at base with --ease-move; it costs nothing, because the content is already readable before it lands. It becomes noise in three cases: when it overshoots or stretches, when it travels far (a sidebar indicator sliding past eight items), and when the panels slide with it, because then the user waits for content they asked for and watches every panel in between go by. Navigation owns the tabs themselves; this is only their clock.
The marked change uses no movement at all: the row takes a tint, holds it long enough to be noticed, and lets it decay linearly, with the name of whoever made the change beside the new value. That is the pattern for anything that changes without the user's action: a count that ticks up, a status that flips, a row that appears. Never move a row the user didn't move; a list that reorders itself under the pointer turns the next click into a misclick. Controls the user operates directly need almost nothing: a checkbox mark appears in snap, a switch knob travels in fast with --ease-move, and a selected row tints at once.
Loops are clocks (section II), and they follow two rules. They are linear, since they represent time passing. And they are quiet: a skeleton's shimmer at 1.5–2s with a faint band says "working"; at 600ms with a bright one it strobes, and on a screen of twenty skeleton rows it is the loudest thing in the product. A shimmer is a transform on a gradient layer, never an animated background-position, for section V's reason. Determinate progress takes transform: scaleX() on a bar, updated as the work advances, with base between updates so it never jumps backwards visibly. Whether to show a skeleton, a spinner, or nothing belongs to Loading & Skeleton States.
When several things move at once, one leads and the rest follow in a short, capped sequence: stagger by 30ms, cap the stagger at five items, and let everything after the fifth arrive with it. Leaving is never staggered. A list of fifty that arrives one row at a time is a performance the user can't skip.
A capped stagger gives a direction to an arrival without delaying it: the eye is drawn to the top, follows the first few rows down, and finds the rest already there. Thirty milliseconds is just above the threshold at which a sequence reads as a sequence rather than as one event; at 120ms the gaps are each long enough to notice, and the user reads the list at the pace of the animation instead of their own. Stagger only a first arrival, such as a list loading for the first time or a dashboard's tiles filling in. A refilter, a sort, or the next page replaces data the user just asked for, and they're already looking for a specific row; those arrive all at once.
| Rule | Value | Why |
|---|---|---|
| Stagger step | 20–40ms · 30 default | Reads as a sequence; doesn't read as a wait. |
| Stagger cap | 5 items · ≤ 150ms total | Item six onwards arrives with item five. The whole arrival finishes inside base + 150. |
| Container and children | container first on enter, last on exit | A card fades in and its contents follow 30–50ms later; on exit the contents go with it, no separate sequence. |
| One leader | one moving thing per cause | A dialog arriving doesn't also shift the page, pulse a badge, and slide a toast. |
| Exit | together · one step shorter | Nobody waits to watch things leave in order. |
Each raised surface gets one entrance and one exit from the scale, and the entrance comes from where the surface lives: a menu drops 4px out of its trigger, a dialog fades and grows from 96%, a drawer slides from its edge, a toast rises from below. Each toggle opens one surface at the level Elevation & Depth gives it.
| Surface | Enter | Exit | Movement |
|---|---|---|---|
| Tooltip | fast · enter | snap · exit | Opacity only. The delay before it shows belongs to Popover & Tooltip. |
| Menu, popover, listbox | fast · enter | snap · exit | Opacity + 4–8px from the trigger's side. Exit fades in place. |
| Dialog | base · enter | fast · exit | Opacity + scale .96 → 1 from its centre. |
| Scrim | base · linear | fast · linear | Opacity only, with its dialog or drawer. |
| Drawer, sheet | slow · enter | base · exit | translate from its own edge, the full width. |
| Toast | slow · enter | base · exit | Opacity + 16px up from the screen edge in; fades out in place. |
The movement each surface uses comes from the question Elevation asks of every raised surface: where would it go if it left? A menu belongs to its trigger, so it comes out of it, a short distance, and goes back by simply fading. A dialog belongs to no element on the page, so it doesn't travel; it grows slightly from the centre, enough to read as arriving. A drawer is attached to an edge, so it slides the full width from that edge. Starting a dialog from zero scale, or from the button that opened it, claims a relationship it doesn't have and costs twice the time.
That is all of overlays this chapter takes. Focus moving into the dialog, Escape, clicks on the scrim, and what happens to focus when a surface closes belong to Overlays: Modal & Drawer and Overlays: Popover & Tooltip, which take these numbers as given. Elevation & Depth Part II will take up the surface in transit, its level and shadow while it travels.
prefers-reduced-motion: reduce is a contract: remove the movement, keep the transition. Distances go to zero, durations stay, and every surface cross-fades in place. Feedback is never removed, because a user who asked for less motion didn't ask to lose track of what changed.
The setting exists because large movement (sliding panels, zooms, parallax, anything that moves a big area of the screen) can cause dizziness and nausea for people with vestibular disorders, and WCAG 2.3.3 asks that motion triggered by interaction can be turned off. What triggers symptoms is movement across the field of view, not change. So opacity and colour stay, at their normal durations, and so do the small indicators that carry information: a spinner keeps turning, a progress bar keeps filling. What goes is translation, scale, and anything parallax or scroll-linked. The naive implementation, * { transition: none !important; animation: none !important }, gets this backwards: it keeps nothing and removes the feedback, and a frozen spinner tells the user the product has stopped.
Built on tokens, the contract costs one rule. Movement distances become tokens multiplied into every transform, and the media query sets them to zero. This page works this way: with reduced motion on in your system settings, every surface in it cross-fades in place, and only the lane specimens, whose subject is movement, jump to their ends instead.
One consequence: a surface that hides by moving off-screen needs an opacity too, or with the distance at zero it would sit visible in place. Give every hidden state opacity: 0 as well as its offset, which costs nothing with full motion and makes the reduced version correct by construction. Test it the way the toggle does: turn the OS setting on and use the product for ten minutes, rather than checking that the media query exists.
Count the distinct durations and curves on a screen: every value should be a token, so neither count can exceed the scale, and a busy screen rarely uses more than five durations and three curves. Here is one interaction (sort, select a row, add it to the tray) on the accession list as found, and after one pass of the audit.
| Check | Found | Fix |
|---|---|---|
| Durations | 250, 300, 350, 600 · none from a scale | Tokens only; any literal ms in a component is a defect (§II). |
| Curves | ease, ease-in-out, linear, overshoot | Enter, exit, move, linear. No ease, no overshoot (§III). |
| Layout properties | Toast animates bottom; menu transition: all | Toast on transform; name the properties, never all (§V). |
| Over 500ms | Badge bounce, 600ms | A cross-fade of the count at fast (§VII). |
| Motion with no cause | Row selection fades in 300ms after the user's own click | Instant; the click is the cause (§VII). |
| Reduced motion | Not handled | Distance tokens to 0 (§X). |
Count the clocks. Play the busiest interactions on the screen, then list every distinct duration and timing function the browser computed, and every transition that names a layout property. The count of each should match the tokens; anything else is a defect.
Find everything over 500ms that isn't a loop, and every hover over 150ms. Find motion with no cause: anything that moves when the user didn't act and nothing changed (an idle pulse on a button, a badge that bounces on load, parallax), and anything that animates a change the user caused and is looking at. Interrupt everything: open and close each surface twice quickly; anything that jumps is a keyframe animation doing a transition's job (§IV). Turn reduced motion on at the OS level and repeat: nothing should travel, everything should still be findable.
On a phone, the same scale applies, and the surfaces change shape rather than speed: menus become bottom sheets (a drawer from the bottom edge, slow in, base out) and hover disappears. Gesture-driven motion, where the surface follows a finger and the release velocity decides the rest, is Part II's subject.
Decide motion for the system once, in this order, and components inherit it; decided per component, it drifts into section I's table within a release. Each step depends on the ones before it.
Bounce, elastic, and back-out curves. Physics the interface doesn't have, plus time spent settling after arrival.
transition: all. It animates whatever changes next, including layout, and nobody reviewing the component can tell what it will move.
Slow hover. Anything over 150ms trails the pointer across a list.
Animated content in tabs and carousels. The indicator may glide; the content the user asked for is simply there.
Staggered tables. Fifty rows one at a time is a show the user can't skip.
Motion without a cause. Idle pulses, attention wiggles, parallax. Moving things get looked at, and each one takes the look from something that mattered.
Reduced motion as an off switch. Deleting every transition and animation removes the feedback the user still needs.
This part has been about the transition: how long, along which curve, on which property. Part II takes up motion that follows the user rather than a clock: springs and gesture-driven movement, interruption and release velocity, shared-element transitions between screens and the View Transitions API, scroll-linked motion, and the surface in transit that Elevation & Depth Part II hands over.
Part I of Motion & Easing.
The best transition is over before anyone thinks to watch it.