Backgrounds

Lens grid

A precise grid of lines and dots that bulges under the pointer like glass, splitting into color at the edge.

Paste it into ChatGPT, Claude, Cursor or v0.
cell36
strength0.40
radius0.28
aberration1.0

Usage

import { LensGrid } from '@vizzele/react/gl';

<LensGrid cell={36} strength={0.4} />

Props

PropTypeDefaultDescription
cellnumber36Cell size (CSS px).
strengthnumber0.35Bulge strength.
radiusnumber0.28Lens radius.
aberrationnumber1Color split inside the lens.
lineColorstring'#5a6788'Grid color.

Accessibility

  • The canvas is aria-hidden and never takes pointer events — content on top stays fully interactive.
  • Pauses when off-screen or in a background tab. Renders one still frame with reduced motion.
  • Weak devices get a lower resolution automatically; without WebGL2 a static gradient is shown.