Report a problem or share feedback← Catalog
Magic Card
curatedfreemagicui/magic-card
A spotlight effect that follows your mouse cursor and highlights borders on hover.
$
npx shadcn@latest add @magicui/magic-cardnpm deps: motion, next-themes
Our notes
Spotlight-follows-cursor card (bg-background surface). Gradient defaults are purple/pink hex and it imports next-themes — pass gradientFrom/To from the theme; drop next-themes if you don't use it.- Source
- Magic UI
- Kind
- component
- Categories
- card
- Use as
- wrapper — wraps your existing element
- Applies to
- card
- Motion
- on cursor, hover · subtle · motion · medium cost · ignores reduced motion
- Tags
- motion
- Licence
- MIT (magicuidesign/magicui). Magic UI Pro templates are a separate paid product — not catalogued.
- Live demo
- magicui.design
- Docs
- magicui.design
Similar
Compare all 4 →- Glowing Effectaceternity/glowing-effectCursor-style border glow that follows the pointer. Works on any card.
- Card Spotlightaceternity/card-spotlightA card component with a spotlight effect revealing a radial gradient background
- SVG Mask Effectaceternity/svg-mask-effectA mask reveal effect, hover the cursor over a container to reveal what's underneath.