āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/paceui/ui/components/reveal-text ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
<DemoCodePreview path="demo/components/reveal-text/default.tsx" v0Link="/gsap/reveal-text" />
<Step>
**Update the import paths to fit your project setup**
</Step>
</Steps>
</TabsContent>
</Tabs>
Set type to words, the text will be split by individual words.
<DemoCodePreview path="demo/components/reveal-text/words.tsx" v0Link="/gsap/reveal-text" />
Set type to lines, the text will be split by individual lines.
<DemoCodePreview path="demo/components/reveal-text/lines.tsx" v0Link="/gsap/reveal-text" />
Set splitTextVars with the code to reveal each line as if it's masked.
<DemoCodePreview path="demo/components/reveal-text/masked-lines.tsx" v0Link="/gsap/reveal-text" />
Set gsapVars with the code, and the text will appear as if it's coming from broken pieces.
<DemoCodePreview path="demo/components/reveal-text/assemble.tsx" v0Link="/gsap/reveal-text" />
| Prop | Type | Default |
|---------------|-------------------------|---------|
| type | chars words lines | chars |
| gsapVars | gsap.TweenVars | - |
| splitTextVars | SplitText.Vars | - |
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā