UNPKG

@tsparticles/engine

Version:

Easily create highly customizable particle, confetti and fireworks 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.

21 lines (20 loc) 965 B
import type { IAnimation, IRangedAnimation } from "../Interfaces/IAnimation.js"; import { AnimationMode } from "../../Enums/Modes/AnimationMode.js"; import { OptionLoader } from "../../Utils/OptionLoader.js"; import type { RangeValue } from "../../Types/RangeValue.js"; import type { RecursivePartial } from "../../Types/RecursivePartial.js"; import { StartValueType } from "../../Enums/Types/StartValueType.js"; export declare class AnimationOptions extends OptionLoader<IAnimation> implements IAnimation { count: RangeValue; decay: RangeValue; delay: RangeValue; enable: boolean; speed: RangeValue; sync: boolean; protected doLoad(data: RecursivePartial<IAnimation>): void; } export declare class RangedAnimationOptions extends AnimationOptions { mode: AnimationMode | keyof typeof AnimationMode; startValue: StartValueType | keyof typeof StartValueType; protected doLoad(data: RecursivePartial<IRangedAnimation>): void; }