A smooth text reveals animation where each heading reveals related content on interaction.
Set type to words, the text will be split by individual words.
Set type to lines, the text will be split by individual lines.
Set splitTextVars with the code to reveal each line as if it's masked.
Set gsapVars with the code, and the text will appear as if it's coming from broken pieces.
| Prop | Type | Default |
|---|---|---|
| type | chars words lines | chars |
| gsapVars | gsap.TweenVars | - |
| splitTextVars | SplitText.Vars | - |