19.9%
Breathe
0:00
Breathe in
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardBreathe(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-breatheAbout this component
A meditation card that is almost all orb: a lilac sphere with two translucent halos round it that swell at their own rates, and the count of the breath set large inside it. Press the orb and it fills for four counts, holds for seven and empties for eight, the glow rising with the inhale and a ring of light drifting out on the exhale, while the phase word changes under it and the session clock counts; press again to hold the breath, and the small key resets.
Triggers
- Card
- Glow
- Click
- Loop
- Ambient
- State change
Techniques
- requestAnimationFrame
- CSS variables
- Conic gradient
- Radial gradient
- Keyframes
- State machine
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
The orb is a native button labelled Start breathing or Pause with the count, with aria-pressed; the reset key is a labelled button; the phase word is a polite live region and the clock carries a Session label. Focus rings are drawn 6px outside the orb and 2px outside the reset key.
Reduced motion
The idle keyframe and the mark transitions are removed; the exercise itself still runs because its slow size change is the content.
Use it in anything you build, commercial and client work included. Licence
More cards
See allWorkspace
No command matches