Brew
0:14
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardBrew(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/card-brewAbout this component
A coffee machine card: a double-wall glass cup under a chrome spout on a black housing. Press the orange key in the housing and a stream pours, the cup fills with coffee and a crema settles on top, steam curls rise and the key's ring fills with the brew; press the square to stop the pour, and when the cup is full it lifts off the tray and the key offers another.
Triggers
- Card
- State change
- Click
- Loop
- Glow
Techniques
- CSS variables
- requestAnimationFrame
- Conic gradient
- Keyframes
- clip-path
- CSS transition
- Gradient
- Filter
Difficulty
Advanced
Accessibility
Keyboard and screen readers
A section labelled Coffee machine. The key is a native button whose label follows the state: Brew, Stop, Resume and Brew another, with a focus ring in the ink colour; the timer is written as text and a visually hidden polite live region announces Brewing, Stopped and Coffee ready. The housing, spout, stream, cup, steam and tray are aria-hidden.
Reduced motion
The key glow, stream and steam do not animate and a press fills the cup as a cut.
Use it in anything you build, commercial and client work included. Licence