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—

Dia Text Animation

ChromaticTextReveal.vue
Motion that feels natural.

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/chromatic-text-reveal

Import the shared styles once in your application.

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

API Reference

prefix
string

Sentence fragment that remains fixed while the final word changes.

Default—
words
readonly string[]

Words revealed one after another after the fixed prefix.

Default—
colors?
readonly string[]

Colors used along the moving chromatic edge.

Default—
foregroundColor?
string

Final text color after the sweep passes.

Defaultvar(--beui-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.

Default.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?
string

IntersectionObserver root margin used by the viewport trigger.

Default—
class?
string
Default—
paused?
boolean
Defaultfalse

Text Reveal

TextReveal.vue

Motion that feels considered.

Word by word, with a soft blur.

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-reveal

Import the shared styles once in your application.

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

API Reference

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

Text Shimmer

TextShimmer.vue
Loading projects…Faster shimmer

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-shimmer

Import the shared styles once in your application.

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

API Reference

as?
string
Defaultspan
duration?
number
Default2.5
class?
string
Default—
paused?
boolean
Defaultfalse

Text Cascade

TextCascade.vue

Install skills

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-cascade

Import the shared styles once in your application.

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

API Reference

text
string

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

Default—
class?
string
Default—
Also on React Native. Reveals, sweeps, shimmers, cascades and scrambles.(opens in a new tab)

Updated