# Motion

### Durations

UI motion stays under 300ms. Every transition and animation takes its duration from here; literal durations are a lint error (loops excepted).

| Token | CSS variable | Utility | Value | Reduced motion | Description |
| --- | --- | --- | --- | --- | --- |
| `duration.fast` | `--fndn-duration-fast` | `duration-fast` `delay-fast` | `100ms` |  | Hover and colour feedback. |
| `duration.base` | `--fndn-duration-base` | `duration-base` `delay-base` | `150ms` |  | Small state changes: colour, opacity, focus rings. |
| `duration.press` | `--fndn-duration-press` | `duration-press` `delay-press` | `160ms` |  | Press feedback (scale on :active). |
| `duration.tooltip` | `--fndn-duration-tooltip` | `duration-tooltip` `delay-tooltip` | `125ms` |  | Tooltips and other tiny popovers. |
| `duration.popup` | `--fndn-duration-popup` | `duration-popup` `delay-popup` | `180ms` |  | Selects, menus, popovers, hover cards. |
| `duration.reveal` | `--fndn-duration-reveal` | `duration-reveal` `delay-reveal` | `200ms` | `0ms` | Collapsible regions (the one sanctioned height-like animation). |
| `duration.move` | `--fndn-duration-move` | `duration-move` `delay-move` | `200ms` | `0ms` | On-screen travel: sliding thumbs, gliding highlights, chevron rotation. |
| `duration.slow` | `--fndn-duration-slow` | `duration-slow` `delay-slow` | `250ms` |  | Dialogs and larger surfaces. |
| `duration.enter` | `--fndn-duration-enter` | `duration-enter` `delay-enter` | `300ms` |  | One-shot entrances of content (fade-up). The upper bound for UI. |
| `duration.stagger` | `--fndn-duration-stagger` | `duration-stagger` `delay-stagger` | `40ms` | `0ms` | Delay between items of a group entrance (30–80ms budget). Cap the multiplier so a long list never waits. |
| `duration.sweep` | `--fndn-duration-sweep` | `duration-sweep` `delay-sweep` | `1000ms` | `0ms` | The prompt bar's send sweep: a decorative band crossing the composer once. Longer than any UI motion on purpose, so the band is seen travelling. Not for anything a user waits on. |

### Easings

Strong custom curves; the built-in CSS easings are too weak for deliberate motion. Entering/exiting uses out-strong, on-screen movement uses move, colour and opacity changes use the built-in `ease`, loops use `linear`. Never ease-in.

| Token | CSS variable | Utility | Value | Description |
| --- | --- | --- | --- | --- |
| `easing.out-strong` | `--fndn-easing-out-strong` | `ease-out-strong` | `cubic-bezier(0.23, 1, 0.32, 1)` | Strong ease-out. Entrances, exits, press feedback, reveals, popups. |
| `easing.in-out-strong` | `--fndn-easing-in-out-strong` | `ease-in-out-strong` | `cubic-bezier(0.77, 0, 0.175, 1)` | Strong ease-in-out. Elements that are already on screen and travel or morph. |
| `easing.move` | `--fndn-easing-move` | `ease-move` | `cubic-bezier(0.77, 0, 0.175, 1)` | Sliding indicators (segmented thumb, switch thumb). Aliases in-out-strong; change here to retune every indicator at once. |
| `easing.drawer` | `--fndn-easing-drawer` | `ease-drawer` | `cubic-bezier(0.32, 0.72, 0, 1)` | iOS-like sheet/drawer curve. |
| `easing.link` | `--fndn-easing-link` | `ease-link` | `cubic-bezier(0.16, 1, 0.3, 1)` | Animated link underline. |

### Timings

Named timings for transitions: [duration token, easing token or CSS keyword]. They become the motion-<what>-<name> utilities of the Tailwind preset (motion-colors-fast, motion-transform-press). These are the only timings a recipe can use.

