FloatingParticles

Animated floating particles with twinkle effects

Props

PropTypeDefaultDescription
particleColorcolor#ffffffColor of the particles
shape"dot" | "square" | "glow"dotWhat each particle is drawn as — a crisp dot or square (softness still feathers them), or a soft glow puff
countrange1200Number of particles
particleSizerange1.2Size of the particles (each also varies slightly for depth)
softnessrange0.1Edge softness of each particle — 0 is a crisp shape, 1 a soft glow puff
speedrange0.25Speed of the shared drift
anglerange90Drift heading in degrees (0 = left, 90 = up, 180 = right, 270 = down — the classic default floats upward)
speedVariancerange0.3Per-particle speed variance around the shared drift (0 = everything moves in lockstep)
angleVariancerange30Per-particle heading variance in degrees (0 = one shared direction, 180 = every which way)
randomnessrange0.25Orbital wander — each particle circles lazily around its drift path instead of gliding straight
twinklerange0.5Intensity of the twinkle (0 = steady, 1 = full shimmer)
cursorStrengthrange0How strongly the cursor stirs the field — 0 (default) leaves the drift undisturbed

Usage

vue
<Shader>
  <FloatingParticles />
</Shader>