Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Text Animation

Text Scramble

TextScramble.vue
Inspecting the repository

Install

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/text-scramble

Import the shared styles once in your application.

TSUsage
import TextScramble from '@/components/beui/effects/TextScramble.vue'
import '@/components/beui/styles.css'

API Reference

text
string

Final text revealed by the scramble animation.

Default—
duration?
number

Maximum animation duration in milliseconds.

Default—
glyphs?
string

Characters sampled while unresolved positions are scrambling.

DefaultABCDEFGHJKLMNPQRSTUVWXYZ0123456789#%&@$?/
class?
string
Default—
style?
StyleValue
Default—
Also on React Native. Reveals, sweeps, shimmers, cascades and scrambles.(opens in a new tab)

Updated