Motion tokens
Motion tokens define how UI elements move — combining an easing curve and a duration. All tokens are prefixed with $ and follow the pattern $ease{Easing}Duration{Size}.
Ask Claude Code or Hopper instead: the animate skill knows these tokens, Alan's motion guidelines, and the matching easing and duration variables in the 📐 Foundations Figma library. Describe what should move and how it should feel — "make this sheet slide up the way the rest of Murray does" — and it picks the token, explains why in a line, and writes the code or guides the Figma prototype.
It also covers the parts that are easy to forget: the matching exit, reduced motion, and which curves must never touch opacity.
Usage
Pass a motion token to the animation prop on any animated Tamagui component, then use enterStyle to define the start state:
<Box animation="$easeDefaultDurationMd" enterStyle={{ opacity: 0, y: 8 }} opacity={1} />
All tokens
- All tokens
- Easings
- Durations
- Examples
- Do / Don't
- Curves
Motion tokens combine an easing curve and a duration. Use them via the animation prop on any animated Tamagui component (e.g. animation="$easeDefaultDurationMd").
| Token | Easing | Duration | Preview |
|---|---|---|---|
$easeDefaultDurationXs | cubic-bezier(0.6, 0, 0.4, 1)(Default) | 100ms(xs) | |
$easeDefaultDurationSm | cubic-bezier(0.6, 0, 0.4, 1)(Default) | 150ms(sm) | |
$easeDefaultDurationMd | cubic-bezier(0.6, 0, 0.4, 1)(Default) | 200ms(md) | |
$easeDefaultDurationLg | cubic-bezier(0.6, 0, 0.4, 1)(Default) | 250ms(lg) | |
$easeDefaultDurationXl | cubic-bezier(0.6, 0, 0.4, 1)(Default) | 300ms(xl) | |
$easeDefaultDurationXxl | cubic-bezier(0.6, 0, 0.4, 1)(Default) | 500ms(xxl) | |
$easeMoveInDurationXs | cubic-bezier(0.2, 1, 0.4, 1)(Move In) | 100ms(xs) | |
$easeMoveInDurationSm | cubic-bezier(0.2, 1, 0.4, 1)(Move In) | 150ms(sm) | |
$easeMoveInDurationMd | cubic-bezier(0.2, 1, 0.4, 1)(Move In) | 200ms(md) | |
$easeMoveInDurationLg | cubic-bezier(0.2, 1, 0.4, 1)(Move In) | 250ms(lg) | |
$easeMoveInDurationXl | cubic-bezier(0.2, 1, 0.4, 1)(Move In) | 300ms(xl) | |
$easeMoveInDurationXxl | cubic-bezier(0.2, 1, 0.4, 1)(Move In) | 500ms(xxl) | |
$easeMoveOutDurationXs | cubic-bezier(0.6, 0, 0.8, 0)(Move Out) | 100ms(xs) | |
$easeMoveOutDurationSm | cubic-bezier(0.6, 0, 0.8, 0)(Move Out) | 150ms(sm) | |
$easeMoveOutDurationMd | cubic-bezier(0.6, 0, 0.8, 0)(Move Out) | 200ms(md) | |
$easeMoveOutDurationLg | cubic-bezier(0.6, 0, 0.8, 0)(Move Out) | 250ms(lg) | |
$easeMoveOutDurationXl | cubic-bezier(0.6, 0, 0.8, 0)(Move Out) | 300ms(xl) | |
$easeMoveOutDurationXxl | cubic-bezier(0.6, 0, 0.8, 0)(Move Out) | 500ms(xxl) | |
$easeEmphasizedDurationXs | cubic-bezier(0.1, 0.6, 0.3, 2)(Emphasized) | 100ms(xs) | |
$easeEmphasizedDurationSm | cubic-bezier(0.1, 0.6, 0.3, 2)(Emphasized) | 150ms(sm) | |
$easeEmphasizedDurationMd | cubic-bezier(0.1, 0.6, 0.3, 2)(Emphasized) | 200ms(md) | |
$easeEmphasizedDurationLg | cubic-bezier(0.1, 0.6, 0.3, 2)(Emphasized) | 250ms(lg) | |
$easeEmphasizedDurationXl | cubic-bezier(0.1, 0.6, 0.3, 2)(Emphasized) | 300ms(xl) | |
$easeEmphasizedDurationXxl | cubic-bezier(0.1, 0.6, 0.3, 2)(Emphasized) | 500ms(xxl) | |
$easeLinearDurationXs | cubic-bezier(0, 0, 1, 1)(Linear) | 100ms(xs) | |
$easeLinearDurationSm | cubic-bezier(0, 0, 1, 1)(Linear) | 150ms(sm) | |
$easeLinearDurationMd | cubic-bezier(0, 0, 1, 1)(Linear) | 200ms(md) | |
$easeLinearDurationLg | cubic-bezier(0, 0, 1, 1)(Linear) | 250ms(lg) | |
$easeLinearDurationXl | cubic-bezier(0, 0, 1, 1)(Linear) | 300ms(xl) | |
$easeLinearDurationXxl | cubic-bezier(0, 0, 1, 1)(Linear) | 500ms(xxl) |
Five easing curves, combinable with any duration. Click a preview to play.
| Name | Use | When to use | Preview (250ms) |
|---|---|---|---|
| Default | Move, Morph, Shrink, Pop | Element stays visible throughout. Hero transitions, buttons, icons, container moves — or when in doubt. | |
| Move In | Move in | Element enters view. Modals, input errors, bottom sheets, snackbars. | |
| Move Out | Move out | Element leaves view. Closing modals, bottom sheet exit. | |
| Emphasized | Spring (overshoot) | Button or icon press, or entries that need overshoot. | |
| Linear | Fade in/out, color | Color and opacity changes. Easing is imperceptible at short durations. |
Six durations, from extra-short (xs) to extra-extra-large (xxl).
| Scale | Value | When to use | Preview (Default easing) |
|---|---|---|---|
| xs | 100ms | Quick, utility-focused transitions. | |
| sm | 150ms | Hover states and small element feedback. | |
| md | 200ms | Movements across a medium part of the screen, or expressive easing. | |
| lg | 250ms | Elements crossing a larger portion of the screen, or when md feels rushed. | |
| xl | 300ms | Big, expressive transitions — pairs well with emphasized easing. | |
| xxl | 500ms | Slow, deliberate transitions for large surfaces like sheets and full-screen panels. |
Realistic UI patterns using their recommended tokens. Click Replay on each to preview.
Using the wrong easing for an entering element makes motion feel unnatural. Same modal, different easing.
$easeMoveOutDurationLgMoveOut on an entering element feels sluggish — it decelerates before it arrives, robbing the entrance of energy.
$easeMoveInDurationLgMoveIn starts fast and decelerates into place — natural and purposeful, like an object arriving.
$easeMoveInDurationLgMoveIn on an exit decelerates as it leaves — the element lingers and feels stuck rather than departing.
$easeMoveOutDurationLgMoveOut accelerates as it exits — fast start, clean departure, doesn't overstay its welcome.
$easeMoveInDurationXs100ms is too fast for a large element moving into view — it's jarring and easy to miss entirely.
$easeMoveInDurationLg250ms gives the eye enough time to track the motion and understand where the element came from.
$easeLinearDurationLgLinear movement has no acceleration or deceleration — it feels mechanical and unnatural.
$easeMoveInDurationLgCurved easing mimics how objects move in the physical world — accelerating then settling into place.
Each curve plots progress (y-axis) against time (x-axis). Dashed lines show the control points that shape the curve. The Emphasized curve intentionally overshoots above 1 before settling — this produces the spring/bounce feel.