Flow Field Background
Particles following vector fields — wind streams, magnetic poles, curl noise, and spirals.
Import
import { FlowFieldBackground } from "@igorao79/uivix";Playground
1x
800
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "wind" | "magnetic" | "curl" | "spiral" | "wind" | Flow field pattern |
| colors | string[] | ["#8b5cf6", ...] | Particle colors |
| speed | number | 1 | Animation speed |
| particleCount | number | 800 | Number of particles |
| trailLength | number | 0.92 | Trail fade (0-1, higher = longer) |
| opacity | number | 0.6 | Particle opacity |
| className | string | fixed inset-0 ... | CSS class |