Mist
Dana Kole, 12 days
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardMist(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-mistAbout this component
One calm pane of frosted colour glass: a name on two lines, one light figure at the foot and a tall oval portrait whose edge melts into the frost. Two soft fields of light drift inside the glass and a highlight follows the pointer. Press the portrait and the next person arrives: the picture dissolves through blur, the name and the figure roll, and the whole pane eases to a glass tinted from that portrait.
Triggers
- Card
- Click
- State change
- Ambient
- Glow
- Gradient
- Mouse tracking
Techniques
- @property
- CSS variables
- CSS transition
- Radial gradient
- Gradient
- Filter
- Keyframes
- Pseudo elements
- Event position
- SVG filter
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
A section labelled Profile. The portrait is a native button named for the person it will show next (Show Ana Ruiz); the arrow keys on it step forward and back through the three people, and a polite live region announces the name and figure after each change. The visible name and figure, the light fields and the frost are aria-hidden so nothing is read twice. Focus draws a 2px white ring round the oval.
Reduced motion
The light fields stand still and every change is a cut.
Use it in anything you build, commercial and client work included. Licence