Skip to content
PixiKit

Particle Field

A slowly turning cloud of particles in depth that twinkles, shifts with the pointer and ripples with light on a click.

pixikit.com/docs/effects/particle-field

Customize

Particle count200
Particle spread10.0
Speed0.10
Particle colors1 of 10
Particle base size100
Size randomness1.00
Shape
Glow0.50
Twinkle0.30
Depth of field0.00
Connections
Connection distance110px
Drift
Drift speed1.0
Move particles on hover
Hover effect
Particle hover factor1.0
Hover radius140px
Click burst
Alpha particles
Camera distance20
Disable rotation
Variation0
Intro
Opacity1.00
Light mode
Paused

Props

30
NameTypeDefaultDescription
particleCountnumber200How many particles there are.
particleSpreadnumber10How far the particles spread out from the centre.
speednumber0.1The speed of the floating motion, twinkle and rotation.
particleColorsstring[]["#ffffff"]The colours the particles are picked from.
particleBaseSizenumber100The base size of the particles. Nearer particles are drawn larger.
sizeRandomnessnumber1How much particle sizes vary. 0 draws every particle at the base size.
shape"circle" | "square" | "ring" | "sparkle""circle"The shape of each particle.
glownumber0.5The soft glow around each particle.
twinklenumber0.3How much the particles flicker, 0 to 1.
depthOfFieldnumber0Blurs the nearest particles into soft bokeh, like a camera lens.
connectionsbooleanfalseJoins nearby particles with thin lines, like a constellation.
connectionDistancenumber110How close particles need to be to connect, in pixels.
drift"none" | "up" | "down" | "forward""none"Sends the particles drifting up like embers, down like snow, or toward you like a starfield.
driftSpeednumber1How fast the particles drift.
moveParticlesOnHoverbooleantrueLets the pointer move the particles.
hoverEffect"parallax" | "repel" | "attract""parallax"`parallax` shifts the whole field away from the pointer; `repel` and `attract` push or pull nearby particles.
particleHoverFactornumber1The strength of the hover effect.
hoverRadiusnumber140The radius around the pointer that repel and attract reach, in pixels.
clickBurstbooleantrueA click sends a burst of light rippling through the particles.
alphaParticlesbooleanfalseDraws softer, slightly see-through particles.
cameraDistancenumber20The distance from the camera to the particles. Lower values feel closer and deeper.
disableRotationbooleanfalseStops the slow rotation of the whole field.
variationnumber0Picks a different particle layout.
introbooleantrueFlies the particles in from the distance on mount.
opacitynumber1The opacity of the whole effect.
lightModebooleanfalseDraws the particles as ink for light backgrounds.
pausedbooleanfalseFreezes the animation.
pixelRationumberNoneThe highest device pixel ratio drawn; the screen's by default, capped at 2.
classNamestringNone
styleCSSPropertiesNoneInline styles for the container.

More background effects in Pro

View all

Related