
Setting a Motion Budget: Animation Is Not Free
Transitions, scroll effects, and decorative motion that need layout, paint, or script work compete for the thread that answers taps. Decide how much motion, where, and how heavy before it is built.
TL;DR: Transitions, scroll effects, and decorative animations that need layout, paint, or script work compete for the same main thread the browser uses to respond to a tap, so heavy main-thread motion is one way a beautiful design can produce a sluggish Interaction to Next Paint. How much motion there is, where it appears, and how heavy each effect is are design decisions made at the wireframe, not free flourishes added at the end. A motion budget agreed before build, with reduced-motion treated as a designed state rather than an afterthought, keeps a site feeling alive without making it feel slow.
Motion has a cost users feel
A browser does most of its visible work on a single main thread. That thread paints the page, runs the page's scripts, and — critically — responds the instant someone taps, clicks, or types. Animation that script updates frame by frame, or that changes layout or paint, runs on that same thread. When such an effect is doing work, a tap that arrives mid-animation has to wait its turn. The visitor does not see "an animation is in progress." They feel a button that took a beat too long to react. Animations of transform and opacity are different: in many cases they can be handled by a separate compositor thread, where they can keep going without being interrupted by work on the main thread.
This is why motion that runs on the main thread shows up in Interaction to Next Paint, the responsiveness metric that became a Core Web Vital in 2024. INP does not measure how smooth an animation looks; it measures how long it took, after someone clicked, tapped, or pressed a key, until the browser could paint the next frame, and it reports the longest such delay observed in a visit, ignoring outliers. Scrolling, hovering, and zooming on their own are not counted. A site can animate beautifully and still score poorly, because main-thread animation work and the response to a tap draw on the same thread.
Two properties of decorative motion make the cost worse than it first appears. The first is that scroll-driven and continuous effects do not run once and stop — a parallax layer, an element that tracks the cursor, a background that drifts forever keeps working for as long as it is active on the page. When such an effect is updated by script on each frame, or changes layout or paint, it adds main-thread work on every frame it runs, and it costs battery life on mobile devices. The second is timing: the heaviest animations are often the ones triggered by an interaction — a tap that launches an elaborate transition built on layout, paint, or script work is a costly case, because that work can delay the very frame that shows the response it was meant to celebrate. The main-thread work behind a slow interaction is not an abstraction; it can be the animation a designer specified, doing exactly what it was asked to do.
The motion budget set at design time
If motion has a cost, then the amount of motion is a quantity to decide, not a default to inherit. A motion budget answers three questions before anything is built: how much motion the experience uses overall, where it is allowed to appear, and how heavy any single effect is permitted to be. Like the performance budget it belongs inside, it is a one-paragraph agreement, not a tooling exercise — a sentence a planner and a designer can read and a sentence an engineer can hold a build to.
The organizing principle that makes the budget easy to set is meaning over decoration. Motion that communicates — a control that confirms it was pressed, a panel that shows where it came from, a state that changes so the change is legible — earns its cost because it does a job for the user. Motion that exists because a surface felt static spends the same budget and returns nothing the visitor was waiting for. A calm default with a few intentional accents can read as more confident than motion applied everywhere, and it gives the browser less animation work to do.
This is a planning decision before it is a craft one. A homepage concept that promises drifting backgrounds, scroll-reactive sections, and animated transitions between every view has spent its motion budget in the wireframe review, long before an engineer can act on it. No amount of later optimization fully undoes a design that requires constant motion to feel like itself. As this topic's guiding idea puts it, performance is a design decision recognized at the planning stage — and motion is one of the clearest places that idea is true.
Cheap motion vs expensive motion
Not all motion costs the same, and the difference is something a designer can choose without writing any code. Some animations move an element by repainting where everything around it sits — the browser has to recompute the layout on every frame, which is the expensive kind of work that crowds out interaction. Other animations achieve a visually similar result by sliding or fading an element without disturbing its neighbors, which the browser handles far more cheaply.
The practical consequence is that two animations that look almost identical to a visitor can have very different costs, and it is worth checking whether a cheaper one reads the same. A panel that appears to push the page down as it opens is expensive; the same panel that slides over the content reads nearly the same and costs a fraction. A number that counts up by reflowing the text around it is expensive; the same number that cross-fades is cheap. The engineering depth of how a browser composites a frame belongs to the frontend performance engineering article in the modern frontend development topic on this site, and it is not needed here. The design-stage point is enough: when two effects communicate the same thing, specifying the cheaper one is a free win the design hands to the build.
The case where this matters most is on-interaction motion. An effect that fires the moment a person taps and needs main-thread work — script, layout, or paint — competes directly with the response to that tap. Reserving the heaviest effects for moments the user is not waiting on — an entrance the page makes on its own, a transition between sections the visitor chose to leave — keeps the expensive motion away from the taps it would otherwise slow, as long as it is no longer busy on the main thread when the visitor does tap.
Motion as an accessible, budgeted state
A motion budget is incomplete until it accounts for the visitors who have asked for less of it. Operating systems and browsers expose a reduced-motion preference that people set for reasons ranging from vestibular discomfort to simple preference. Treating that preference as a state to design — what the calm version of this screen looks like, which accents stay and which are removed — produces a better result than treating it as an automatic stripping that nobody art-directed.
The full accessibility depth of motion safety — which categories of animation can trigger harm, what the conformance criteria require — is owned by the accessibility topic on this site and is not restated here. The design-stage responsibility is narrower and concrete: the reduced-motion variant is part of the deliverable, specified in the handoff alongside the default, so the build is not improvising it.
That handoff is where the motion budget stops being an intention and becomes a contract the whole team can hold. The design specification should name the motion budget in plain terms — the few places motion is intentional, the effects that are decorative and therefore first to go under pressure, and the reduced-motion behavior for each. Performance here is not one role's job: a planner scopes how much the experience needs, a designer chooses the cheaper effect that reads the same, and a frontend engineer implements it within the budget. No single desk can be the one held accountable for a number whose causes were decided three roles upstream. How page experience relates to search visibility is the subject of other work within this topic and a sibling topic on this site; the point for the team building the screen is simpler: a page that responds slowly because it is busy animating is a worse experience first, and a weaker asset second.
What to put in the next handoff
You do not need to remove motion to act on this. You need to decide it on purpose.
- Write the motion budget into the design brief — the few places motion is intentional, and the explicit statement that everything else is decorative and cuttable.
- For every specified effect, ask whether a cheaper animation reads the same; default to the cheaper one unless the expense buys meaning.
- Keep the heaviest motion off the moment of interaction — reserve it for entrances and transitions the visitor is not waiting through, and check that it is not still occupying the main thread when the visitor taps.
- Specify the reduced-motion variant in the handoff, designed, not left for the build to invent.