Backgrounds

Particle field

Thousands of iridescent motes drifting in a flow field — they part around the pointer, or swirl into it.

Paste it into ChatGPT, Claude, Cursor or v0.
mode
count2400
radius0.22
force1.0
size2.0

Usage

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

<ParticleField mode="repel" count={2400} />

Props

PropTypeDefaultDescription
mode'repel' | 'attract''repel'Part around or swirl into the pointer.
countnumber2400Particles (halved on low-end).
radiusnumber0.22Pointer influence radius.
forcenumber1Pointer strength.
sizenumber2Point size (px).
flownumber1Ambient drift.
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.