react-stagger-text
Version:
A React TS component for creating staggered text animation by word or letters, when in viewport
19 lines (15 loc) • 418 B
TypeScript
import React from 'react';
interface StaggerTextProps {
shouldStart?: boolean
startTreshold?: number
startDelay?: number
staggerType?: 'word' | 'letter'
staggerDuration?: number
staggerDelay?: number
staggerEasing?: string
hasInlineBlockWrapper?: boolean
onStaggerComplete?: () => void
children: string
}
declare const StaggerText: React.FC<StaggerTextProps>;
export { StaggerText as default };