Code · Claude Sonnet 5.5
A single, original, premium
A single, original, premium, fully functional and animated UI component on its own page, in one self-contained HTML file (no libraries): a "Vending machine coil" add-to-cart on a product card for a snack / coffee shop (product name 'Dark Roast · 250 g', price €12.90, short description, a quantity, an 'Add to cart' button), with a cart icon and count in a small header above. The component: the product image area of the card is a realistic vending machine slot seen through slightly reflective glass with a faint reflection streak: a chrome spiral coil holding 4 identical small coffee bags (made with CSS/canvas, kraft paper with a label), a price tag strip under the slot ('A3 · €12.90'), and below the card's image a dark delivery tray with a flap. Interaction: pressing 'Add to cart' (button presses down like a chunky vending keypad key) turns the coil one full rotation with a motor whir feel: the front bag inches forward, tips over the edge, falls with gravity and a slight spin, disappears behind the tray flap which swings, then a small copy of the bag flies in an arc from the tray to the cart icon in the header, the cart count bumps with a spring. The coil has one less bag. When empty the slot shows 'Sold out', the button disables, and a 'Restock' text button refills the coil with bags sliding in from the back. Hovering the glass makes the reflection drift with the cursor. Quantity +/- choose how many turns. Semantics: a real button, aria-live polite 'Added to cart, 3 items', the cart count with aria-label. CONFIG object at the top (product, stock, price, sound on/off). CustomEvents 'addtocart' and 'soldout'. prefers-reduced-motion: no fall, count updates instantly. Responsive from 375px to desktop. Clean light page, photoreal chrome and glass, small mono caption.
- Model
- Claude Sonnet 5.5
- Made by
- Sourasith Phomhome
- Shared
- Likes
- 0
Use its prompt, turn it into a video or a 3D model, or find more like it in Fil. Fil is invite-only for now: without an invitation, Open in Fil shows the waitlist.










