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.
20 lines (18 loc) • 666 B
TypeScript
import { AnimateFunction } from './helpers.types';
export declare const animate: AnimateFunction;
export declare const PI: number;
export declare const degreesToRadians: (degrees: number) => number;
export declare const getRandomInt: (min: number, max: number) => number;
export declare const generatePhysics: (angle: number, spread: number, startVelocity: number, differentiator: number) => {
x: number;
y: number;
z: number;
height: number;
wobble: number;
velocity: number;
angle2D: number;
angle3D: number;
tiltAngle: number;
differentiator: number;
};
export declare const getContainerById: (id: string) => HTMLElement;