Installation
Usage
Props
The text content to reveal
Additional CSS classes for the container
Delay before animation starts (ms)
Duration each letter shows binary characters (ms)
Delay between animating each letter (ms)
Features
- Binary Transition: Each character cycles through 1s and 0s
- Sequential Animation: Letters reveal one by one
- Green Glow: Matrix-style green text with shadow
- Monospace Font: Uses monospace for authentic digital look
- Tabular Numbers: Consistent character width
How It Works
- Animation starts after initial delay
- Each letter displays random binary characters (0 or 1)
- After letterAnimationDuration, reveals actual character
- Moves to next letter after letterInterval
- Active letters glow green, revealed letters return to normal color
Customization
Fast Animation
Slow Dramatic Effect
Styling
The component centers content and uses a monospace font. Customize the container:Dependencies
motion/react- Animation libraryreact- Hooks (useState, useEffect, useCallback, useMemo)@/lib/utils- cn utility function