# Motion

> Durations and easing for transitions.

Motion is short and used to show a change of state, not to decorate.

| Token | Value | CSS variable |
| --- | --- | --- |
| `duration/fast` | 120ms | `--aloxe-duration-fast` |
| `duration/base` | 180ms | `--aloxe-duration-base` |
| `duration/slow` | 320ms | `--aloxe-duration-slow` |
| `duration/enter` | 400ms | `--aloxe-duration-enter` |

Standard easing: `cubic-bezier(0.22, 1, 0.36, 1)` (`--aloxe-easing-standard`).

## Guidance

- Use `fast` for hover and press feedback, `base` for most transitions, `slow` for larger panels and `enter` for elements that appear.
- With Tailwind, the easing is available as `ease-ax-standard`.
- Respect `prefers-reduced-motion`: remove movement and keep, at most, a fade.

```css
.panel {
  transition: opacity var(--aloxe-duration-base) var(--aloxe-easing-standard);
}

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