Installation
Usage
Custom Color
Props
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | - | Additional CSS classes for the container |
quantity | number | 100 | Number of particles to render |
staticity | number | 50 | How static the particles are (lower = more movement) |
ease | number | 50 | Easing factor for particle movement |
size | number | 0.4 | Base size of particles in pixels |
refresh | boolean | false | Trigger to regenerate particles |
color | string | "#ffffff" | Color of particles (hex format) |
vx | number | 0 | X-axis velocity for particle drift |
vy | number | 0 | Y-axis velocity for particle drift |
Particles automatically follow mouse movement and have magnetic attraction behavior. The component uses canvas for optimal performance.