Guidelines

Motion

Motion is quiet: things fade and settle, they don't perform. 6 curves are defined, 2 of them run in the shared stylesheets.

Curves

Each curve is a custom property on :root, so CSS reads it as var(--ease-apple) and Tailwind as ease-(--ease-apple). Hover a row to run its curve.

Read from packages/design-system/styles/easings.css

  • --ease-apple, cubic-bezier(0.25, 0.1, 0.25, 1)
    --ease-applecubic-bezier(0.25, 0.1, 0.25, 1)

    Apple's literal modal-crossfade curve (browser default ease)

    • animation: pin-overlay-close var(--pin-close, 700ms) var(--ease-apple) forwardspackages/design-system/styles/animations.css
    • animation: pin-panel-close var(--pin-close, 700ms) var(--ease-apple) forwardspackages/design-system/styles/animations.css
  • --ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)
    --ease-out-expocubic-bezier(0.16, 1, 0.3, 1)

    Other Apple-style easings, kept for reference

    Not used in the shared stylesheets yet.

  • --ease-emphasized-decel, cubic-bezier(0.32, 0.72, 0, 1)
    --ease-emphasized-decelcubic-bezier(0.32, 0.72, 0, 1)

    Other Apple-style easings, kept for reference

    Not used in the shared stylesheets yet.

  • --ease-in-out-symmetric, cubic-bezier(0.42, 0, 0.58, 1)
    --ease-in-out-symmetriccubic-bezier(0.42, 0, 0.58, 1)

    Other Apple-style easings, kept for reference

    Not used in the shared stylesheets yet.

  • --ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1)
    --ease-out-quartcubic-bezier(0.25, 1, 0.5, 1)

    Other Apple-style easings, kept for reference

    • animation: slide-build-in 600ms var(--ease-out-quart) bothpackages/design-system/styles/slides/slides.css
    • transition: box-shadow 150ms var(--ease-out-quart)packages/design-system/styles/slides/slides.css
  • --ease-out-back, cubic-bezier(0.34, 1.56, 0.64, 1)
    --ease-out-backcubic-bezier(0.34, 1.56, 0.64, 1)

    Other Apple-style easings, kept for reference

    Not used in the shared stylesheets yet.

Rules

How the site moves, whatever the curve.
  • Fade and settle.

    Opacity and a short move into place, on a curve that slows as it lands.

  • Hover moves are small.

    An arrow nudges a step to the right, or up and right when the link leaves the site.

  • Respect reduced motion.

    With prefers-reduced-motion, a slide arrives built, the nav logo holds still, and the OS finishes every transition at once.