Spotlight Card

Spotlight Card

Components

A card container that reveals a dynamic, cursor-following radial gradient glow on mouse movement.

Cursor-Following Spotlight Card

A flagship creative component popularized by modern design systems. Tracks cursor coordinates relative to the bounding box to render an elegant illumination cone without layout reflows.

⚡

Real-Time Telemetry

Hover anywhere across this surface to observe the cursor-following radial spotlight highlight.

Props Reference

PropTypeDefaultDescription
titlestring"Intelligent Autopilot"Primary card headline
descriptionstring""Descriptive body copy
badgestring"Feature Spotlight"Category chip label
spotlightColorstring"rgba(99, 102, 241, 0.2)"CSS radial color string for the illumination beam

Performance Engineering

  • GPU Acceleration: Uses CSS radial gradients driven by pointer coordinates without touching the DOM tree layout or causing browser re-paints.
  • Motion Template: In the Animated variant, Framer Motion’s useMotionValue and useMotionTemplate stream coordinates directly to the compositor thread for a solid 60/120 FPS experience.
  • Pointer Fallback: On touch devices where hover is absent, the spotlight smoothly defaults to a soft static gradient overlay.