A cyberpunk-style text reveal animation that unscrambles random characters into legible text.
npx shadcn-vue@latest add https://raya-ui.com/registry/encrypted-text.jsonOr manually:
Install dependencies:
npm install @vueuse/coreCopy the component code into your project.
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | - | The final text to reveal. |
| revealDelayMs | number | 50 | Speed of the reveal (ms per character). |
| flipDelayMs | number | 50 | Speed of the gibberish character scrambling. |
| encryptedClass | string | - | Class applied to unrevealed (scrambled) characters. |