Skill library

Agent skill Web motion

Animate Text

Design, implement or review motion on the web.

  • Animation
  • GSAP

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add pixel-point/animate-text --skill animate-text --agent claude-code --yes

Check this file in your project.claude/skills/animate-text/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add pixel-point/animate-text --skill animate-text

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use a short original headline and an existing WAAPI-capable browser. The optional installed lookup scripts require Node.js 20 or later.

View operation manual

What this skill helps with

  • Design, implement or review motion on the web.

Good for

  • Web motion and transitions
Publisher
pixel-point
Controls
shared-axis-y · per-word · 180/140ms · 78ms stagger · steps(1, end)
Result
Word timing follows the installed JSON, with a clean phase boundary and one accessible heading.
Skill name
animate-text

Common pitfall

Avoid this prompt

Infer vertical movement from the effect ID and crossfade both phrases.

This portable contract uses hard opacity cuts, zero Y movement, and zero overlap.

Use these steps

  1. Inspect the project and source
  2. Apply the motion recipe
  3. Verify behavior and fallback

Project walkthrough

Translate the bundled Word Cut Staircase contract into a single headline swap.

Translate the bundled Word Cut Staircase contract into a single headline swap.

  1. Inspect the project and source

    Use a short original headline and an existing WAAPI-capable browser. The optional installed lookup scripts require Node.js 20 or later.

    Prompt · Step 1
    Use Animate Text on [my tidal journal headline]. Run node scripts/get-spec.mjs shared-axis-y from the installed Skill. Read the target, enter, exit and swap fields. Choose a portable, one-shot translation for my own copy. Open assets/effects/shared-axis-y.json separately only if the exact showcase playback is requested.
  2. Apply the motion recipe

    Translate the bundled Word Cut Staircase contract into a single headline swap.

    Prompt · Step 2
    Translate per-word stepping to Element.animate() with steps(1, end), 140ms exit, 180ms enter, and 78ms between words. Finish the old phrase, wait the contract’s 28ms micro delay, then mount the new phrase. Keep one readable heading, preserve spaces, and expose the active entire phrase as its accessible name. Swap immediately under reduced motion.
  3. Verify behavior and fallback

    Word timing follows the installed JSON, with a clean phase boundary and one accessible heading.

    • Word timing follows the installed JSON, with a clean phase boundary and one accessible heading.
    Prompt · Step 3
    Log old-phase completion and new-phase start. Assert the phases never overlap and that the third word is delayed by 156ms. Check final opacity and use reduced motion to confirm the new sentence appears immediately.

Implementation lookup

Compare the implementation with the recipe and its expected outcome.

Inspect the implementation controlsVerify
Command or reference
shared-axis-y · per-word · 180/140ms · 78ms stagger · steps(1, end)
Examples
Word timing follows the installed JSON, with a clean phase boundary and one accessible heading.

FAQ

What should I prepare first?

Use a short original headline and an existing WAAPI-capable browser. The optional installed lookup scripts require Node.js 20 or later.

How do I verify the result?

Word timing follows the installed JSON, with a clean phase boundary and one accessible heading.