LogoLogoLogoLogoPaceKit
BlocksGSAP
GSAP
  • Introduction
  • Installation
  • AI Toolkit
  • Modal Selector
  • Modal Ability Selector
  • AI Suggestions
  • Response Writer
  • Token Counter
  • Text Effects
  • Reveal Text
  • Scramble Text
  • Squash Text
  • Bouncing Text
  • Draw Line Text
  • Mouse Wave Text
  • Dot Animations
  • Dot Loader
  • Dot Flow
  • Flow Builder
  • Buttons
  • Text Fall Button
  • Spring Button
  • Utility & Misc
  • Swap
  • Animated Stack
  • Layered Stack
  • Gradient Shadow
  • GitHub Star Counter
  • Profile Peek
  • Flip Reveal
  • Special Cases
  • Reveal On Scroll
  • Stagger on Scroll
  • Liquid Cursor
  • Liquid Glass
  • Tilt Card

Reveal Text

PreviousNext

A smooth text reveals animation where each heading reveals related content on interaction.

Examples

Word by word

Set type to words, the text will be split by individual words.

Line by line

Set type to lines, the text will be split by individual lines.

Masked line

Set splitTextVars with the code to reveal each line as if it's masked.

Assemble

Set gsapVars with the code, and the text will appear as if it's coming from broken pieces.

Props

RevealText

PropTypeDefault
typechars words lineschars
gsapVarsgsap.TweenVars-
splitTextVarsSplitText.Vars-
Token CounterScramble Text

Built by Denish at PaceKit

On This Page

ExamplesWord by wordLine by lineMasked lineAssemblePropsRevealText

Better Auth Starter

Ship your SaaS faster with a solid starting point for TanStack Start and Next.js

Launch Now