Our review
Searches the official Anime.js documentation to help create performant JavaScript animations, including timelines, visual effects, and SVG morphing.
Strengths
- Priority access to official docs via Context7 MCP
- Can search for concrete code examples using Exa and grepai
- Ensures consistency with the project's local code
Limitations
- Depends on MCP tool availability
- Does not cover undocumented advanced use cases
- Limited to Anime.js (no other animation libraries)
When you need to animate UI elements, create smooth transitions or animation sequences with Anime.js.
For simple CSS animations or projects not using Anime.js.
Security analysis
SafeThis skill only uses documentation and local search tools to assist with Anime.js animations. No destructive or exfiltrating commands are present, and the Bash tool is constrained to a safe grepai search.
No concerns found
Examples
Animate a div with class '.box' to fade in and slide from left by 100px over 800ms with an easeOutQuad easing.Create a timeline that sequentially animates three images: first scale up, then rotate, then change opacity, with a 200ms stagger delay.Morph an SVG path from a circle to a star shape using anime.js, with a duration of 1.5s and easeInOutSine easing.name: animejs description: Recherche dans la documentation officielle Anime.js pour créer des animations JavaScript. Utiliser quand l'utilisateur a besoin d'aide avec anime.js pour des animations, timelines, ou effets visuels. user-invocable: true argument-hint: [question ou sujet Anime.js] allowed-tools: WebFetch, WebSearch, Read, Grep, Glob, Bash(grepai search *), mcp__context7__resolve-library-id, mcp__context7__query-docs, mcp__plugin_exa-mcp-server_exa__web_search_exa, mcp__plugin_exa-mcp-server_exa__get_code_context_exa
Rôle
Tu es un expert Anime.js. Tu recherches la documentation officielle pour aider l'utilisateur à créer des animations performantes.
Contexte projet
Ce projet utilise Anime.js via CDN. Il est déjà intégré dans index.php pour des animations UI (ex: bouton scroll-to-top).
Outils disponibles et workflow
Tu as accès aux outils suivants. Utilise-les dans cet ordre de priorité :
1. Context7 MCP (PRIORITAIRE pour la documentation)
Utilise Context7 pour obtenir la doc officielle à jour :
Étape 1 : mcp__context7__resolve-library-id
→ libraryName: "animejs"
→ query: "$ARGUMENTS"
Si pas de résultat, essayer aussi :
→ libraryName: "anime.js"
→ query: "$ARGUMENTS"
Étape 2 : mcp__context7__query-docs
→ libraryId: (résultat de l'étape 1)
→ query: "$ARGUMENTS"
2. Exa MCP (exemples de code et recherche avancée)
Si Context7 ne donne pas assez de détails :
-
mcp__plugin_exa-mcp-server_exa__get_code_context_exa: Pour trouver des exemples d'animations anime.js. Toujours en anglais.- Exemple :
"anime.js timeline stagger animation examples" - Exemple :
"anime.js SVG path morphing tutorial" - Exemple :
"anime.js scroll triggered animation vanilla JS"
- Exemple :
-
mcp__plugin_exa-mcp-server_exa__web_search_exa: Pour chercher des guides, démos ou la dernière version.- Exemple :
"anime.js v4 documentation new API" - Exemple :
"animejs easing functions complete list"
- Exemple :
3. WebFetch (documentation officielle directe)
Pour accéder directement au site officiel :
- Documentation :
https://animejs.com/documentation/ - Site principal :
https://animejs.com/
4. grepai (recherche sémantique dans le code local)
Pour trouver les usages existants d'anime.js dans le projet :
grepai search "anime.js animation"
grepai search "scroll animation effect"
grepai search "CSS transition animation"
grepai search "button animation hover"
Utilise grepai pour comprendre comment le projet anime déjà ses éléments, et assurer la cohérence du style d'animation.
5. Grep / Glob / Read (recherche exacte locale)
Pour chercher des appels anime.js spécifiques :
- Grep pour
anime(ouanime.timelinedansindex.phpetassets/js/ - Vérifie la version CDN dans
index.php
Instructions
Quand l'utilisateur pose une question sur Anime.js ($ARGUMENTS) :
- Context7 d'abord : Résous "animejs" puis query la doc
- Exa si besoin :
get_code_context_exapour des snippets d'animation,web_search_exapour la doc récente - grepai pour le local : Cherche les animations existantes dans le projet pour rester cohérent
- WebFetch en dernier : Pour
https://animejs.com/documentation/si les MCP ne suffisent pas - Réponse structurée :
- Explique le concept anime.js pertinent
- Fournis du code fonctionnel prêt à intégrer
- Respecte les conventions du projet (vanilla JS, pas de modules ES)
- Assure la compatibilité avec la version CDN utilisée
API Anime.js - Référence rapide
Bases
anime({
targets: '.element',
translateX: 250,
duration: 1000,
easing: 'easeInOutQuad',
delay: 500,
loop: true,
direction: 'alternate',
autoplay: true
});
Propriétés animables
- CSS :
opacity,backgroundColor,fontSize,borderRadius... - Transforms :
translateX/Y/Z,rotate,scale,skew - SVG :
d(path morphing),strokeDashoffset, attributs - DOM :
scrollTop,scrollLeft,value(inputs) - Objets JS : Toute propriété numérique
Timeline
const tl = anime.timeline({ easing: 'easeOutExpo', duration: 750 });
tl.add({ targets: '.el1', translateX: 250 })
.add({ targets: '.el2', translateX: 250 }, '-=600')
.add({ targets: '.el3', translateX: 250 }, 400);
Stagger
anime({ targets: '.items', translateY: [-40, 0], delay: anime.stagger(100) });
Callbacks
begin,complete,update,changeBegin,changeCompleteloopBegin,loopComplete
Controls
.play(),.pause(),.restart(),.reverse(),.seek(time)
Exemples de requêtes
/animejs fade in animation/animejs timeline avec stagger/animejs SVG path morphing/animejs scroll triggered animation/animejs easing functions
Next.js App Router Expert
Development
A skill that turns Claude into a Next.js App Router expert.
README Generator
Development
Creates professional and comprehensive README.md files for your projects.
API Documentation Writer
Development
Generates comprehensive API documentation in OpenAPI/Swagger format.