Skip to main content

Motion

Name the motion, not the keyframes

Each block below opts into one recipe with a single motion field. The compiler owns the timing, the reduced-motion fallback and the print state.

On arrival

Revenue is up 12%

This card fades and rises into place once, the first time it scrolls into view.

  1. Plan

    Agree on the outcome.

  2. Build

    Ship behind a flag.

  3. Measure

    Read the numbers.

  4. Roll out

    Open it to everyone.

Revenue
$120K
Customers
4,200
Retention
94%

On a state change

Billing period

Interactive when JavaScript is on.

  • Price per seat

    $12

  • Billed

    Monthly

On interaction

Overview

The selected-tab marker slides to the new tab, and the panel fades in.

Pricing

Arrow keys, Home and End move between tabs exactly as before.

Frequently asked

Under reduced motion the marker and the panel switch at once.
Does it work offline?

Yes. Every recipe is CSS inside the page, plus a few lines of runtime for state changes.

What happens with reduced motion?

Sections snap open and shut, and arrivals show in place.

Can a spec add its own animation?

No. A spec names a recipe; the compiler writes the CSS.

Publish this page?

The dialog scales in, and on close it fades out before focus returns to the button that opened it.