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| Name | Type | Default | Description |
|---|---|---|---|
particleCount | number | 200 | How many particles there are. |
particleSpread | number | 10 | How far the particles spread out from the centre. |
speed | number | 0.1 | The speed of the floating motion, twinkle and rotation. |
particleColors | string[] | ["#ffffff"] | The colours the particles are picked from. |
particleBaseSize | number | 100 | The base size of the particles. Nearer particles are drawn larger. |
sizeRandomness | number | 1 | How much particle sizes vary. 0 draws every particle at the base size. |
shape | "circle" | "square" | "ring" | "sparkle" | "circle" | The shape of each particle. |
glow | number | 0.5 | The soft glow around each particle. |
twinkle | number | 0.3 | How much the particles flicker, 0 to 1. |
depthOfField | number | 0 | Blurs the nearest particles into soft bokeh, like a camera lens. |
connections | boolean | false | Joins nearby particles with thin lines, like a constellation. |
connectionDistance | number | 110 | How 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. |
driftSpeed | number | 1 | How fast the particles drift. |
moveParticlesOnHover | boolean | true | Lets 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. |
particleHoverFactor | number | 1 | The strength of the hover effect. |
hoverRadius | number | 140 | The radius around the pointer that repel and attract reach, in pixels. |
clickBurst | boolean | true | A click sends a burst of light rippling through the particles. |
alphaParticles | boolean | false | Draws softer, slightly see-through particles. |
cameraDistance | number | 20 | The distance from the camera to the particles. Lower values feel closer and deeper. |
disableRotation | boolean | false | Stops the slow rotation of the whole field. |
variation | number | 0 | Picks a different particle layout. |
intro | boolean | true | Flies the particles in from the distance on mount. |
opacity | number | 1 | The opacity of the whole effect. |
lightMode | boolean | false | Draws the particles as ink for light backgrounds. |
paused | boolean | false | Freezes the animation. |
pixelRatio | number | None | The highest device pixel ratio drawn; the screen's by default, capped at 2. |
className | string | None | |
style | CSSProperties | None | Inline styles for the container. |