Micro-interactions

Spotlight Shell

A card shell with 3D magnetic tilt, radial glow, and a shimmer sweep.

Install

bun add motion clsx tailwind-merge

Then copy 2 files into your project:

  • components/registry/spotlight-shell/spotlight-shell.tsx
  • lib/utils.ts

Props

PropTypeDefaultDescription
accentColorstring (hex)"#a855f7"Accent color for the glow and accent line.

What It Demonstrates

3D tilt / Flip
Rotate in 3D space (rotateX / rotateY) to add depth.
Perspective
How strong the 3D effect looks — a lower value exaggerates depth, like the viewer is closer.
Hover effect
Visual change when the cursor moves over an element.
Skeleton / Shimmer
A placeholder with a moving sheen shown while content loads.

Related Components

Appears In