# Motion

**Last updated:** 2026-11-27T01:02:18-03:00 (UTC-3)

Motion is small and optional: it confirms a change of state and gives the brand a little life, and it never carries information that is not also shown without it. Part of the [design system](/docs/design/overview/).

## Tokens

<!-- design-tokens:motion -->
| Token | Value |
|---|---|
| `--motion-duration-fast` | `150ms` |
| `--motion-duration-base` | `200ms` |
| `--motion-duration-slow` | `320ms` |
| `--motion-ease-standard` | `ease` |
| `--motion-ease-in-out` | `ease-in-out` |
| `--motion-bot-float` | `3s` |
| `--motion-bot-blink` | `4.8s` |
<!-- /design-tokens:motion -->

- **fast** (150ms): hover and press feedback, small transforms.
- **base** (200ms): drawers, menus and panels that open or close; the console's mobile navigation drawer slides in this time.
- **slow** (320ms): larger changes of layout, used rarely.
- **ease-standard** for feedback; **ease-in-out** for things that move and come back, such as the bot.

```css
.release-card {
  transition:
    border-color var(--motion-duration-fast) var(--motion-ease-standard),
    background var(--motion-duration-fast) var(--motion-ease-standard);
}
```

## m7

m7 is the only thing that moves on its own: live in the console's rail, login card, boot screen and m7 ai launcher, and as the static mark in the site title. The background field behind both products is static: its blobs, ribbons and rays never move, so there is nothing to pause.

- **Live, in the console:** not keyframed. The engine in `web/src/m7/` simulates it on one `requestAnimationFrame` loop that stops while the page is hidden: the outline breathes (2.4% of its height every 3.3 s) and sways; the eyes glance around, follow the pointer, make micro-saccades and blink on an irregular schedule (sometimes twice). Pressing the m7 ai launcher makes the bot inside hop (not under reduced motion).
- **Static, on the site and in `logo-animated.svg`:** CSS only. Float `m7-float`, `--motion-bot-float` (3s), ease-in-out, alternating between `translateY(3px) rotate(-2deg)` and `translateY(-5px) rotate(2deg)`; blink `m7-blink`, `--motion-bot-blink` (4.8s), the eyes at `scaleY(0.09)` between 45% and 46% of the cycle.

The site's keyframes live in `docs-site/src/components/SiteTitle.astro` and read the duration tokens.

## Reduced motion

Under `prefers-reduced-motion: reduce`:

- the background field is unchanged, because it does not move;
- m7 only blinks: in the console its outline holds the rest pose, its eyes stay centred and the launcher's hop is skipped; on the site and in `logo-animated.svg` the float stops and the blink goes on;
- the console's refresh spinner (`.spinning`) stops; the refreshed data still replaces the old in place, and on Usage the Refresh button is also disabled while the request runs;
- short transitions started by the reader (the 200ms mobile drawer slide, a 150ms chevron turn) remain: they follow an action and end at once;
- new components must do the same: turn off any looping or self-started animation in a `@media (prefers-reduced-motion: reduce)` block, and keep transitions at `--motion-duration-base` or shorter.

```css
@media (prefers-reduced-motion: reduce) {
  .release-card {
    transition: none;
  }
}
```

The console's `theme.spec` browser test checks both sides: the eyes follow the pointer normally, and stay still under reduced motion.

## Rules

- No motion that loops forever except the bot. Backgrounds stay still.
- No motion that is the only signal: a loading spinner sits next to text, a changed value is also visible after the transition ends.
- No parallax, no scroll-linked animation, no auto-playing carousels.
