UNPKG

promise-animate

Version:

Use request animation frame with promises and pleasure

15 lines (14 loc) 391 B
interface IAnimateOptions { duration: number; update: ( /** * The progress of the animation over the time. * Between `0` and `1`. */ progress: number) => void; cancellationToken?: { cancel: boolean; }; } declare const _default: ({ duration, update, cancellationToken }: IAnimateOptions) => Promise<void>; export default _default;