Golden hour · Slovenia
Flare
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardFlare(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-flareAbout this component
A golden hour photo card where the pointer is the sun: move over the picture and the sun follows it, the sky brightens around it, and a lens flare runs from the sun back through the middle of the frame, its rings and hexagonal ghosts sliding along the line as the sun moves.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers5
- Hover
- Mouse tracking
- Glow
- Spotlight
- Card
Techniques5
- CSS variables
- Event position
- Radial gradient
- mix-blend-mode
- @property
Accessibility
Keyboard and screen readers
The photo is decorative (aria-hidden); the card is labelled with its title and caption. The flare follows a pointer only, so there is nothing to reach by keyboard.
Reduced motion
The sun stays where it is.
Use it in anything you build, commercial and client work included. Licence
More cards
See allHere are the frames from Friday. The second pass is much calmer, see what you think.