Flare

Lake Bledf/8 · 1/500

Golden hour · Slovenia

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-flare

About 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 all
MemberKiln & Co clubRowan HartNo. 0042 · Valid 11/27
FlexGet code

New message

To Mara Lind

Here are the frames from Friday. The second pass is much calmer, see what you think.

Saved 2 min ago
GenieGet code
Night runThu 21:40 · Riverside
8.4km
41:12time
4:54/km
GlowGet code
HangingGet code