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 real tablist: each callout is role=tab with aria-selected and aria-controls, the panel is role=tabpanel labelled by its tab, and Explode is a toggle button with aria-pressed. The 3D diagram and leader lines are decorative and aria-hidden.
- Keyboard. Tab to the list (one tab stop), Left/Right/Home/End move and select, the panel updates at once. Explode and Rescan are plain buttons. Clicking a part in the scene is a pointer extra.
- Reduced motion. With prefers-reduced-motion the product is already built, the camera cuts to the part, the leader line is fully drawn and Explode jumps to its end state.
- Contrast. The card and the diagram labels use the colour tokens (AA in light, dark and every preset); the blueprint and callouts take the active preset colour.