UNPKG

vue-rewards

Version:

Vue-rewards lets you add micro-interactions to your app, and rewards users with the rain of confetti, emoji or balloons in seconds.

13 lines (10 loc) 346 B
import { Particle, Particles } from '../Main.types'; export type AnimateFunctionArgs = { root: Element; particles: Particles; decay: number; lifetime: number; updateParticle: (particle: Particle, progress: number, decay: number) => void; onFinish: () => void; }; export type AnimateFunction = (config: AnimateFunctionArgs) => void;