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-smooth

    Decelerates hard and settles: anything arriving or moving. The default.

  • --ease-standard

    Airbnb's: a box changing size in place, a column, a panel opening

  • --ease-exit

    Accelerates away: a surface leaving

  • --ease-drawer

    vaul's sheet curve: a drawer riding on a drag

  • --ease-overshoot

    Passes 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-hover

    The pointer over something

  • .duration-press

    A press

  • .duration-move

    Something travelling or changing in place

  • .duration-swap

    Content replacing content

  • .duration-enter

    A surface arriving

  • .duration-exit

    A surface leaving

  • .duration-resize

    The layout changing size

  • --default-transition-duration

    Tailwind'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