Kinetic UI
Back to Introduction
Cards

Spotlight Card

A card component that reveals a radial lighting gradient underneath as the cursor moves over it.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add spotlight-card

The SpotlightCard creates a beautiful dynamic lighting effect. Using a hidden radial gradient that perfectly tracks the mouse position, the lighting effect is only revealed when hovering over the card. Now equipped with 4 unique spotlight variants, including animated pulsing.

Live Preview

Spotlight Card

Dynamic Lighting

Move your cursor over this card to reveal the underlying background lighting effect.

variant="soft"

Soft Glow:A wide, subtle radial gradient that smoothly tracks the cursor.

Usage Guide

1. Import the Component

Import the component into your React or Next.js page:

import { SpotlightCard } from "@/components/creative/spotlight-card";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { SpotlightCard } from "@/components/creative/spotlight-card";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <SpotlightCard
        spotlightColor="example"
        color="example"
        scale{10}
      >
        <div>Content goes here</div>
      </SpotlightCard>
    </div>
  );
}
Performance Notes
  • Uses CSS hardware acceleration via GPU transform-binds.
  • Damped interpolation minimizes paint-redraw flashes.
  • Tree-shakable import: only compiles elements requested.
Accessibility Notes
  • Full keyboard focus-ring navigation support (`Tab`/`Shift+Tab`).
  • ARIA roles mapped correctly for assistive screen readers.
  • Respects `prefers-reduced-motion` system toggles.