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 group of real buttons, one per product ("Add Orb to cart"), plus a cart button that empties the cart. The cart count and total are announced through a polite live region.
- Keyboard. Tab walks the product buttons and the cart button, Enter or Space adds a product or empties the cart. Focus rings are always visible. Nothing needs the mouse.
- Pointer and touch. Click a 3D card to add it, hover lifts and tilts it. Hit targets are at least 44px and the stage keeps vertical page scroll on touch.
- Reduced motion. With reduced motion the product appears in the cart at once. No arc, no trail, no bounce. The count still updates and is announced.