Foundations
Motion
The durations and easing for press, hover, slides, a drag settling and avatar changes, and the rule that ordinary status stays still.
Motion in Raft confirms an action or shows where something came from. It never decorates, and ordinary status never moves on its own: a screen people watch for hours stays still.
Principles
- Status doesn't loop. A working agent is a still yellow light. The only looping animation in the working product is the pixel spinner while something loads, and it goes away as soon as loading ends. The loading exception is pull to refresh on Android web, which draws Android's own turning arc while it refreshes (PullToRefresh).
- Ottie is a bounded illustration exception. In the dedicated recent-activity card, Ottie may rest with a very slight breath or type occasionally, following the approved character study. Error and completion play a short action once. This makes the card friendly without animating presence lights, avatars, activity summaries or working lines. The assistant's Ottie, docked on the composer or a pane's edge, has the same allowance: asleep (nothing new), it breathes slowly (3.4s, at most a 4.5% stretch) and small z's float up and fade; something new pops it out once, with two small bobs and never a sideways sway. It is a character, not a status light: what is new is told by that one pop, never by the loop (Artea, 2026-11-10, #proj-assistant:#24; slock #13752). Pause outside the viewport and in hidden documents; reduced motion shows a still, with one still z for Ottie asleep. See Steps: Ottie illustration.
- Press doesn't move. Hover and press add an overlay; nothing shifts or scales.
- Hover and press keep up with the pointer. They change at once, with no fade in or out: the overlay, an action a hover reveals, the color of a × or of an underline. Hover says where the pointer is now, so it can't lag behind it; a fade drew a trail of half-tinted rows behind a mouse crossing a list or a menu, and one part of a message fading while the message itself changed at once read as two different products (stdrc, 2026-11-20, #proj-raft-ui:0cf185b9). It is the rule for every other thing that is already in place: a dialog appears without animation, a column changes width at once. The native menus and lists of macOS and Windows also change at once.
- Reduced motion stops everything. With
prefers-reduced-motion, every animation on this page is off.
Easing
ease-slide is the easing curve for things that move: slides, sheets and changes to an avatar stack. A drag settling has its own, ease-drag-settle (motion-drag-settle-easing), an ease-out that leaves the hand fast and lands softly.
Usage
- Show hover only on devices with a pointer (
@media (hover: hover)). - Scrollbars are the one thing a hover fades in: with
trigger="hover"they fade in over 120ms, as the system's overlay scrollbars do (ScrollArea). They are not the hover state of what is under the pointer, only the way to scroll it. - Don't float or tilt the large avatar on a profile. It stays still.
- Centered overlays (dialogs, confirmations, search, task details, large forms) get the scrim and appear and disappear without animation: they are already in place and don't come from anywhere. Of the overlays, only the drawer and the bottom sheet slide in, because the slide shows which edge they came from; on a phone that includes a dialog with fields, which is a sheet there (Dialog). The rule is the same for every centered overlay, so don't give one of them an animation of its own.
- The app's columns change without animation: collapsing or expanding the sidebar (by its toggle or by dragging past the end), expanding a column or restoring the row, the thread folding over the conversation or standing beside it again, and a column becoming a tab or a column again. They switch at once, because animating a whole column's position or width flickers (AppShell, Resizable).
- A scrim moves with its surface: under a centered overlay it appears at once; under a drawer or a bottom sheet it fades in over the same time and with the same easing as the slide, and out as the surface leaves, so the page doesn't go dark in one step while the panel is still on its way. With reduced motion it appears at once. See Choosing a component.
Related
- States: the hover tiers.
- Drag and drop: the drop and cancel glide.
- Haptics: the vibrations that land on the same frame as an animation.
- Working agents: how working agents are shown without animation.
- Brand: where brand illustration is allowed.