Flow field
ProParticles that trace a slowly changing current.
When to use
- A full-bleed background for a short hero.
- A generative section where the motion is the illustration.
When not to use
- Next to body copy. The trails keep changing the background of the words.
- A diagram that has to point at something specific.
Usage
- Copy the prompt and set the particle count, field scale, and trail fade.
- Draw on a canvas sized to the section, not the window.
- Fade the previous frame instead of clearing it, and pause the loop off screen.
example.tsx
1import { FlowField } from "@/effects/flow-field";2 3export function Preview() {4 return (5 <div className="h-64">6 <FlowField />7 </div>8 );9}