Backgrounds

Mesh gradient

A domain-warped, slowly flowing iridescent gradient with glints that bends around the pointer.

Paste it into ChatGPT, Claude, Cursor or v0.
speed0.25
warp1.00
intensity0.85
grain0.06
palette

Usage

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

<MeshGradient speed={0.25} warp={1} colors={['#00e5ff', '#ff2bd6', '#ffb238', '#a8ff3e']} />

Props

PropTypeDefaultDescription
speednumber0.25Flow speed.
warpnumber1Swirl amount.
interactivenumber1Pointer influence.
intensitynumber0.85Brightness.
grainnumber0.06Built-in film grain.
colorsstring[]iridescent paletteFour hex colors.

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.