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

Menu

Text Animation

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
Also on React Native. Reveals, sweeps, shimmers, cascades and scrambles.(opens in a new tab)

Updated