Cyber Glitch Text
A highly stylized text block that appears to be hacked or decoded into existence with chromatic aberration effects.
Loading Preview...
Install using CLI
npx shadcn@latest add "https://www.vengenceui.com/r/cyber-glitch-text.json"Install Manually
1
Install dependencies
2
Add util file
lib/utils.ts
3
Copy the source code
Copy the code below and paste it into components/ui/cyber-glitch-text.tsx
Usage
Props
| Prop Name | Type | Default | Description |
|---|---|---|---|
| text | string | - | The base text to display and scramble. |
| className | string | - | Additional CSS classes. |
| scrambleOnMount | boolean | true | Whether to run the scramble effect when the component first mounts. |
| scrambleDuration | number | 40 | The time (in ms) between each scramble interval iteration. |