Vending-Machine Hero

Motion Components · Vol. 2

Component

Vending-Machine Hero

A real-time three.js vending machine. Pick a feature from the list or tap a product in the glass: the coil spins, the bag drops with real gravity, bounces into the tray and waits for you to collect it.

Variants

Sizes and states, all built from the same markup.

Small card
Default
Disabled

Usage

Paste the markup, include assets/css/tokens.css and assets/css/tailwind.css, then run the script from this page.

Accessibility