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. Each service is a real button with role="switch" and aria-checked, the stress test is a toggle button with aria-pressed. The stats are summarised in a polite live region (load and services online).
- Keyboard. Tab walks the five controls, Space or Enter flips a service or the stress test. Focus rings are always visible. The 3D levers are an extra pointer path, never the only one.
- Pointer and touch. Click a metal lever or the red button on the panel, or use the buttons. Hit targets are at least 44px and vertical page scroll still works on the stage.
- Reduced motion. With reduced motion the needles jump to their value, no jitter, sparks, beacon sweep or camera shake. The numbers and switch states are unchanged.