text-rotate
text-rotate wraps each split line in a perspective container and rotates the line in from rotateX(-90deg) while sliding up from below and scaling out from 75% horizontally. The wrapper uses perspective: 5em (relative to the element’s font size) so depth scales naturally with the headline.
Attributes
Section titled “Attributes”| Attribute | Default | Notes |
|---|---|---|
aa-animate | (required) | text-rotate. |
aa-stagger | 0.1 (init) | Seconds between lines. Falls back to init({ stagger: { lines } }) (default 0.1). |
aa-duration | (init) | Seconds. |
aa-delay | 0 | Seconds. |
aa-ease | (init) | Any GSAP ease. |
aa-scrub | (off) | true or seconds — bind progress to scroll. |
Required GSAP plugins
Section titled “Required GSAP plugins”gsap, ScrollTrigger, SplitText.
Live demo
Section titled “Live demo”text-rotateA short hero line
A two-line subhead that wraps onto a second line to show per-line behaviour.
scrubbed (
aa-scrub="1")