Particles
A swarm of simulated particles that settles into the shape, filling it evenly — flat, SVG or true 3D volumes — scattering from the cursor (or chasing it), tumbling when the shape moves, and always drifting back home
Props
Prop
Details
originstringDefault:
centerReference edge the center position is measured from (center default). Lets you pin the shape relative to a corner or the canvas centre.
originstringDefault: centerReference edge the center position is measured from (center default). Lets you pin the shape relative to a corner or the canvas centre.
center{x: number, y: number}Default:
{"x":0.5,"y":0.5}Center position of the shape
center{x: number, y: number}Default: {"x":0.5,"y":0.5}Center position of the shape
scalenumberDefault:
1Scale of the shape (1 = default size)
scalenumberDefault: 1Scale of the shape (1 = default size)
rotationnumberDefault:
0Rotation of the shape in degrees
rotationnumberDefault: 0Rotation of the shape in degrees
colorAstringDefault:
#8ec5ffColor of particles at rest
colorAstringDefault: #8ec5ffColor of particles at rest
colorBstringDefault:
#ff7ad9Color particles shift toward when agitated — scattering from the cursor or catching up to a moving shape
colorBstringDefault: #ff7ad9Color particles shift toward when agitated — scattering from the cursor or catching up to a moving shape
countnumberDefault:
4000Number of simulated particles
countnumberDefault: 4000Number of simulated particles
sizenumberDefault:
1.5Base particle size (each particle also varies slightly, and grows as it drifts toward the viewer)
sizenumberDefault: 1.5Base particle size (each particle also varies slightly, and grows as it drifts toward the viewer)
spreadnumberDefault:
1The pressure pushing particles apart — how strongly they insist on even spacing inside the shape
spreadnumberDefault: 1The pressure pushing particles apart — how strongly they insist on even spacing inside the shape
agitationnumberDefault:
0.12Idle thermal motion of the swarm — 0 freezes it crystal-still once settled
agitationnumberDefault: 0.12Idle thermal motion of the swarm — 0 freezes it crystal-still once settled
dampingnumberDefault:
0.4How quickly disturbed particles calm back down and settle into place
dampingnumberDefault: 0.4How quickly disturbed particles calm back down and settle into place
gravitynumberDefault:
0Downward pull on the swarm — negative floats the particles upward
gravitynumberDefault: 0Downward pull on the swarm — negative floats the particles upward
mouseInfluencenumberDefault:
2Strength of the cursor field. Positive scatters particles away; negative pulls the swarm toward the cursor
mouseInfluencenumberDefault: 2Strength of the cursor field. Positive scatters particles away; negative pulls the swarm toward the cursor
mouseRadiusnumberDefault:
0.2Reach of the cursor field, in shape-local units
mouseRadiusnumberDefault: 0.2Reach of the cursor field, in shape-local units
exposurenumberDefault:
1Brightness of the additive particle glow
exposurenumberDefault: 1Brightness of the additive particle glow
softnessnumberDefault:
0.1Edge softness of each particle — 0 is a crisp disc, 1 a soft glow puff
softnessnumberDefault: 0.1Edge softness of each particle — 0 is a crisp disc, 1 a soft glow puff
depthnumberDefault:
0.18Thickness of the particle volume behind flat shapes (3D shapes use their own true depth)
depthnumberDefault: 0.18Thickness of the particle volume behind flat shapes (3D shapes use their own true depth)
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default:
oklabColor space for the rest→excited color ramp
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default: oklabColor space for the rest→excited color ramp
shapeShapeConfigDefault:
circleSDFShape to render — choose from 11 built-in analytical shapes or supply a custom SDF. See the Shape Effects guide for all available shapes and their options.
shapeShapeConfigDefault: circleSDFShape to render — choose from 11 built-in analytical shapes or supply a custom SDF. See the Shape Effects guide for all available shapes and their options.
shapeSdfUrlstringDefault:
""URL to a pre-generated SDF `.bin` file — when non-empty, activates SVG mode and triggers a shader recompile. See the Shape Effects guide for how to generate an SDF from an SVG.
shapeSdfUrlstringDefault: ""URL to a pre-generated SDF `.bin` file — when non-empty, activates SVG mode and triggers a shader recompile. See the Shape Effects guide for how to generate an SDF from an SVG.