Hyper Text
Scrambles through letters and resolves into the real text.
- 1.0 KB gzipped
- Zero dependencies
- Reduced-motion safe
- Base UI & Radix compatible
Preview
VELORA UI
Installation
pnpm dlx shadcn@latest add https://paulkeys.org/r/hyper-text.jsonAdds components/velora/hyper-text.tsx.
Props
| Prop | Type | Default |
|---|---|---|
children* | string | — |
frameMilliseconds between scramble frames | number | 40 |
onHoverScramble on hover instead of on mount | boolean | false |
className | string | — |
Accessibility
- Reduced motion
- No scramble runs, on mount or on hover; the text renders as-is.
- Keyboard
- Decorative — nothing to operate.
- Screen readers
- The real text is in an sr-only span and the scrambling visual copy is aria-hidden, so assistive tech never reads random letters.