Text Animation

Text Scramble

text-scramble.tsx
Inspecting the repository

Install

$ bunx --bun shadcn add @beui/text-scramble

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#%&@$?/
className?
string
Default—
style?
CSSProperties
Default—

Dia Text Animation

chromatic-text-reveal.tsx
Motion that feels natural.

Install

$ bunx --bun shadcn add @beui/chromatic-text-reveal

API Reference

prefix
string

Sentence fragment that remains fixed while the final word changes.

Default—
words
string[]

Words revealed one after another after the fixed prefix.

Default—
colors?
string[]

Colors used along the moving chromatic edge.

Default[ "#60a5fa", "#818cf8", "#c084fc", "#fb7185", "#fbbf24", ]
foregroundColor?
string

Final text color after the sweep passes.

Defaultvar(--foreground)
duration?
number

Sweep duration in seconds.

Default1.2
delay?
number

Delay before the first sweep, in seconds.

Default0
pauseDuration?
number

Rest after a word finishes revealing, in seconds.

Default0.8
loop?
boolean

Returns to the first word after the final word.

Defaulttrue
startOnView?
boolean

Starts when the text enters the viewport.

Defaulttrue
once?
boolean

Only starts on the first viewport entry.

Defaulttrue
inViewMargin?
MarginType

IntersectionObserver root margin used by the viewport trigger.

Default—
className?
string
Default—

Text Reveal

text-reveal.tsx

Motion that feelsconsidered.

Word by word, with a soft blur.

Install

$ bunx --bun shadcn add @beui/text-reveal

API Reference

text
string | string[]
Default—
as?
ElementType
Defaultspan
className?
string
Default—
split?
"word" | "char"
Defaultword
stagger?
number
Default0.09
delay?
number
Default0
blur?
number
Default12
yOffset?
string | number
Default40%
spring?
{ stiffness?: number; damping?: number; mass?: number | undefined; } | undefined
Default—
once?
boolean
Defaulttrue
whileInView?
boolean
Defaultfalse

Text Shimmer

text-shimmer.tsx
Loading projects…Faster shimmer

Install

$ bunx --bun shadcn add @beui/text-shimmer

API Reference

as?
ElementType
Defaultspan
duration?
number
Default2.5
className?
string
Default—

Text Cascade

text-cascade.tsx

Install skills

Install

$ bunx --bun shadcn add @beui/text-cascade

API Reference

text
string

Current text. Changing it cascades the letters to the new value.

Default—
className?
string
Default—
Also on React Native. Reveals, sweeps, shimmers, cascades and scrambles.

Updated