Components / effect
Spotlight Card
A card whose surface and border light up around the pointer, like a soft spotlight.

Implementation
A card whose surface and border light up around the pointer, like a soft spotlight.
- Framework
- React 19.3.1 with TypeScript
- Motion
- Native CSS and browser APIs. No GSAP required.
- Available modes
- build
- Version
- 1.0.0 · published
Source code
Loading source…
Quality evidence
Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .
Changelog
v1.0.0 · A card whose surface and border light up around the pointer, like a soft spotlight.
Frequently asked questions
What is the light made of?
Two radial gradients, one across the surface and one cut down to the one pixel border, both centered on the pointer.
Does the card change on touch screens?
No. Only a mouse moves the light. Touch and pen leave the card still, and the content stays fully readable.