Skip to content
KodeKarsa

Design systemFoundations

Motion

One ease-out curve for nearly everything. Duration follows how far and how important the change is.

Sourcesrc/styles/app.css

The ease-out curve

cubic-bezier(0.16, 1, 0.3, 1)

0 ms1400 ms

Durations

  • Press

    150 ms

    Buttons and tabs shrink when pressed

  • Popup

    180 ms

    Menus grow out of their trigger

  • Hover

    300 ms

    Button colors and link arrows

  • Reveal

    650 ms

    Sections as they scroll into view

Guidelines

Do

  • Animate transform and opacity only.
  • Grow popups out of their trigger with --transform-origin.

Don't

  • Animate width, height, top, or left.
  • Loop motion that carries no meaning.

Accessibility

  • With prefers-reduced-motion on, transitions stop and scenes rest on their final step.