choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
9 lines (8 loc) • 480 B
TypeScript
export declare const cancelAnimationTimeout: (frame: KeyframeAnimationOptions) => any;
/**
* Recursively calls requestAnimationFrame until a specified delay has been met or exceeded.
* When the delay time has been reached the function you're timing out will be called.
*
* Credit: Joe Lambert (https://gist.github.com/joelambert/1002116#file-requesttimeout-js)
*/
export declare const requestAnimationTimeout: (callback: Function, delay: number) => KeyframeAnimationOptions;