The utilities are `motion-<what>-<timing>`, with `<what>` one of `colors`, `opacity`, `shadow`, `transform`, `filter`, `size`, `radius`; `motion-also-[<property> var(--fndn-duration-…) var(--fndn-easing-…)]` adds any other property.

| Timing | Duration | Easing | Utilities |
| --- | --- | --- | --- |
| `fast` | duration.fast | ease | motion-colors-fast, motion-opacity-fast, … |
| `base` | duration.base | ease | motion-colors-base, motion-opacity-base, … |
| `slow` | duration.slow | ease | motion-colors-slow, motion-opacity-slow, … |
| `press` | duration.press | easing.out-strong | motion-colors-press, motion-opacity-press, … |
| `move` | duration.move | easing.out-strong | motion-colors-move, motion-opacity-move, … |
| `glide` | duration.move | easing.move | motion-colors-glide, motion-opacity-glide, … |
| `reveal` | duration.reveal | easing.out-strong | motion-colors-reveal, motion-opacity-reveal, … |
| `popup` | duration.popup | easing.out-strong | motion-colors-popup, motion-opacity-popup, … |
| `tooltip` | duration.tooltip | easing.out-strong | motion-colors-tooltip, motion-opacity-tooltip, … |
| `enter` | duration.enter | easing.out-strong | motion-colors-enter, motion-opacity-enter, … |
| `fast-out` | duration.fast | easing.out-strong | motion-colors-fast-out, motion-opacity-fast-out, … |
| `base-out` | duration.base | easing.out-strong | motion-colors-base-out, motion-opacity-base-out, … |
| `slow-out` | duration.slow | easing.out-strong | motion-colors-slow-out, motion-opacity-slow-out, … |

### Motion quantities

Shared motion quantities. Each carries its reduced-motion value, so `prefers-reduced-motion` keeps fades and colour but drops travel everywhere at once.

| Token | CSS variable | Utility | Value | Reduced motion | Description |
| --- | --- | --- | --- | --- | --- |
| `motion.press-scale` | `--fndn-motion-press-scale` | `scale-press` `squeeze-press` | `0.97` |  | Scale of a pressed button, chip or icon button. Subtle: 0.95–0.98. |
| `motion.press-scale-sm` | `--fndn-motion-press-scale-sm` | `scale-press-sm` `squeeze-press-sm` | `0.9` |  | Scale of a pressed control of 20px or less (checkbox box, radio, switch thumb). 0.97 moves a 16px box by under half a pixel, which cannot be seen. |
| `motion.enter-shift` | `--fndn-motion-enter-shift` |  | `8px` | `0px` | Rise of a one-shot entrance (fndn-fade-up). |
| `motion.popup-scale` | `--fndn-motion-popup-scale` | `scale-popup` `squeeze-popup` | `0.96` | `1` | Closed-state scale of trigger-anchored popups. Never 0; nothing appears from nothing. |
| `motion.sheet-shift` | `--fndn-motion-sheet-shift` |  | `100%` | `0%` | How far a closed sheet (drawer) sits past its edge. Reduced motion: none, the sheet fades in place. |
| `motion.stagger-max` | `--fndn-motion-stagger-max` |  | `5` |  | Largest stagger multiplier. Items past it arrive with the last staggered one. |
| `motion.carousel-depth-scale` | `--fndn-motion-carousel-depth-scale` |  | `0.94` | `1` | Scale of a carousel slide (effect depth) as it starts to enter or finishes leaving the view; full size once it is all in view. Reduced motion: none. |
| `motion.carousel-depth-opacity` | `--fndn-motion-carousel-depth-opacity` |  | `0.5` | `1` | Opacity of a carousel slide (effect depth) at the same moments as its scale. Reduced motion: none, the slide only scrolls. |
| `motion.carousel-parallax-shift` | `--fndn-motion-carousel-parallax-shift` |  | `0.2` | `0` | How far the picture of a carousel slide (effect parallax) lags its slide when the slide is wholly out of view, as a share of the width of the picture's frame (0.2: a fifth of it); the picture is that much wider on each side. Reduced motion: none, the picture moves with its slide. |
