Agent skill Web motion
Animejs
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 https://github.com/freshtechbro/claudedesignskills/tree/main/plugins/bundles/animation-components/skills/animejs --skill animejs --agent claude-code --yesCheck this file in your project.claude/skills/animejs/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/freshtechbro/claudedesignskills/tree/main/plugins/bundles/animation-components/skills/animejs --skill animejsSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. A page with a row of feature illustrations, a browser, and an Anime.js v4 dependency for this walkthrough. Anime.js v4 uses named animate(), createScope(), and stagger() imports. The skill also contains v3 examples.
View operation manualWhat this skill helps with
- Design, implement or review motion on the web.
Good for
- Web motion and transitions
- Publisher
- FreshTechBro
- Compatibility
- Anime.js v4 uses named animate(), createScope(), and stagger() imports. The skill also contains v3 examples.
- Scenario
- Stagger a row of feature illustrations
- Skill name
animejs- Repository
freshtechbro/claudedesignskills
Common pitfall
Avoid this prompt
Copy the default anime import and apply it globally to every .card.
The default anime() example targets v3, and a page-wide selector can affect other components.
Use these steps
- Check the lockfile and choose only the decorative parts of the row.
- Use a v4 scope and a single stagger for a small upward motion.
- Check sequencing, target isolation, and the same component after remount.
Hands-on walkthrough
Choreograph a single stagger in one component using the Anime.js v4 API and verify cleanup on remount.
Choreograph a single stagger in one component using the Anime.js v4 API and verify cleanup on remount.
Identify the version and scoped targets
Check the lockfile and choose only the decorative parts of the row.
Prompt · Step 1Use the Anime.js skill to inspect [feature row]. Read the resolved animejs version and find the component root and decorative targets. For this v4 walkthrough, use named exports and keep text and actions visible while scripts load and with reduced motion. If the app still uses v3, flag its separate migration needs before changing imports.Build a bounded stagger
Use a v4 scope and a single stagger for a small upward motion.
Prompt · Step 2With Anime.js v4, import animate, createScope, and stagger from animejs. After mount, call createScope({ root }).add(...) and inside it animate only the row illustrations with y from 8 to 0, a short duration, and delay: stagger(45). Skip the effect for reduced motion and return scope.revert() in the component cleanup.Verify the order and cleanup
Check sequencing, target isolation, and the same component after remount.
- Only the scoped row moves in the expected order.
- Cleanup and reduced motion leave usable static content.
Prompt · Step 3Render two rows with the same target class and trigger only the selected row. Inspect delayed starts and the final y value. Remove the animated row during playback and remount it, checking for stale inline styles or duplicate playback. Repeat with reduced motion, and report the version and the checks actually run.
Workflow lookup
Use the documented calls with the version selected for the walkthrough.
Build stagger delaysAPI
- Command or reference
delay: stagger(45)- Examples
- In the v4 default time unit, delay each successive illustration by 45ms.
Scope and clean upAPI
- Command or reference
createScope({ root }).add(...) · scope.revert()- Examples
- Create the scope once per mounted component and revert it on removal.
FAQ
Can I use the default anime() import from the skill sample?
Use that form in a project on Anime.js v3. The v4 walkthrough uses named exports and v4 parameter names.
Where are the skill materials?
Open the project skill folder printed by the installer for SKILL.md and any bundled resources. The app’s runtime libraries are managed separately in its own package manifest.