Agent skill Web motion
Animate Text
Design, implement or review motion on the web.
Install the skill
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 --yesCheck 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-textSelect 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 manualWhat 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- Repository
pixel-point/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
- Inspect the project and source
- Apply the motion recipe
- 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.
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 1Use 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.Apply the motion recipe
Translate the bundled Word Cut Staircase contract into a single headline swap.
Prompt · Step 2Translate 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.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 3Log 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.