Liquify Lens

A glass lens that refracts the backdrop with liquid distortion and caustics.

Customize

ADVERT

Overview

Liquify Lens adds a dynamic glass lens that follows your cursor and refracts whatever sits beneath it. The lens adds depth with subtle chromatic edges, caustic highlights, and liquid distortion without overwhelming the layout. Use it for hero banners, feature callouts, or interactive showcases.

Props

Use the props below to customise the liquify lens in your own React application.

NameTypeRequiredDefaultDescription
backgroundImageUrlstringNo"/images/nebula_rift.webp"Background image URL for the base layer.
lensSizenumberNo280Diameter of the lens in pixels.
classNamestringNoundefinedOptional class name for layout control.
mouseRefReact.MutableRefObject<{ x: number; y: number }>NoundefinedOptional pointer ref for external cursor tracking, values in the range [-1, 1].
strengthnumberNo0.75Strength of the distortion effect (0 to 1).
minHeightnumber | stringNo520Minimum height for the component container. Accepts a number (pixels) or any valid CSS height string.

Related React components

More components from the same category or sharing similar tags.