UNPKG

@tsparticles/confetti

Version:

Easily create highly customizable particle animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.

27 lines (26 loc) 915 B
import { type ICoordinates, type IOptionLoader, type RecursivePartial, type ShapeData, type SingleOrMultiple } from "@tsparticles/engine"; import type { IConfettiOptions } from "./IConfettiOptions.js"; export declare class ConfettiOptions implements IConfettiOptions, IOptionLoader<IConfettiOptions> { angle: number; colors: SingleOrMultiple<string>; count: number; decay: number; disableForReducedMotion: boolean; drift: number; flat: boolean; gravity: number; position: ICoordinates; scalar: number; shapeOptions: ShapeData; shapes: SingleOrMultiple<string>; spread: number; startVelocity: number; ticks: number; zIndex: number; constructor(); get origin(): ICoordinates; set origin(value: ICoordinates); get particleCount(): number; set particleCount(value: number); load(data?: RecursivePartial<IConfettiOptions>): void; }