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. The grid is a list of real buttons with aria-pressed (pin a feature); the status line is a polite live region that announces when all six cards are in place. The 3D scene is a decorative aria-hidden canvas.
- Keyboard. Tab through the cards, Space or Enter pins one; the Topple again button replays the run. Clicking the floor shocks the tiles and is a pointer extra.
- Reduced motion. With prefers-reduced-motion the dominoes are already down, the cards are in place and no dust, camera ride or shake runs.
- Contrast. Cards use the colour tokens (AA in light, dark and every preset); the domino colours follow the active preset's primary.