Home
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardHome(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-homeAbout this component
Four smart home tiles that are real toggles, each holding a small 3D object lit from the top left. Switch one on and the tile floods with its colour while the object comes alive: the lamp throws a cone of light, the fan blurs into a spinning disc, the shackle drops shut with a glint, the speaker pumps out rings.
Triggers
- State change
- Click
- Continuous
- Glow
- Card
- Icon
- 3D
Techniques
- SVG
- Radial gradient
- Gradient
- Conic gradient
- Filter
- CSS variables
- Keyframes
- clip-path
- CSS transition
- Pseudo elements
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
Each tile is a native checkbox inside its label, so Tab reaches it and Space toggles it; the word is the accessible name and the checked state is announced. The four sit in a fieldset with a visually hidden legend.
Reduced motion
Focus shows a 2px ring on the tile; all motion stops under reduced motion.
Use it in anything you build, commercial and client work included. Licence