tsParticles - v4.0.0-beta.12
    Preparing search index...

    Options

    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:

    • I want full manual control: define particles, interactivity, and background yourself
    • I want a quick object to inspect and edit: start from @tsparticles/configs
    • I want a ready effect first: use a preset and then override only the fields you care about
    • I need responsive behavior: add responsive 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
    • Enabling plugin options (emitters, absorbers, polygonMask) without loading their packages
    • Setting very high particle counts before validating performance
    • Mutating runtime options without a container refresh
    • Migrating old configs without converting snake_case keys