A text scramble reveal animation that decodes characters on mount or when re-triggered.
Made by AxylInstallation
Usage
Re-run the animation by toggling trigger:
Run on hover instead of on mount (trigger is ignored automatically):
Color sweep while decoding — scramble noise in one color, revealed letters keep your text color:
holdDuration scrambles in place first; then the reveal sweeps left to right.
Props
| Prop | Type | Default |
|---|---|---|
children? | string | - |
as? | ElementType | "p" |
scrambleColor? | string | - |
holdDuration? | number | 0 |
duration? | number | 0.8 |
speed? | number | 0.04 |
characterSet? | string | - |
trigger? | boolean | true |
triggerOnHover? | boolean | false |
className? | string | - |
onScrambleComplete? | () => void | - |
Built by Axyl. The source code will be available on GitHub soon.
Last updated: 6/8/2026