interface GlobalOptions {
    disableForReducedMotion?: boolean;
    resize?: boolean;
    useWorker?: boolean;
}

Properties

disableForReducedMotion?: boolean

Disables confetti entirely for users that prefer reduced motion. When set to true, use of this confetti instance will always respect a user's request for reduced motion and disable confetti for them.

resize?: boolean

Whether to allow setting the canvas image size, as well as keep it correctly sized if the window changes size

Default

false
useWorker?: boolean

Whether to use an asynchronous web worker to render the confetti animation, whenever possible

Default

false

Generated using TypeDoc