UNPKG

split-text-ts

Version:

TypeScript text splitter for easy and seo friendly animations, allows text, word, spaces and special characters splitting.

13 lines (12 loc) 310 B
interface Result { words: NodeListOf<Element>; chars: NodeListOf<Element>; spaces: NodeListOf<Element>; splitted: Element; originalText: string; } interface TSplitTextJS { new (target: Element): Result; } declare const SplitTextJS: TSplitTextJS; export default SplitTextJS;