Variants
Sizes and states, all built from the same markup.
Usage
Paste the markup, include assets/css/tokens.css and assets/css/tailwind.css, then run the script from this page.
Accessibility
- Role and state. One real button with aria-pressed; its label becomes Abort while counting and Reset pad after liftoff, and a role="status" line announces each state.
- Keyboard. Tab to the button, Space or Enter to start, abort or reset. The focus ring uses the --ring token. The clock is decorative (aria-hidden); the status line carries the meaning.
- Reduced motion. With prefers-reduced-motion the countdown still runs and the rocket jumps to its flown position: no shake, no smoke plume, no warp streaks.
- Contrast. The card uses the colour tokens (AA in light, dark and every preset); the launch pad is a decorative aria-hidden canvas.