Frost

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-frost

About 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

More cards

See all
MarqueeGet code
PocketGet code
StampGet code
StashGet code