Foundations
Motion
Durations and easings are tokens, combined into a few named timings; a recipe uses only those timings, through the motion-<what>-<timing> utilities. The view options in the top bar slow everything down at once.
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.
| Timing | Duration | Easing | Utility | Sample |
|---|---|---|---|---|
fast | duration.fast 100ms | ease | motion-colors-fast | |
base | duration.base 150ms | ease | motion-colors-base | |
slow | duration.slow 250ms | ease | motion-colors-slow | |
press | duration.press 160ms | easing.out-strong | motion-colors-press | |
move | duration.move 200ms | easing.out-strong | motion-colors-move | |
glide | duration.move 200ms | easing.move | motion-colors-glide | |
reveal | duration.reveal 200ms | easing.out-strong | motion-colors-reveal | |
popup | duration.popup 180ms | easing.out-strong | motion-colors-popup | |
tooltip | duration.tooltip 125ms | easing.out-strong | motion-colors-tooltip | |
enter | duration.enter 300ms | easing.out-strong | motion-colors-enter | |
fast-out | duration.fast 100ms | easing.out-strong | motion-colors-fast-out | |
base-out | duration.base 150ms | easing.out-strong | motion-colors-base-out | |
slow-out | duration.slow 250ms | easing.out-strong | motion-colors-slow-out |
The motion utilities
motion-<what>-<timing> transitions one family of properties with a named timing. Several combine on one element (motion-colors-fast motion-transform-press): each sets its own part of the transition.
motion-colors-*color, background, border, outline, text-decoration, fill, strokemotion-opacity-*opacitymotion-shadow-*box-shadowmotion-transform-*transform, translate, scale, rotatemotion-filter-*filter, backdrop-filtermotion-size-*width, height, grid tracksmotion-radius-*border-radiusmotion-also-[…]any other transition, added to the ones above (display for an exit, for example)
Durations
UI motion stays under 300ms. Every transition and animation takes its duration from here; literal durations are a lint error (loops excepted).
| Token | Value | Reduced | Use | Sample |
|---|---|---|---|---|
--fndn-duration-fast | 100ms | same | Hover and colour feedback. | |
--fndn-duration-base | 150ms | same | Small state changes: colour, opacity, focus rings. | |
--fndn-duration-press | 160ms | same | Press feedback (scale on :active). | |
--fndn-duration-tooltip | 125ms | same | Tooltips and other tiny popovers. | |
--fndn-duration-popup | 180ms | same | Selects, menus, popovers, hover cards. | |
--fndn-duration-reveal | 200ms | 0ms | Collapsible regions (the one sanctioned height-like animation). | |
--fndn-duration-move | 200ms | 0ms | On-screen travel: sliding thumbs, gliding highlights, chevron rotation. | |
--fndn-duration-slow | 250ms | same | Dialogs and larger surfaces. | |
--fndn-duration-enter | 300ms | same | One-shot entrances of content (fade-up). The upper bound for UI. | |
--fndn-duration-stagger | 40ms | 0ms | Delay between items of a group entrance (30–80ms budget). Cap the multiplier so a long list never waits. | |
--fndn-duration-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
| Token | Curve | Use | Sample |
|---|---|---|---|
--fndn-easing-out-strongcubic-bezier(0.23, 1, 0.32, 1) | Strong ease-out. Entrances, exits, press feedback, reveals, popups. | ||
--fndn-easing-in-out-strongcubic-bezier(0.77, 0, 0.175, 1) | Strong ease-in-out. Elements that are already on screen and travel or morph. | ||
--fndn-easing-movecubic-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. | ||
--fndn-easing-drawercubic-bezier(0.32, 0.72, 0, 1) | iOS-like sheet/drawer curve. | ||
--fndn-easing-linkcubic-bezier(0.16, 1, 0.3, 1) | Animated link underline. |
Motion values
| Token | Value | Reduced | Use |
|---|---|---|---|
--fndn-motion-press-scale | 0.97 | same | Scale of a pressed button, chip or icon button. Subtle: 0.95–0.98. |
--fndn-motion-press-scale-sm | 0.9 | same | 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. |
--fndn-motion-enter-shift | 8px | 0px | Rise of a one-shot entrance (fndn-fade-up). |
--fndn-motion-popup-scale | 0.96 | 1 | Closed-state scale of trigger-anchored popups. Never 0; nothing appears from nothing. |
--fndn-motion-sheet-shift | 100% | 0% | How far a closed sheet (drawer) sits past its edge. Reduced motion: none, the sheet fades in place. |
--fndn-motion-stagger-max | 5 | same | Largest stagger multiplier. Items past it arrive with the last staggered one. |
--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. |
--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. |
--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. |