animejs-animate
Comprehensive guide to using Anime.js v4 for JavaScript-driven web animations — timelines, SVG animations, scroll effects, draggable interactions, and stagger patterns.
Best use case
animejs-animate is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Comprehensive guide to using Anime.js v4 for JavaScript-driven web animations — timelines, SVG animations, scroll effects, draggable interactions, and stagger patterns.
Teams using animejs-animate should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/animejs-animate/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How animejs-animate Compares
| Feature / Agent | animejs-animate | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Comprehensive guide to using Anime.js v4 for JavaScript-driven web animations — timelines, SVG animations, scroll effects, draggable interactions, and stagger patterns.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Anime.js v4 — Web Animation Skill
## When to use
- Lightweight JavaScript animations (smaller than GSAP)
- SVG path animations and morphing
- Timeline-based sequences
- Stagger effects on multiple elements
- Draggable interactions
## Key APIs
### Basic animation
```js
import anime from "animejs";
anime({
targets: ".element",
translateX: 250,
opacity: [0, 1],
duration: 800,
easing: "easeOutExpo",
});
```
### Timeline
```js
const tl = anime.timeline({
easing: "easeOutExpo",
duration: 750,
});
tl.add({ targets: ".header", translateY: [-30, 0], opacity: [0, 1] })
.add({ targets: ".content", translateY: [20, 0], opacity: [0, 1] }, "-=400")
.add({ targets: ".cta", scale: [0.9, 1], opacity: [0, 1] }, "-=300");
```
### Stagger
```js
anime({
targets: ".grid-item",
scale: [0.5, 1],
opacity: [0, 1],
delay: anime.stagger(100, { grid: [4, 4], from: "center" }),
});
```
### SVG path animation
```js
anime({
targets: "path",
strokeDashoffset: [anime.setDashoffset, 0],
duration: 2000,
easing: "easeInOutSine",
});
```
## v4 changes from v3
- ES module support by default
- New `createTimeline()` API
- `createDraggable()` for drag interactions
- Scroll-linked animations with `createScope()`
- Improved TypeScript support
## Performance tips
- Animate `transform` and `opacity` only for 60fps
- Use `will-change: transform` on animated elements
- Batch DOM reads before animation starts
- Remove completed animations to free memory
## Common pitfalls
- Animating layout properties (width/height) → use transform instead
- Not cleaning up in SPAs → store and pause/remove references
- SVG animations not working → check `stroke-dasharray` is set
## Tips for AI Agents
- Ask if Anime.js is already installed or needs adding.
- Confirm animation style (entrance, scroll, interaction, SVG).
- Consider `prefers-reduced-motion` for accessibility.Related Skills
motion-canvas-animate
Create programmatic animations using Motion Canvas at {{MOTION_CANVAS_HOST}}:{{MOTION_CANVAS_PORT}}.
gsap-animate
Add or debug professional web animations with GSAP (timelines, ScrollTrigger, stagger, transforms) in HTML/CSS/JS/React. Includes patterns for smooth motion, performance, and common pitfalls.
youtube-growth
Act as an expert YouTube Strategy Consultant. Apply the Creator Unlock N.I.C.E.R. Framework for conducting channel audits, niche validation, and data-backed video ideation/thumbnail generation.
xyops-automate
Build and manage automation pipelines using xyOps at {{XYOPS_HOST}}:{{XYOPS_PORT}}.
xml-parse
Parse and transform XML/HTML documents using command-line tools in the shared volume at {{SHARED_VOLUME}}.
woodpecker-ci
Lightweight container-native CI/CD with Woodpecker
whisper-transcribe
Transcribe audio and video files to text using the Whisper speech-to-text API at {{WHISPER_HOST}}:{{WHISPER_PORT}}.
web-interface-guidelines
Checklist for reviewing UI code for compliance with comprehensive web interface, accessibility, performance, and content guidelines — based on Vercel's Web Interface Guidelines.
web-design-reviewer
Inspect web interfaces for layout, responsive, accessibility, and visual issues, then apply targeted source code fixes and re-verify results.
weaviate-search
Perform hybrid vector and keyword search using Weaviate at {{WEAVIATE_HOST}}:{{WEAVIATE_PORT}}.
watchtower-update
Auto-update Docker containers using Watchtower.
vaultwarden-manage
Self-hosted password management with Vaultwarden