Frost
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardFrost(el) on the mounted element instead.
HTML
CSS
JavaScript
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-frostAbout this component
A folder of frosted glass with a dark media card standing in it, a ring of coloured light turning on the card like an eclipse: move your pointer over the folder and the frost clears in a circle under it, so you see the ring's glow sharp through the glass; the plus saves it, turning into a solid ink chip with a tick.
Triggers
- Mouse tracking
- Click
- State change
- Card
Techniques
- Mouse tracking
- CSS variables
- Filter
- Conic gradient
- Keyframes
Difficulty
Advanced
Accessibility
Keyboard and screen readers
The save control is a native <button> with aria-pressed and an aria-label ("Save to collection"); the folder drawing is aria-hidden.
Reduced motion
The transitions and loops stop and the card jumps straight to its final state.
Use it in anything you build, commercial and client work included. Licence