Weftv0.4.0
GitHubFigma
Blade AI
Foundations · Motion

Motion

Easing curves, durations and the core motion recipes components use. None of these exist as tokens in code yet; values are documented here from the design file.

Easing Tokens

#easing

Four easing curves. Entrances use ease out, exits use ease in, and ease in-out is the default for transitions.

EasingNeeds decision

No motion tokens exist in this file yet. Curves are documented by value. Hover, focus or press a demo to preview its curve.

Easing
Name
Token
Value
Used for
Try it
linear
UNDEFINED · needs decisionNot in code yet
linear
Sidebar collapse width, progress, spinners
in
UNDEFINED · needs decisionNot in code yet
cubic-bezier(0.4, 0, 1, 1)
Exits: elements leaving the screen
out
UNDEFINED · needs decisionNot in code yet
cubic-bezier(0, 0, 0.2, 1)
Entrances: elements arriving on screen
in-out
UNDEFINED · needs decisionNot in code yet
cubic-bezier(0.4, 0, 0.2, 1)
Default for transitions; sheet slide, hover colour

Duration Tokens

#duration

Eight durations in milliseconds. Keep UI feedback under 200ms and large surfaces under 500ms.

DurationNeeds decision

No motion tokens exist in this file yet. Bar width is 0.21px per ms.

Duration
Token
Value
Used for
motion.duration.75UNDEFINED · needs decisionNot in code yet
75ms
Icon swaps, press feedback
motion.duration.100UNDEFINED · needs decisionNot in code yet
100ms
Dropdown, select, tooltip and overlay enter/exit
motion.duration.150UNDEFINED · needs decisionNot in code yet
150ms
Default for transitions (hover, colour, focus ring)
motion.duration.200UNDEFINED · needs decisionNot in code yet
200ms
Sheet slide, sidebar collapse
motion.duration.300UNDEFINED · needs decisionNot in code yet
300ms
Accordion and collapsible height
motion.duration.500UNDEFINED · needs decisionNot in code yet
500ms
Drawer and full-screen surfaces
motion.duration.700UNDEFINED · needs decisionNot in code yet
700ms
Rare: onboarding and illustrative motion
motion.duration.1000UNDEFINED · needs decisionNot in code yet
1000ms
One spin rotation

Core Action Tokens

#core-actions

The motion recipes components actually use, built from the duration and easing values. Reuse these instead of inventing new timings.

Core actions

Eight recipes. Class names are Tailwind utilities.

Action
Components
Classes
Duration
Easing
Hover and press
Button, menu item, toggle
transition-colors · transition-all
150ms
in-out
Popover enter
Dropdown menu, select, tooltip
animate-in fade-in-0 zoom-in-95 slide-in-from-{side}-2 duration-100
100ms
ease
Popover exit
Dropdown menu, select, tooltip
animate-out fade-out-0 zoom-out-95 duration-100
100ms
ease
Overlay
Sheet and drawer backdrop
animate-in fade-in-0 · animate-out fade-out-0 duration-100
100ms
ease
Sheet slide
Sheet
transition duration-200 ease-in-out slide-in-from-{side}-10
200ms
in-out
Sidebar collapse
Sidebar
transition-[width] duration-200 ease-linear
200ms
linear
Spinner
Loader icon, button loading
animate-spin
1000ms · infinite
linear
Skeleton
Skeleton
animate-pulse
2000ms · infinite
cubic-bezier(0.4, 0, 0.6, 1)

Reduced motion

#reduced-motion

prefers-reduced-motion

When the user asks for reduced motion, remove movement but keep the state change. Use motion-reduce:animate-none and motion-reduce:transition-none on slide, zoom and spin animations. Fades and colour changes can stay.