Skip to content

Motion

Last updated 11 Nov 2026

Motion is the only part of this system that costs the user time. Every animation has to buy back the time it spends, and most of them do not. This page is what movement is allowed to mean here, shown moving. Switch any demo to slow motion to see what the eye normally only feels.

A colour is read instantly, a spacing step is read instantly, and a 300ms slide is 300ms the user spends waiting to find out what happened. That is the whole economics of motion: it earns its place only by answering a question the still frame cannot answer. Where did this come from. What did my click do. Is anything still happening. Three questions, three jobs, nothing else on the list.

The library moves on one scale and one family of curves (Style), declared once and read everywhere (Code), with a test that fails on a duration written any other way. The reduced-motion preference is honoured in every component without the product doing anything (Accessibility).

The three jobs ​

Motion in a Nubisco application is doing one of exactly three things. If you cannot name which, you have decoration.

JobThe question it answersShipped example
ContinuityWhere did this come from, and where does it go back to?NbMenu rises 4px from the trigger it belongs to. NbToaster slides in from the edge it is anchored to, and leaves back through it.
CausalityDid my input do anything?Every control tints on hover and press. The rail's labels fade as it narrows, so the collapse is seen to be the thing the click did.
FeedbackIs anything still happening?NbSpinner rotates. NbSkeleton sweeps. NbProgressBar fills. NbToast runs a countdown bar showing how long it will stay.

What motion is not for ​

It is not for delight, polish, brand expression or making a screen feel alive. Those are the reasons motion gets added to products that then feel slow. The reference is Carbon's: motion should be purposeful, responsive, meticulous and unobtrusive, and if the average user notices it often, there is too much of it.

An exit is not an entrance played backwards ​

Open and close both cards a few times. The left one is how every dialog, popover and drawer in the library is written. The right one is the mistake most products ship.

Enter and exit
Same click, two ways of answering it. Close them and watch which one gets out of the way.
This libraryIn: medium, enter. Out: short, exit.
In
medium on enter, from scale 0.96 and 8px below
Out
short on exit, to scale 0.98 and 4px below
The common mistakeSame curve and step both ways, and a zoom.
In
medium on ease-in-out, from scale 0.8 and 40px below
Out
The same, reversed. It changes its mind on the way out.

Two things are wrong on the right, and both are common. The exit uses the entrance's curve, so the card decelerates on its way out and reads as an element that changed its mind. And the travel is too large: a dialog that zooms from 0.8 is a dialog whose text is unreadable for the first half of its entrance. The library's dialogs scale from 0.96 and rise 8px, which is just enough to say "arrived" without the user having to wait to read it.

The rule, in two halves. The exit is a different curve from the enter, and it is shorter: an exit exists to get out of the way, and the eye is released early. An element that leaves but stays nearby uses the standard curve instead: the inspector closes to zero width beside the page, ready to come back, so it moves on standard, and a dialog is gone when it closes, so it leaves on exit.

One event, one timing ​

Everything that moves because of the same click shares a step and a curve. Open the dialog: the scrim and the content move together, on medium and enter, so the whole thing reads as one surface arriving rather than a backdrop plus a box.

The corollary: do not stagger a container against its own contents. If a panel slides in and its heading fades in 100ms later, you have built two events out of one and added 100ms to the time before the panel is readable.

Direction is part of the same idea. An element that arrives from the wrong edge tells the user it came from somewhere it did not. Every popover travels toward the thing that opened it, and a toast enters from the edge it is anchored to and leaves back through it (Toaster).

The application frame ​

NbShell is where motion is most visible, because the frame is the largest thing on screen and the user operates it all day. The three buttons in the top bar toggle the rail, the console and the inspector.

The rail's collapse has an order, and the component keeps it. On the way down the labels fade first and the rows keep their verbose layout until the width has settled, because switching them at once would centre every icon in a rail that is still wide. On the way up the rows switch at once and the labels are revealed by the widening edge. This is the one place the library sequences a container and its contents, and it does so in the direction that keeps the rail readable.

Controls ​

Small things move on small steps. A control's motion is there to confirm the click, and it is over before the user has finished looking.

The tab bar's active mark is one element that slides to the chosen tab, so the eye follows the selection rather than seeing one mark vanish and another appear. The accordion's section grows on the medium step. Each is in the catalogue with its step and curve.

When a page arrives ​

Carbon gives page load an order, so the eye is led rather than flooded: the shell first, then the static body content, then the dynamic content, then the primary action, and the animated content (charts, visualisations) last, all inside about 500ms. In a Nubisco application most of that order is already structural. NbShell is on screen before any route renders and never moves when the route changes. Static content renders with the view. Dynamic content shows its shape at once with NbSkeleton and swaps in without animating. Charts draw when their data arrives. Nothing has to be choreographed to get Carbon's order, and nothing should be: the order is about what appears first, never about animating the rows of what appears.

What changes on navigation is the main region, and by default it cuts. That is the right answer for most screens: the person asked for the next page and wants it now. Where a product wants the arrival seen (a first-run page, a switch between unrelated areas), NbShell has it built in:

vue
<NbShell route-transition>
  <RouterView />
</NbShell>

The outgoing view is removed at once and the incoming one fades in over --nb-motion-short on the enter curve. There is no travel, no moment where two pages are half visible, and under reduced motion it is a cut again. It follows Vue Router's path by itself, route-key changes what counts as a new page ($route.name fades only between screens), and it never staggers what is inside the page.

We do not stagger lists ​

Staggered list entrances are the most-cited technique in motion writing and this library ships none of them, on purpose. Our lists are data tables, log rows, tree nodes and query results. A staggered table is a table you cannot read until it finishes, and the user opened it to read it. When content arrives progressively, show its structure immediately with NbSkeleton, and do not animate the swap: a cross-fade between a placeholder and real content produces a moment where both are half-visible and neither is legible.

Designing the motion of a product ​

Carbon's motion strategy is six steps, and they are worth doing in order when a product is new or a flow is redesigned, before anyone writes a transition:

  1. Set the goals. What should motion do in this product? For task software the answer is almost always the three jobs and nothing else.
  2. Set the hierarchy. Which moments matter more than others? A destructive confirmation matters more than a hover. Most moments matter very little.
  3. Map the journey. Walk the flows a person actually takes and note every place something appears, leaves, or changes size.
  4. Find the key moments. Of those, mark the few where motion answers a question the still frame cannot. Everything else stays still or uses the library's defaults.
  5. Choose the style. Productive for all of it. Expressive only for the two moments that earn it, a page arriving or a critical alert.
  6. Prototype and test. At real speed and in slow motion (every demo on these pages has the switch), with reduced motion on, on a phone, and with someone who has not seen it before.

Most of the time the result of that exercise is to use the library as it is and add nothing. That is a good result.

Before you write an animation ​

  1. Which of the three jobs is this? Continuity, causality or feedback. If none, delete it.
  2. Is anything else moving because of the same event? Then it shares this step and this curve, and the reflow shares it too.
  3. Which step? Work down the table. If you write a literal, it is a loop, and the reason goes above it.
  4. Which curve? On screen before and after: standard. Arriving: enter. Leaving for good: exit. Leaving but staying nearby: standard. Looping: linear.
  5. Is the exit shorter than the enter, on its own curve? Two rules, not one.
  6. Does it carry travel? Then it needs an @include motion.reduced block, and that block keeps the fade.
  7. Does it still say the same thing with the animation removed? If a user with reduced motion cannot tell what happened, the animation was carrying meaning that should have been in the still frame.