← Back to backgrounds
Backgroundprototypev0.1.0

Mouse Reactive Gradient

A surface with a soft radial gradient glow that follows the pointer, Apple-subtle spotlight style. Pointer position drives CSS custom properties directly (rAF-throttled), so it repaints without React re-renders or layout thrashing. Ships with a static fallback for touch and reduced-motion, and an opt-in subtle tilt.

Demo

Move your cursor

The glow and tilt follow the pointer inside this card. Touch devices and reduced-motion get a static fallback.

Install

npx shadcn add https://motion.thesafari.cz/r/mouse-reactive-gradient.json

Requires the @safari registry namespace configured in components.json, or use the raw URL above directly with the shadcn CLI.