Back to Components
Backgrounds

Animated Spotlight

Cursor spotlight overlay with spring follow and blur control.

PropsUsage ExampleVariations

Cursor Spotlight

Move your cursor to reveal a soft glow that follows your movement.

White Spotlight

A neutral white glow for a cleaner, minimal aesthetic.

Dependencies

  • clsx
  • tailwind-merge
  • framer-motion

Files

  • components/ui/animated-spotlight.tsx

Installation

Using shadcn CLI

npx shadcn add animated-spotlight --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge framer-motion

Related Backgrounds Components