Inversion Lens Hover
- group .........
- Cursor and hover effects
- recording .....
- https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/inversion-lens-hover.mp4
- source ........
- https://ui.aryank.space/components/inversion-lens-hover
- markdown ......
- /lab/inversion-lens-hover.md
- human .........
- /lab/inversion-lens-hover
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A WebGL image where a soft circular lens tracks the cursor and inverts a grayscale version of the image inside it, its edge broken up by 8-octave turbulence scrolling over time so the boundary churns like a living blot; the lens eases open on enter and closes when the pointer leaves or the element scrolls out of view.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* Turbulent lens edge
The mask is a distance step whose threshold is perturbed by 8-octave time-scrolling turbulence, so the lens boundary is never a clean circle but a churning organic edge.
* Eased open and close
Cursor position and lens radius both lerp toward their targets; leaving the element or scrolling it out of view (via IntersectionObserver) drives the radius back to zero so the lens closes smoothly.