package.dist.animations.animate.d.ts Maven / Gradle / Ivy
type AnimateOptions = {
beforeStart?: () => void;
duration: number;
element: HTMLElement;
advance: (p: number) => void;
};
declare const animate: (options: AnimateOptions) => {
promise: () => Promise;
stop: () => () => void;
};
declare const duration = 400;
export { duration };
export type { AnimateOptions };
export default animate;