An incredibly visual discovery mechanic. Built using CSS mask-image and Framer Motion's high-performance useMotionTemplate, this component overlays a pitch-black layer on top of a vibrant gradient layer, dynamically punching a perfect spotlight hole exactly where your cursor is hovering.
Live Preview
Installation
npx kinetic-ui-cli@latest add flashlight-revealUsage Guide
1. Import the Component
Import the component into your React or Next.js page:
import { FlashlightReveal } from "@/components/creative/flashlight-reveal";
2. Implementation Example
Render the component and customize its behavior by passing props:
import { FlashlightReveal } from "@/components/creative/flashlight-reveal";
export default function Example() {
return (
<div className="w-full flex items-center justify-center p-8">
<FlashlightReveal
text="example"
cursorSize{10}
/>
</div>
);
}