--- name: kinetic-typography description: This skill should be used when the user asks to "animate a headline", "make a kinetic typography video", "do a split-text reveal", "stagger text by character/word/line", "make a lyric or caption video", "animate a variable font weight", "put text on a path", or "create an animated title card". Covers reveal techniques in CSS, GSAP SplitText, Framer Motion, and Remotion. version: 0.1.0 --- # Typography in Motion Animate text expressively: splitting copy into lines/words/characters, staggering reveals, masking, blurring, morphing weight, and running text along a path. Produces runnable code for the web (CSS, GSAP, Framer Motion) and video (Remotion), plus an After Effects expression approach. ## When to use - Headline / tagline entrances and animated title cards. - Lyric videos, caption/subtitle reveals, kinetic-typography pieces. - Variable-font animation (weight, width, slant, optical size). - Text-on-path, text stroke draw-on, and per-character morph effects. ## Core workflow ### 1. Get static typography right first Motion cannot rescue bad type. Before animating, lock line-height (1.1-1.2 for display headlines, 1.4-1.6 for body), tracking (tighten display by -1% to -3%, e.g. `letter-spacing: -0.02em`), alignment, and weight. Then split and animate. ### 2. Choose split granularity - **By line** — calmest, most premium; best for multi-line paragraphs and elegant headlines. - **By word** — energetic, good for taglines and lyric hits. - **By character** — most kinetic/playful; risk of feeling busy on long copy. Reserve for short strings. Tools: `SplitType` or GSAP `SplitText` on the web; `.split('')` / `.split(' ')` plus `interpolate` in Remotion; `motion` staggered children in Framer Motion. Critical accessibility note: splitting into per-character spans destroys the text for screen readers and breaks copy-paste. Always set `aria-label` on the container with the full string and `aria-hidden="true"` on the split fragments. ### 3. Apply a reveal technique The four workhorse reveals: - **Mask / clip reveal (most robust)** — wrap each line in `overflow: hidden`; animate the child from `translateY(100%)` to `0`. The text wipes up from a hidden baseline. No blur artifacts, GPU-cheap, the industry-standard headline reveal. - **Blur-in** — animate `filter: blur(12px) -> blur(0)` with `opacity 0 -> 1`. Soft, premium, "focus-pull" feel. Costlier to render; keep blur radius modest and prefer short durations. - **Clip-path wipe** — animate `clip-path: inset(0 100% 0 0)` to `inset(0 0 0 0)` for a directional reveal without moving the glyphs. - **Character stagger** — split to chars, fade/translate each with a 20-40ms offset. ### 4. Apply principle-correct timing Inline essentials (so this skill stands alone): - Enter with ease-out: `cubic-bezier(0.16, 1, 0.3, 1)` (easeOutExpo) feels premium. - Per-fragment duration 400-600ms. - Stagger: lines 60-100ms, words 40-70ms, characters 20-40ms apart. - Cap total reveal near ~800ms; for long strings, reduce per-char offset or switch to word/line granularity. ### 5. Mask-reveal, copy-paste (vanilla CSS + JS line split) ```html