tsparticles
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.
33 lines (32 loc) • 1.1 kB
TypeScript
import { IAttract } from "./IAttract";
import { MoveDirection, MoveDirectionAlt, OutMode, OutModeAlt } from "../../../../Enums";
import { ITrail } from "./ITrail";
import { IPath } from "./Path/iPath";
import { IMoveAngle } from "./IMoveAngle";
import { IMoveGravity } from "./IMoveGravity";
import { IOutModes } from "./IOutModes";
import { RangeValue } from "../../../../Types";
export interface IMove {
bounce: boolean;
collisions: boolean;
out_mode: OutMode | keyof typeof OutMode | OutModeAlt;
outMode: OutMode | keyof typeof OutMode | OutModeAlt;
noise: IPath;
angle: number | IMoveAngle;
attract: IAttract;
decay: number;
direction: MoveDirection | keyof typeof MoveDirection | MoveDirectionAlt;
distance: number;
drift: RangeValue;
enable: boolean;
gravity: IMoveGravity;
outModes: IOutModes | OutMode | keyof typeof OutMode | OutModeAlt;
path: IPath;
random: boolean;
size: boolean;
speed: RangeValue;
straight: boolean;
trail: ITrail;
vibrate: boolean;
warp: boolean;
}