UNPKG

@erosnicolau/animated-text

Version:

Advanced React animated text component with comprehensive animation effects

24 lines 1.02 kB
import { RefObject } from 'react'; import { AnimationType, PhraseStyle } from '../types'; interface UseAnimationStateProps { animation: AnimationType; startDelay: number; itemSpacing: number; itemCount: number; phraseStyles?: PhraseStyle[]; forceStart?: boolean; replayKey?: number; isIndividualReplay?: boolean; customTimingFunction?: (index: number) => number; onAnimationStart?: () => void; onAnimationComplete?: () => void; elementRef?: RefObject<HTMLElement>; isIntersecting?: boolean; } export declare const useAnimationState: ({ animation, startDelay, itemSpacing, itemCount, phraseStyles, forceStart, replayKey, isIndividualReplay, customTimingFunction, onAnimationStart, onAnimationComplete, elementRef: externalElementRef, isIntersecting: externalIsIntersecting }: UseAnimationStateProps) => { elementRef: RefObject<HTMLElement>; animatedItems: Set<number>; shouldAnimateBlock: boolean; }; export {}; //# sourceMappingURL=useAnimationState.d.ts.map