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 step carries aria-current="step", finished steps carry data-done. The live region announces each step.
- Keyboard. Tab reaches the steps, arrow keys move and select a step, Home and End jump to the ends, Enter or Space on Next advances. Focus rings are always visible.
- Pointer and touch. Hit targets are at least 44px. Click the parcel in the 3D scene to advance. Every action has a button equivalent.
- Reduced motion. With reduced motion the parcel jumps to the chosen station with its label, stamp and tape already applied. No belt scroll, no sparks, no shake.