UNPKG

animare

Version:

Advanced animation library for modern JavaScript.

15 lines 692 B
import type { SingleAnimationOptions, SingleObject, SingleOnUpdateCallback } from '../types.js'; /** * Play a single animation. * * @param animation - animation options * @param onUpdateCallback - a callback function that is called on each animation frame * @returns an object that contains a bunch of useful methods and events * * @example * // Play a single animation with infinite repetition * const methods = animare.single({ to: 100, playCount: -1 }, info => console.log(info)); */ export default function single(animation: SingleAnimationOptions, onUpdateCallback: SingleOnUpdateCallback): SingleObject; export type Single = typeof single; //# sourceMappingURL=single.d.ts.map