FloatingParticles
Drifting, twinkling motes — thousands of real simulated particles floating in a shared heading with per-particle wander and variance, and a cursor that stirs the field with a gust that settles back into the drift
Props
Prop
Details
particleColorstringDefault:
#ffffffColor of the particles
particleColorstringDefault: #ffffffColor of the particles
shape"dot" | "square" | "glow"Default:
dotWhat each particle is drawn as — a crisp dot or square (softness still feathers them), or a soft glow puff
shape"dot" | "square" | "glow"Default: dotWhat each particle is drawn as — a crisp dot or square (softness still feathers them), or a soft glow puff
countnumberDefault:
1200Number of particles
countnumberDefault: 1200Number of particles
particleSizenumberDefault:
1.2Size of the particles (each also varies slightly for depth)
particleSizenumberDefault: 1.2Size of the particles (each also varies slightly for depth)
softnessnumberDefault:
0.1Edge softness of each particle — 0 is a crisp shape, 1 a soft glow puff
softnessnumberDefault: 0.1Edge softness of each particle — 0 is a crisp shape, 1 a soft glow puff
speednumberDefault:
0.25Speed of the shared drift
speednumberDefault: 0.25Speed of the shared drift
anglenumberDefault:
90Drift heading in degrees (0 = left, 90 = up, 180 = right, 270 = down — the classic default floats upward)
anglenumberDefault: 90Drift heading in degrees (0 = left, 90 = up, 180 = right, 270 = down — the classic default floats upward)
speedVariancenumberDefault:
0.3Per-particle speed variance around the shared drift (0 = everything moves in lockstep)
speedVariancenumberDefault: 0.3Per-particle speed variance around the shared drift (0 = everything moves in lockstep)
angleVariancenumberDefault:
30Per-particle heading variance in degrees (0 = one shared direction, 180 = every which way)
angleVariancenumberDefault: 30Per-particle heading variance in degrees (0 = one shared direction, 180 = every which way)
randomnessnumberDefault:
0.25Orbital wander — each particle circles lazily around its drift path instead of gliding straight
randomnessnumberDefault: 0.25Orbital wander — each particle circles lazily around its drift path instead of gliding straight
twinklenumberDefault:
0.5Intensity of the twinkle (0 = steady, 1 = full shimmer)
twinklenumberDefault: 0.5Intensity of the twinkle (0 = steady, 1 = full shimmer)
cursorStrengthnumberDefault:
0How strongly the cursor stirs the field — 0 (default) leaves the drift undisturbed
cursorStrengthnumberDefault: 0How strongly the cursor stirs the field — 0 (default) leaves the drift undisturbed