reveal-hover-effect

Originally frommengto/skills
Installation
SKILL.md

Reveal Hover Effect

Core Contract

  1. Prepare two images with identical dimensions, composition, crop, and focal point.
  2. Keep the base image fully visible.
  3. Stack the reveal image directly above it.
  4. Apply a feathered radial mask-image to the reveal image.
  5. Track pointer coordinates in the component's local coordinate space.
  6. Ease the rendered position toward the raw pointer with requestAnimationFrame.
  7. Collapse the mask on pointer exit; never leave a stale spotlight behind.

Default to CSS masks instead of generating a canvas data URL every frame. The CSS version preserves the same look with less allocation and simpler cleanup.

Motion Defaults

Installs
63
GitHub Stars
325
First Seen
Jul 25, 2026
reveal-hover-effect — boraoztunc/skills