Components / effect

Flashlight Reveal

v1.0.0 · premium

A circular flashlight that follows the pointer and reveals a second layer of content beneath the first.

Flashlight Reveal demo

Implementation

A circular flashlight that follows the pointer and reveals a second layer of content beneath the first.

Framework
React 19.3.1 with TypeScript
Motion
Native CSS and browser APIs. No GSAP required.
Available modes
build
Version
1.0.0 · published

Source code

Download source ZIP
export function CursorReveal({ children, revealed, radius = 150, className }: {
  /** The base layer. It is the accessible content. */
  children: ReactNode;

Quality evidence

Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .

Changelog

v1.0.0 · A circular flashlight that follows the pointer and reveals a second layer of content beneath the first.

Frequently asked questions

What should I put in the revealed layer?

Usually the same content as the base layer in a stronger style, so the two line up. The revealed layer is decorative and inert, so put the full content in the base layer.

What do touch visitors see?

Only the base layer. The reveal needs a mouse with hover support, so touch, pen and coarse pointers show the base content as normal.