Anime.js - JavaScript Animations

VerifiedSafe

Searches official Anime.js documentation to create JavaScript animations. Helps with code examples, timelines, visual effects, and animatable properties (CSS, SVG, DOM).

Sby Skills Guide Bot
DevelopmentIntermediate
6/2/2026
Claude Code
#animejs#animation#javascript#web-animation#ui-animation

Recommended for

Automated summary

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 to use it

When you need to animate UI elements, create smooth transitions or animation sequences with Anime.js.

When not to use it

For simple CSS animations or projects not using Anime.js.

Security analysis

Safe
Quality score90/100

This 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

How this analysis is made

Examples

Fade in and slide from left
Animate a div with class '.box' to fade in and slide from left by 100px over 800ms with an easeOutQuad easing.
Timeline with staggered elements
Create a timeline that sequentially animates three images: first scale up, then rotate, then change opacity, with a 200ms stagger delay.
SVG path morphing
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"
  • 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"

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( ou anime.timeline dans index.php et assets/js/
  • Vérifie la version CDN dans index.php

Instructions

Quand l'utilisateur pose une question sur Anime.js ($ARGUMENTS) :

  1. Context7 d'abord : Résous "animejs" puis query la doc
  2. Exa si besoin : get_code_context_exa pour des snippets d'animation, web_search_exa pour la doc récente
  3. grepai pour le local : Cherche les animations existantes dans le projet pour rester cohérent
  4. WebFetch en dernier : Pour https://animejs.com/documentation/ si les MCP ne suffisent pas
  5. 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, changeComplete
  • loopBegin, 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

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/anime-js-javascript-animations-mm78nnuv/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/anime-js-javascript-animations-mm78nnuv' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/anime-js-javascript-animations-mm78nnuv/download' --output '.skill-downloads/anime-js-javascript-animations-mm78nnuv/SKILL.md.part' && mv '.skill-downloads/anime-js-javascript-animations-mm78nnuv/SKILL.md.part' '.skill-downloads/anime-js-javascript-animations-mm78nnuv/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): 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

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/anime-js-javascript-animations-mm78nnuv/SKILL.md' && test -s '.skill-downloads/anime-js-javascript-animations-mm78nnuv/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/animejs' && cp -R '.skill-downloads/anime-js-javascript-animations-mm78nnuv' '.claude/skills/animejs'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/anime-js-javascript-animations-mm78nnuv'

openskills read 'anime-js-javascript-animations-mm78nnuv'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/anime-js-javascript-animations-mm78nnuv/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills