Louver
22°
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardLouver(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-louverAbout this component
An air conditioner card: a louver of five fins across the top tilts open when the unit runs and breathes slow streaks of air down through the mode's light, one big target temperature sits over a fluted strip you drag to set it, and four icon keys on a curved rail (auto, cool, heat, dry) sink into the surface when pressed. The light takes the mode's colour: mint, ice blue, amber or lilac.
Triggers
- Card
- State change
- Click
- Glow
- 3D
- Ambient
Techniques
- CSS variables
- CSS transition
- Keyframes
- 3D transform
- Perspective
- Gradient
- Radial gradient
- Event position
Difficulty
Advanced
Accessibility
Keyboard and screen readers
The card is a section labelled Air conditioner. The modes are a radiogroup of four native buttons with role=radio and aria-checked; the power key is a button labelled Power with aria-pressed; the strip is a role=slider labelled Target temperature with aria-valuemin 16, aria-valuemax 30, aria-valuenow and an aria-valuetext in degrees, moved by the arrow keys, Home and End as well as by dragging. The reading is a polite live region. The fins, glow and air are aria-hidden.
Reduced motion
Every control has a visible focus ring, and under prefers-reduced-motion every change is a cut and the air stands still.
Use it in anything you build, commercial and client work included. Licence