Brew

0:14

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-brew

About 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

More cards

See all
BridgeGet code
CabinGet code
CellGet code

Holding

ClimateGet code