Skip to main content

Configuration

Global Settings#

The Settings object (exported to party.settings) holds various values determining the global behaviour of the library. These are not read-only, so you can mess around with them to your heart's content.

NameDefaultDescription
debugfalseWhether the debugging mode should be enabled.
gravity800The amount of gravity to apply to particles in the scene, in pixels. Note that this value is positive by default, since the y-axis increases downwards in a DOM.
zIndex99999The z-index to place the library's DOM containers at.
respectReducedMotiontrueWhether to respect the (prefers-reduced-motion) media query. Note that this setting is only read once during initialization - any configuration will have to be done beforehand.