balloons-js
Version:
Animated balloons effect for your website
30 lines (29 loc) • 626 B
TypeScript
interface SprayEffectOptions {
origin?: {
x: number;
y: number;
};
particleCount?: number;
duration?: number;
emojis?: string[];
container?: HTMLElement;
position?: {
x: number;
y: number;
};
}
export declare class SprayEffect {
private canvas;
private ctx;
private particles;
private spring;
constructor(options?: SprayEffectOptions);
private calculateCanvasSize;
private setupCanvas;
private createParticles;
emit(): void;
private update;
private draw;
private animate;
}
export {};