Rama annaswamy

Card Spotlight

Cards

About

Card whose radial-gradient spotlight tracks the cursor as it moves inside, fading in on hover and parking itself off-canvas when the pointer leaves, with configurable gradient size, color, and opacity.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Card Spotlight to your project and fits it to your theme.

Code

How Card Spotlight is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { CardSpotlight } from "@/components/ui/fancy-card-spotlight"

export default function CardSpotlightDemo() {
	return (
		<CardSpotlight className="h-64 w-80" gradientColor="#262626">
			<div className="relative z-20 p-6">
				<h3 className="text-foreground text-lg font-bold">Card Spotlight</h3>
				<p className="text-muted-foreground mt-2 text-sm">
					Mouse-following radial gradient effect.
				</p>
			</div>
		</CardSpotlight>
	);
}

More by Rama annaswamy

View all
  • Displacement Text

    Displacement Text

  • Fluid Cursor

    Fluid Cursor

  • Flickering Grid

    Flickering Grid

  • Matrix Rain

    Matrix Rain

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.4K
  • Stats cards with links

    Stats cards with links

    46
  • Statistics Card 7

    Statistics Card 7

    342
  • Statistics Card 2

    Statistics Card 2

    322
  • Card Studio

    Card Studio

    37
  • Card

    Card

    65
  • Admin Dashboard Cards

    Admin Dashboard Cards

    44
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    779