Skip to content

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.

AttributeDefaultNotes
aa-animate(required)text-rotate.
aa-stagger0.1 (init)Seconds between lines. Falls back to init({ stagger: { lines } }) (default 0.1).
aa-duration(init)Seconds.
aa-delay0Seconds.
aa-ease(init)Any GSAP ease.
aa-scrub(off)true or seconds — bind progress to scroll.

gsap, ScrollTrigger, SplitText.

text-rotate

A short hero line

A two-line subhead that wraps onto a second line to show per-line behaviour.

scrubbed (aa-scrub="1")

Tied to scroll.
Watch the easing.
Feel each beat.