Motion
The curves, durations and keyframes things move with, from animations.css. In motion code, EASE and DURATION in @repo/ui-web/lib/motion hold the same values; the Motion guideline shows them moving.
Easing
Five curves, and nothing else is written by hand.
--ease-smoothDecelerates hard and settles: anything arriving or moving. The default.
--ease-standardAirbnb's: a box changing size in place, a column, a panel opening
--ease-exitAccelerates away: a surface leaving
--ease-drawervaul's sheet curve: a drawer riding on a drag
--ease-overshootPasses its mark and comes back: a pop, a count, a badge
Duration
Named by job, after Stripe Link's sheets. Tailwind has no duration namespace, so each is a utility and read off its class.
.duration-hoverThe pointer over something
.duration-pressA press
.duration-moveSomething travelling or changing in place
.duration-swapContent replacing content
.duration-enterA surface arriving
.duration-exitA surface leaving
.duration-resizeThe layout changing size
--default-transition-durationTailwind's transition-* utilities, with no duration named
Keyframes
Every @keyframes in animations.css and slides.css, for the animate-* utilities, the dialogs and the decks.
- marquee
- marquee-vertical
- scroll
- overlay-enter
- overlay-exit
- screen-enter
- screen-exit
- dialog-enter
- dialog-exit
- expand
- tab-icon-pop
- bg-pulse
- item-form-shimmer
- favorite-heart-pop
- favorite-heart-burst
- server-error-shake
- site-header-scrub
- slide-in-from-right
- slide-in-from-left
- slide-out-to-left
- slide-out-to-right
- slide-fade-in
- slide-fade-out
- slide-build-in