NexoreUI
2.0
InstallationComponentsIconsTemplatesNewGeneratorBetaNexore MakePricing
Create Project
GitHub
NexoreUI
2.0
Navigation
InstallationComponentsIconsTemplatesGeneratorBetaNexore MakeCreate Project
InstallationComponents OverviewIcons
Components (72)
ButtonAction ButtonsInputSpecialized InputsForm ControlsCheckboxSelectSwitchSliderRatingFile Upload
CardAccordionTabsTableStepperScroll AreaNavigationDockData DisplayChartsCommerceMedia & Audio
Dialog (Modal)Overlays & DrawersAlertBadgeAvatarTooltipProgressSkeletonLoadersToasterSocial & ChatTheme Toggle
Aurora Border CardAurora Search PillAI Prompt InputCommand PaletteCode Block
Physics Showcase3D Product CardsLive 3D ObjectSoundPulseSilkUnveilNode Flow Graph
NexoreUI v2.0Studio
ComponentsGlass Lens

Glass Lens

Refractive glass lens with chromatic dispersion, surface normals, and follower lag.

PreviousShaders Playground
NextFluted Glass
ResourcesFull TemplatesProProject StudioSource on GitHub

Glass Lens

Liquid refractive glass lens that tracks pointer coordinates with inertial follower droplets, dynamic chromatic dispersion, and directional specular highlights.

Interactive Stage

Drag pointer across stage
Controls
Size0.30
Bevel Thickness1.30
Chromatic Dispersion0.30
Magnification1.12
Frost Blur0.35

Installation & Usage

component.tsx
1import { GlassLens } from "nexoreui";
2
3export function HeroGlassDemo() {
4 return (
5 <div className="relative h-[500px] w-full overflow-hidden rounded-2xl">
6 <GlassLens
7 size={0.32}
8 thick={1.4}
9 disp={0.3}
10 blur={0.25}
11 mag={1.15}
12 rim={0.6}
13 spec={0.8}
14 tint="#9fd8ff"
15 className="h-full w-full"
16 />
17 </div>
18 );
19}

API Reference

API Reference (Props)

PropTypeDefaultDescription
sizenumber0.3Base radius of the refractive lens.
thicknumber1.3Bevel thickness multiplier determining refraction curve.
dispnumber0.3Chromatic aberration dispersion factor separating R, G, B channels.
blurnumber0.35Frosting blur kernel width applied across refracted texture.
magnumber1.12Lens magnification scale factor.
smonumber0.35Smooth minimum distance blend threshold for secondary droplets.
rimnumber0.55Fresnel rim light intensity along the droplet periphery.
specnumber0.7Specular gloss highlight intensity from virtual directional light.
lagnumber0.12Inertial follower damping factor for trailing droplets.
tinnumber0.06Tint color mix ratio.
tintstring"#9fd8ff"Hex tint tone blended with refracted color.
backgroundHTMLCanvasElement | HTMLImageElement | stringproceduralCustom background image URL or canvas source.
pausedbooleanfalsePause animation loop manually.