precision targeting

Compose

Mix units, chain selections, and target exact positions — middle chars, first of every word, percentage ranges.

All demos

Recipe

Text

Code

Code

1const chars = title.chars2const mid = select(chars, { mode: 'middle' })3const els = mid.map(c => title.chars[c.index])45gsap.set(els, { scale: 0.92, opacity: 0 })6gsap.to(els, {7  scale: 2.5, opacity: 1,8  duration: 0.6, ease: 'elastic.out(1, 0.3)',9})

What This Does

Exact center character of the entire text

query