Particles
Options inside particles control particle appearance and movement.
Most-used groups
particles.numberparticles.moveparticles.linksparticles.paletteparticles.paintparticles.shapeparticles.sizeparticles.opacity
See detailed pages:
particles.number
ts
particles: {
number: {
value: 70,
density: {
enable: true,
area: 800
}
}
}value: base particle count.density.enable: adapts count to the container size.
particles.move
ts
move: {
enable: true,
speed: 1.6,
direction: "none",
outModes: {
default: "out"
}
}speed: perceived movement speed.outModes.default: edge behavior (out,bounce, ...).
particles.links
ts
links: {
enable: true,
distance: 140,
opacity: 0.28,
color: "#7aa0ff"
}Enables links between particles, useful for "network" hero sections.
particles.palette
ts
palette: "sunset";- Imports colors and blend defaults from a registered palette id.
- Populates
paint.fillorpaint.strokeautomatically depending on the palette. - With multi-variant palettes,
paintis loaded as an array of variants. - Useful with presets and demos when you want to swap color mood quickly.
particles.shape, size, opacity
ts
shape: {
type: ["circle", "square"]
},
size: {
value: {
min: 1,
max: 5
}
},
opacity: {
value: 0.7
}shape.type: single type or list of types.size.value: recommended range for natural variation.opacity.value: average transparency.
Advanced groups to check next
particles.collisionsparticles.lifeparticles.orbitparticles.rollparticles.rotateparticles.tiltparticles.twinkleparticles.wobble
Detailed pages:
Particles BounceParticles PaintParticles DestroyParticles GroupParticles CollisionsParticles LifeParticles PaletteParticles OpacityParticles OrbitParticles RepulseParticles RollParticles RotateParticles ShadowParticles SizeParticles TiltParticles TwinkleParticles WobbleParticles ZIndexParticles MoveParticles NumberParticles LinksParticles Shape
Source pages: https://github.com/tsparticles/tsparticles/tree/main/markdown/Options/Particles
