Cursor Spotlight
A spotlight section that tracks the cursor and reveals content inside the highlight.
Spotlight
Cursor guided focus
Move your cursor to reveal the highlight and bring focus to key details.
- ●Real time tracking
- ●Soft reveal mask
- ●Premium presentation
- ●Smooth motion
Dependencies
- clsx
- tailwind-merge
- framer-motion
Files
- components/ui/cursor-spotlight.tsx
Installation
Using shadcn CLI
npx shadcn add cursor-spotlight --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-merge framer-motionRelated Effects Components
Animated Beam Connectors
Animated connector beams that link nodes with a flowing motion trail.
Animated Border Gradient
Animated conic gradient border wrapper with configurable radius and hover pause.
Animated Marquee Strip
An infinite scrolling strip with premium cards for logos, partners, or testimonials.
Confetti
Animated confetti effect component perfect for celebrations. Includes a ready-to-use ConfettiButton wrapper.
Confetti Burst
Triggered confetti celebration effect that bursts outward from the center.
Flip Card
3D card component that flips on hover or click to reveal content on the back. Supports both horizontal and vertical flip animations.