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. A WAI-ARIA tabs pattern: tablist, tab with aria-selected and aria-controls, and one tabpanel labelled by the selected tab. Play/pause is a toggle button with aria-pressed.
- Keyboard. Arrow keys, Home and End move between steps with a roving tabindex; selecting a step also stops auto-advance. Tab reaches the panel and the play button. Focus uses the --ring token.
- Reduced motion. With prefers-reduced-motion the belt stands still, there is no auto-advance, camera flight or sparks, and the camera simply cuts to the chosen station.
- Contrast. UI colours come from the tokens (AA in light, dark and every preset). The WebGL factory is decorative and aria-hidden; every step is also written out in the panel.