Skip to content

Motion

The curves and every enter and exit pattern live, with the real @nuvemonline/ui components. Turn on slow motion to judge curve and origin.

Slow motion

Multiplies every duration token by 4 while you are on this page. Anything that doesn't slow down uses a loose value, outside the tokens.

To see reduced motion, emulate it in DevTools: Rendering, "Emulate CSS media feature prefers-reduced-motion". Opacity and color stay; movement, scale and blur go away.

Curves

The four curves travel the same distance in the same time. Only the shape changes.

  • --ease-outEnter and exit (default)
  • --ease-in-outSomething already on screen that moves
  • --ease-drawerSheet, sidebar, phone menu
  • --ease-expressiveExpressive motion only

Functional motion

The everyday kind: under 300ms, strong ease-out, no bounce.

Press

Hold the click: the button compresses to 0.97 and releases slower than it went down.

Popover

It grows from the trigger, not from the center. The scale starts from the button that opened it.

Tooltip

With the mouse, it grows from the trigger. With the keyboard, it shows up instantly.

Dialog

Centered, with short scale and fade. The exit is shorter than the entrance.

Menu and sheet

On desktop, the menu grows from its trigger. On the phone, the same menu becomes a sheet that enters and exits through the bottom edge.

Toast

Stack them and close one mid-entrance: it leaves through the same edge, from where it was, without jumping.

Sidebar

It lives in this page's shell. On desktop, collapse the sidebar with the button at its top, next to the brand, and grab it mid-animation to redirect it. With slow motion on, it slows down too.

Adopted recipes

The recipes the platform adopted from Emil Kowalski (spec nuvem-ui#295), each one live and on the tokens: slow motion reaches all of them.

Phone menu spring

On the phone, drag the dock handle: the menu follows your finger and resists past the edges (rubber-band). On release, a spring starts from your finger's velocity and picks the end by projecting the gesture; only a flick gets a light bounce. Grab it mid-way to redirect it.

Reveal with clip-path

The clip opens from left to right, without moving or scaling the content. With reduced motion, it becomes a fade.

Crossfade with blur

Both states share the same spot: a blur of up to 4px during the swap hides the overlap. With reduced motion, only the fade stays.

Saving…

Glass materializing

The action bar comes in from the foot of the block and its glass materializes: blur and scale together, with the exit shorter than the entrance.

Accordion

The native details element opens and closes animating height and opacity, measuring nothing in JS. With reduced motion, only the opacity.

Why animate the height?
Without it, the content pops in and the rest of the page jumps.
And without interpolate-size support?
The browser opens and closes it instantly, like a plain details element.

Toast stack reflow

Stack them and close the first one with the X: the ones below slide into place by translate, without animating height.

Expressive motion

Rare surfaces only: login, onboarding, success, the assistant's empty state. Up to 500ms, with fade, a gentle rise and staggered suggestions. Never on an everyday screen.

How can I help?

Pick a suggestion or type your question.

Single trigger

A timed scene bound to InView: it arms when it leaves the screen entirely and plays when its top crosses 85% of the height. It plays once per load: scroll away and back, and it does not repeat. With reduced motion, it arrives ready.

The criterion comes in

The rule applies

The destination settles