typeit
Version:
The most versatile animated typing utility on the planet.
39 lines (38 loc) • 961 B
TypeScript
export declare type Character = {
node: Node | null;
content: string | Node;
};
export declare type Options = {
breakLines?: boolean;
cursor?: boolean;
cursorChar?: string;
cursorSpeed?: number;
deleteSpeed?: null | number;
html?: boolean;
lifeLike?: boolean;
loop?: boolean;
loopDelay?: number;
nextStringDelay?: number;
speed?: number;
startDelay?: number;
startDelete?: boolean;
strings?: string[];
waitUntilVisible?: boolean;
beforeString?: Function;
afterString?: Function;
beforeStep?: Function;
afterStep?: Function;
afterComplete?: Function;
};
export declare type ActionOpts = Options & {
to?: "START" | "END";
instant?: boolean;
delay?: number;
};
export declare type QueueItem = [Function?, any?, {
[key: string]: any;
}?];
export declare type Element = HTMLElement & {
value: string | number;
};
export declare type Sides = "START" | "END";