UNPKG

tsparticles

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.

43 lines (42 loc) 1.1 kB
import type { IColor, IRangedCoordinates } from "../../../../Core"; import type { IAbsorberSize } from "./IAbsorberSize"; import { RecursivePartial } from "../../../../Types"; /** * Absorber options * [[include:Options/Plugins/Absorbers.md]] * @category Absorbers Plugin */ export interface IAbsorber { /** * Absorber color */ color: IColor | string; /** * Absorber name */ name?: string; /** * Absorber opacity */ opacity: number; /** * Absorber position, percent values calculated on canvas size */ position?: RecursivePartial<IRangedCoordinates>; /** * Absorber size, these values will be used as pixels */ size: IAbsorberSize; /** * Absorber draggable, this enables dragging on absorbers */ draggable: boolean; /** * Absorber destroy, this enable particle destruction, if disabled the particle will randomly respawn */ destroy: boolean; /** * Absorber orbits, this enable particles orbiting while being attracted by the attracter */ orbits: boolean; }