anime-js
Skill4 starsChanged 4 months agoMITView on GitHub
Use Anime.js for Layer 3 in the Cinematic Web Engine (SK-096): batch stagger reveals, lightweight micro-sequences, text effects, and simple scroll-linked animations. Anime.js is ~17KB gzipped with excellent tree-shaking (17 submodules). Choose Anime.js when: >20 elements need staggered reveal, you need simple text/SVG animation, you want the smallest bundle for lightweight effects, or you need MIT licensing. Choose GSAP instead when: you need complex timeline nesting, ScrollTrigger pinning/scrub, plugin ecosystem (Flip, Draggable, MorphSVG), or Webflow integration. Choose Motion instead when:…
- Installs packages
4 other projects use a version of this.
Adopted by
Most recently taken up by
- INERATE/ateliertheir own version, first seen Sep 22, 2026
- sivaguru-2113/Agent-personatheir own version, first seen Aug 18, 2026
- Mindrally/skillstheir own version, first seen Jan 23, 2026
- dylantarre/animation-principlestheir own version, first seen Dec 30, 2025
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- Mindrally/skills★ 266same name
- dylantarre/animation-principles★ 94same name
- INERATE/atelier★ 2same name
- sivaguru-2113/Agent-persona★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository162 other files it gives its agents.
- agents/AGENTS.mdAGENTS.md
- skills/compound-engineering/AGENTS.mdAGENTS.md
- skills/trailofbits-security/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- examples/CLAUDE.mdCLAUDE.md
- skills/compound-engineering/CLAUDE.mdCLAUDE.md
- skills/trailofbits-security/CLAUDE.mdCLAUDE.md
- app-store-reviewSkill
- advanced-javascriptSkill
- ai-native-uiSkill
- app-l100Skill
- barba-jsSkill
- brand-guidelinesSkill
- cinematic-web-engineSkill
- codebase-knowledge-graphSkill
- crossplatform-monorepoSkill
- css-first-uiSkill
- design-auditSkill
- design-critiqueSkill
- dev-cycleSkill
- device-hardware-bridgeSkill
- discovery-docSkill
- docxSkill
- edge-intelligenceSkill
- graph-aware-reviewSkill
- linkedin-posterSkill
- local-first-architectureSkill
- modern-build-pipelineSkill
- motion-nativeSkill
- nano-bananaSkill
- playwrightSkill
- pptxSkill
- project-initSkill
- remotionSkill
- sensory-nativeSkill
- spline-3dSkill
- streaming-cacheSkill
- tanstack-ecosystemSkill
- design-taste-frontendSkill
- tauri-desktopSkill
- threejsSkill
- transition-nativeSkill
- ui-design-stackSkill
- visual-nativeSkill
- web-l100Skill
- web-platform-apisSkill
- xlsxSkill
- better-authSkill
- claude-real-videoSkill
- clone-websiteSkill
- css-keyframe-animationsSkill
- design-checkSkill
- design-dnaSkill
- design-polishSkill
- drizzle-neonSkill
- fastlaneSkill
- angular-architectSkill
- api-designerSkill
- architecture-designerSkill
- atlassian-mcpSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Use Anime.js for Layer 3 in the Cinematic Web Engine (SK-096): batch stagger reveals, lightweight micro-sequences, text effects, and simple …
- Very specific: line 306
Import only the submodules you need — never import * from 'animejs'
- Very specific: line 307
Use createScope() in React for automatic cleanup
- Very specific: line 308
Prefer WAAPI-friendly properties: transform, opacity
- Very specific: line 314
Use Anime.js for complex nested timelines — use GSAP instead
- Very specific: line 315
Use Anime.js ScrollObserver for pinned sections — use GSAP ScrollTrigger
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!--
id: SK-093
name: anime-js
description: Anime.js v4 — modular lightweight animation with ScrollObserver, draggable, text effects, WAAPI engine, TypeScript
keywords: anime, animejs, lightweight-animation, waapi, scroll-observer, text-animation, stagger, svg-animation, draggable, batch-animation
version: 1.0.0
-->Anime.js v4
When to Use This Skill
Use Anime.js for Layer 3 in the Cinematic Web Engine (SK-096): batch stagger reveals, lightweight micro-sequences, text effects, and simple scroll-linked animations. Anime.js is ~17KB gzipped with excellent tree-shaking (17 submodules).
Choose Anime.js when: >20 elements need staggered reveal, you need simple text/SVG animation, you want the smallest bundle for lightweight effects, or you need MIT licensing.
Choose GSAP instead when: you need complex timeline nesting, ScrollTrigger pinning/scrub, plugin ecosystem (Flip, Draggable, MorphSVG), or Webflow integration.
Choose Motion instead when: you need React component animation (springs, layout, gestures, exit).
Risk note: Solo maintainer (Julian Garnier). Bus factor risk. Fallback: GSAP ScrollTrigger.batch() covers the primary stagger-reveal use case.
Installation
npm install animejsv4 is TypeScript-first with 17 tree-shakeable submodules.
Core API
animate()
import { animate } from 'animejs';
// Basic animation
animate('.box', {
translateX: 250,
rotate: '1turn',
duration: 800,
easing: 'easeInOutQuad',
});
// Multiple properties with different timings
animate('.element', {
translateX: { value: 250, duration: 800 },
rotate: { value: '1turn', duration: 1800 },
scale: [
{ value: 1.4, duration: 200, easing: 'easeInOutQuad' },
{ value: 1, duration: 600, easing: 'easeOutElastic' },
],
});Modular Imports (Tree-Shaking)
// Import only what you need — sideEffects: false
import { animate } from 'animejs'; // Core
import { timeline } from 'animejs/timeline'; // Timeline
import { stagger } from 'animejs/stagger'; // Stagger utility
import { createDraggable } from 'animejs/draggable'; // Draggable
import { onScroll } from 'animejs/scroll'; // Scroll observer
import { createScope } from 'animejs/scope'; // React scope
import { svg } from 'animejs/svg'; // SVG utilities
import { utils } from 'animejs/utils'; // Utility functionsTargets
// CSS selector
animate('.class', { ... });
// DOM element
animate(document.querySelector('#id'), { ... });
// NodeList / Array
animate(document.querySelectorAll('.items'), { ... });
// Object properties
const obj = { value: 0 };
animate(obj, { value: 100, duration: 1000, update: () => el.textContent = obj.value });Stagger
import { stagger } from 'animejs/stagger';
// Basic stagger
animate('.item', {
translateY: [-20, 0],
opacity: [0, 1],
delay: stagger(100), // 100ms between each
});
// From center
animate('.item', {
scale: [0, 1],
delay: stagger(100, { from: 'center' }),
});
// Grid stagger
animate('.grid-item', {
scale: [0, 1],
delay: stagger(50, { grid: [14, 5], from: 'center' }),
});
// Range stagger (distributes evenly)
animate('.item', {
translateX: stagger([0, 300]), // First: 0, last: 300, rest interpolated
});Easing
// Built-in easings
'linear'
'easeInQuad' | 'easeOutQuad' | 'easeInOutQuad'
'easeInCubic' | 'easeOutCubic' | 'easeInOutCubic'
'easeInExpo' | 'easeOutExpo' | 'easeInOutExpo'
'easeInBack' | 'easeOutBack' | 'easeInOutBack'
'easeInElastic' | 'easeOutElastic' | 'easeInOutElastic'
'easeInBounce' | 'easeOutBounce' | 'easeInOutBounce'
// Spring physics (v4)
'spring(mass, stiffness, damping, velocity)'
'spring(1, 100, 10, 0)'
// Steps
'steps(5)'
// Cubic bezier
'cubicBezier(0.25, 0.1, 0.25, 1.0)'Timeline
import { timeline } from 'animejs/timeline';
const tl = timeline({
defaults: { duration: 600, easing: 'easeOutExpo' },
});
tl.add('.first', { translateX: 250 })
.add('.second', { translateY: 50 }, '-=400') // overlap by 400ms
.add('.third', { rotate: '1turn' }, '+=200'); // delay 200ms after previous
// Control
tl.play();
tl.pause();
tl.reverse();
tl.seek(500); // ms
tl.restart();ScrollObserver
Anime.js v4's lightweight scroll-linked animation. Simpler than GSAP ScrollTrigger — no pinning, no scrub smoothing. Good for basic reveals.
import { onScroll } from 'animejs/scroll';
// Trigger animation on scroll
onScroll({
target: '.reveal-section',
enter: 'top 80%', // when top of target hits 80% of viewport
leave: 'bottom 20%',
onEnter: () => animate('.reveal-section .item', {
opacity: [0, 1],
translateY: [30, 0],
delay: stagger(80),
}),
});
// Scroll-linked progress
onScroll({
target: '.parallax-section',
sync: true, // ties animation progress to scroll position
onUpdate: (progress) => {
// progress: 0 to 1
},
});Text Animation
import { animate } from 'animejs';
// Character-by-character reveal
animate('.heading', {
text: {
value: 'Hello World',
type: 'chars', // 'chars' | 'words' | 'lines'
},
opacity: [0, 1],
translateY: [20, 0],
delay: stagger(30),
duration: 400,
easing: 'easeOutExpo',
});SVG Animation
import { svg } from 'animejs/svg';
// Path drawing (stroke-dashoffset)
animate('#path', {
strokeDashoffset: [svg.getLength('#path'), 0],
duration: 2000,
easing: 'easeInOutQuad',
});
// Motion along path
animate('.dot', {
translateX: svg.pathMotion('#curve', 'x'),
translateY: svg.pathMotion('#curve', 'y'),
rotate: svg.pathMotion('#curve', 'angle'),
duration: 3000,
easing: 'linear',
});Draggable
import { createDraggable } from 'animejs/draggable';
const draggable = createDraggable('.drag-item', {
container: '#bounds',
snap: { x: 50, y: 50 }, // Snap to grid
releaseEase: 'easeOutElastic', // Spring on release
onDrag: (x, y) => {},
onRelease: (x, y) => {},
});
// Cleanup
draggable.destroy();React Integration
'use client';
import { useEffect, useRef } from 'react';
import { createScope } from 'animejs/scope';
import { animate } from 'animejs';
function AnimatedComponent() {
const containerRef = useRef<HTMLDivElement>(null);
useEffect(() => {
const scope = createScope(containerRef.current!);
scope.add(() => {
animate('.item', {
opacity: [0, 1],
translateY: [20, 0],
delay: stagger(100),
});
});
return () => scope.revert();
}, []);
return (
<div ref={containerRef}>
<div className="item">A</div>
<div className="item">B</div>
<div className="item">C</div>
</div>
);
}WAAPI Engine
v4 uses the Web Animations API under the hood for hardware-accelerated animations on transform and opacity. This means the browser's compositor handles these properties off the main thread when possible.
Performance
- Bundle: ~17KB full, significantly less with tree-shaking (import only needed submodules)
- Tree-shaking:
sideEffects: false, 17 individual export paths - GPU acceleration: WAAPI integration for compositor-friendly properties
- TypeScript: Full type definitions included
When to Choose Anime.js Over GSAP
| Scenario | Anime.js | GSAP |
| Bundle matters most | ~17KB tree-shakeable | ~52KB (core + ScrollTrigger) |
| MIT license required | MIT | Custom (free, but restrictive) |
| Simple stagger reveals | Excellent | Overkill |
| Complex timelines | Limited nesting | Unlimited nesting |
| Scroll pinning/scrub | Not available | ScrollTrigger |
| Plugin ecosystem | Minimal | Extensive (Flip, Morph, etc.) |
Best Practices
- Import only the submodules you need — never
import * from 'animejs' - Use
createScope()in React for automatic cleanup - Prefer WAAPI-friendly properties:
transform,opacity - For >5 elements, use
stagger()instead of manual delays - Combine with GSAP ScrollTrigger for scroll-driven orchestration (Anime.js handles the element animation, ScrollTrigger handles the scroll detection)
Do Not
- Use Anime.js for complex nested timelines — use GSAP instead
- Use Anime.js ScrollObserver for pinned sections — use GSAP ScrollTrigger
- Mix Anime.js and GSAP on the same element's properties (one owner per element)
- Forget cleanup in React — always call
scope.revert()in useEffect return
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

