react-decode-animation
Version:
Decode effect typing animation for React
17 lines (16 loc) • 508 B
TypeScript
export declare type UseDecodeAnimationProps = {
value: string;
interval: number;
onFinish?: Function;
};
export declare type UseDecodeAnimationType = (props: UseDecodeAnimationProps) => {
text: string;
currentIndex: number;
state: DecodeState;
play: Function;
pause: Function;
reset: Function;
};
export declare type DecodeState = "Playing" | "Paused" | "Reset";
declare const useDecodeAnimation: UseDecodeAnimationType;
export default useDecodeAnimation;