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. An ordered list of step buttons; the current one carries aria-current="step" and each step exposes its done, current or upcoming state. The live region announces the status.
- Keyboard. Tab to the list, arrow keys move between steps, Enter or Space sends the truck to that step. The ring uses the --ring token.
- Reduced motion. With prefers-reduced-motion the truck jumps straight to the chosen stop with no driving, confetti or camera moves.
- No WebGL. Without WebGL the stage falls back to a glow and the stepper still works and announces progress.