Skip to content
tastebase

tastebase

Sign in

Your agent gets your look, hearts and dislikes in every project. Folders follow you to every device.

We keep the name, avatar and email your provider shares. Nothing else.

GSAP SplitText

free

Splits text into lines, words and characters (with masks) for staggered reveal animations.

by GreenSock (Webflow) GitHub npm
visit
GSAP SplitText website

Try these

Torph

Animated text morphing: labels change letter by letter instead of swapping.

useScramble

1 KB React hook that scrambles text through random characters before settling (decrypt effect).

GSAP

Timeline animation engine with ScrollTrigger, SplitText, Flip and MorphSVG, now free including every plugin.

Lenis

Smooth, inertia-based wheel scrolling that keeps native scroll position, sticky and anchors working.

Looks that pick it

For your agent

Install
npm i gsap
Use it for
  • a hero headline that rises line by line out of a mask
  • editorial section titles that reveal by word as they scroll into view
  • character-level kinetic type on a brand or portfolio site
  • a typewriter headline whose characters appear one at a time (stagger the chars)
Skip it when
  • app UI and labels: splitting text in product UI is distracting; use torph for label changes
  • body copy or long paragraphs: animate the block's opacity instead
  • you only want balanced headline wrapping: use CSS text-wrap: balance, no library
What's inside10 free
  • SplitText.create()
  • Chars
  • Words
  • Lines
  • Masks
  • autoSplit
  • onSplit()
  • revert()
  • smartWrap
  • aria
Facts
Frameworks
vanilla, react, vue, svelte, solid, angular
Styling
unstyled
Weight
small
Accessibility
ok
Maturity
established
License
GSAP Standard 'no charge' license (free, commercial use allowed)
Price
Free
Pairs with
Alternatives
Compare GSAP SplitText with its alternatives
import gsap from 'gsap'
import { SplitText } from 'gsap/SplitText'

gsap.registerPlugin(SplitText)

SplitText.create('.headline', {
  type: 'lines',
  mask: 'lines',
  autoSplit: true,
  onSplit: (self) => gsap.from(self.lines, { yPercent: 100, stagger: 0.08, duration: 0.8, ease: 'expo.out' }),
})
Visit