This page is the main map for root options.
Use it to choose where to start, then jump to the detailed guides for each option group. For full type details, use the API reference too:
particles, interactivity, and background yourself@tsparticles/configspreset and then override only the fields you care aboutresponsive rules after your base config is stable{
"background": {
"color": "#0f172a"
},
"fpsLimit": 60,
"detectRetina": true,
"interactivity": {
"events": {
"onHover": {
"enable": true,
"mode": "repulse"
}
}
},
"particles": {
"links": {
"enable": true
},
"move": {
"enable": true
},
"number": {
"value": 80
}
}
}
| Property | Type | Example | Notes |
|---|---|---|---|
autoPlay |
boolean |
true / false |
Starts animation automatically |
background |
object |
{ color: "#111" } |
See IBackground |
backgroundMask |
object |
See IBackgroundMask | |
detectRetina |
boolean |
true / false |
Replaces retina_detect |
duration |
number / range |
60 / { min: 30, max: 90 } |
Effect duration in seconds |
fpsLimit |
number |
60 |
Default: 60; replaces fps_limit |
fullScreen |
object / boolean |
true / false |
See IFullScreen |
interactivity |
object |
See IInteractivity | |
manualParticles |
array |
See IManualParticle | |
motion |
object |
See IMotion | |
particles |
object |
See IParticlesOptions | |
pauseOnBlur |
boolean |
true / false |
Pauses when the tab loses focus |
pauseOnOutsideViewport |
boolean |
true / false |
Pauses when canvas is outside viewport |
preset |
string / array |
"links" / ["links", "confetti"] |
Loads official or custom presets |
responsive |
array |
See IResponsive | |
themes |
array |
See ITheme |
| Property | Type | Example | Notes |
|---|---|---|---|
absorbers |
object / array |
See IAbsorber | |
emitters |
object / array |
See IEmitter | |
polygonMask |
object |
See IPolygonMask |
emitters, absorbers, polygonMask) without loading their packages