Installation
Usage
Props
Array of text sequences to display
Speed of typing in milliseconds per character
Initial delay before animation starts (ms)
Whether to automatically loop through sequences
Delay before restarting the loop (ms)
Speed of character deletion (ms)
Pause duration before deleting text (ms)
Add natural human-like typing variance
TypewriterSequence Type
Features
- Natural Typing: Simulates human typing with random pauses and speed variations
- Custom Sequences: Define multiple text sequences with individual behaviors
- Auto Loop: Automatically cycle through sequences
- Blinking Cursor: Animated cursor effect
- Flexible Timing: Customizable typing, deletion, and pause speeds
Dependencies
motion/react- Animation libraryreact- Hooks (useState, useRef, useEffect)