Skip to content
Skillpedia
General coding48k · #3750

animejs-animation

What it does

This tool creates complex and fluid animations for websites using JavaScript code. It allows visual elements to move, change size, or appear in elaborate ways.

When to use it

  • ✓Creating multi-stage landing page animations.
  • ✓Making elements appear in sequence (stagger effect).
  • ✓Animating vector graphics (SVG) to create dynamic shapes or lines.

Skill link

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/animejs-animation/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/animejs-animation/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

📦 This skill is in these packs

Example of what to ask your AI

“Create an animation for the title and main image of a page, where the title appears first with a slight movement, and then the image emerges.”

5 new skills a week. 1 minute to read.

animejs-animation: full guide

Plain CSS transitions handle a button hover well. They struggle when you want a title, an image and a list of cards to move in a planned order, with overlaps and a natural feel. Writing that by hand means a lot of timing code that is easy to get wrong.

This skill teaches your agent to use Anime.js for that job. It tells the agent to pick the elements first, choose easing such as spring or elastic instead of plain linear motion, and sequence the steps on a timeline. It also tells the agent to check which Anime.js version you have installed, because version 3 and version 4 use different code. It suits front-end developers and designers who work with an agent and want a polished landing page or interactive section.

Use cases

Landing page hero sequence

You have a hero section with a headline, a subtitle and a product image. You want the text to slide up first and the image to fade in while the text is still moving. The skill uses a timeline with an overlapping offset like '-=800'.

Revealing a grid of cards

A pricing page has six plan cards. Instead of all six appearing at once, each one enters 100 milliseconds after the previous one. The agent uses the stagger helper so the grid appears with a clear rhythm.

Drawing an SVG line

Your logo or an infographic is an SVG. You want its outline to draw itself, or one shape to turn smoothly into another. The skill covers animating SVG paths, so the agent can write the code and tie it to the right elements.

Step by step

  1. 1Install the skill in ~/.claude/skills/animejs-animation/ (or your project's .claude/skills/ folder).
  2. 2Check that Anime.js is installed in your project and note its major version. If you are unsure, ask the agent to look at package.json first.
  3. 3Tell the agent which elements to animate, using their class names or IDs, and the order you want them to appear in.
  4. 4Ask for the code, then run your page and confirm the selectors match real elements. They must exist in the rendered page.
  5. 5Ask for adjustments to timing, overlap or easing until the motion feels right, and have the agent add a static version for people who reduce motion.

Example

What to ask

“My page uses Anime.js v3. Animate three .feature-card elements so they rise 40px and fade in one after another, starting after the .section-title has appeared. Respect reduced motion.”

What you get

The agent returns a short script with a timeline. The title fades in first, then the three cards enter with a 100 ms stagger and a spring easing, overlapping slightly with the title. It also adds a check that skips the motion and shows the final state when reduced motion is on.

Tips

  • ✓Say your Anime.js version. The skill's code is written for v3, and v4 uses a different API (createTimeline). Mixed code will not run.
  • ✓Do not add motion everywhere. The skill itself says to respect your existing design system, and a static state is a valid choice.
  • ✓Always ask for a reduced-motion fallback, and for animations to be cleaned up when a component is removed. Test the real frame rate rather than trusting will-change.

Alternatives

  • benchmark-optimization-loop

    Pick it when the animation already works but runs slowly, and you want measured tests of several versions to find the fastest.

  • code-review

    Pick it after the animation code is written, to check the changes against your repo's coding standards before merging.

  • karpathy-guidelines

    Pick it when you want the agent to keep animation code simple and easy to verify, rather than to choose a library.

Questions and answers

Do I need to know JavaScript to use this skill?

Not to start. You describe the motion in plain words and the agent writes the code. You still need to place the script in your page and check that the element names match.

Why does the agent ask about my Anime.js version?

Version 3 and version 4 have different commands, so code for one will fail on the other. The skill tells the agent to check the installed version before writing anything.

How do I make animations safe for people who dislike motion?

Ask the agent to respect the prefers-reduced-motion setting. It should show the final state with no movement, avoid scroll hijacking, and keep buttons and keyboard use working immediately.

How it works

You specify which page elements should be animated and how they should move (e.g., from bottom to top, shrinking). The tool combines these instructions to create a smooth and controlled animation sequence.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Anime.js Animation Skill

Anime.js is a lightweight but extremely powerful JavaScript animation engine. It excels at complex timelines, staggering, and precise control over DOM, CSS, and SVGs.

Context

This skill is used for creating high-fidelity, jaw-dropping web animations that go far beyond simple CSS transitions. It's the tool of choice for awards-caliber interactive sites.

When to Use

Trigger this skill when:

  • Creating complex, multi-stage landing page orchestrations.
  • Implementing staggered animations for revealing grids, text, or data visualizations.
  • Animating SVG paths (morphing shapes, drawing dynamic lines).
  • Building highly interactive, kinetic UI elements that respond fluidly to user input.

Execution Workflow

  1. Identify Targets: Select the DOM elements or SVGs to be animated.

  2. Define Properties & Easing: Specify values to animate. Crucially, utilize advanced easing functions (e.g., custom cubicBezier, spring, or elastic) instead of basic linear or ease-in-out to make the motion feel expensive and natural.

  3. Orchestrate Timelines: Inspect the installed major version first. This example targets Anime.js v3; use anime.timeline() to sequence complex choreography. Master the use of timeline offsets (relative '-=200' vs absolute) to create seamless overlapping motion.

  4. Implement: For a bundler with Anime.js v3 installed, import anime from "animejs"; supplies the anime binding. The selectors must exist in the rendered DOM.

    const tl = anime.timeline({
      easing: "spring(1, 80, 10, 0)",
      duration: 1000,
    });
    tl.add({
      targets: ".hero-text",
      translateY: [50, 0],
      opacity: [0, 1],
      delay: anime.stagger(100),
    }).add(
      { targets: ".hero-image", scale: [0.9, 1], opacity: [0, 1] },
      "-=800",
    );
    

Motion and Compatibility

  • Scope: Use motion when it serves the product brief and user task. Respect the existing design system; simple transitions and static states are valid choices.
  • Staggering: Leverage anime.stagger() extensively to add organic rhythm to multiple elements.
  • Performance: Monitor main thread usage; use will-change: transform, opacity where appropriate for GPU acceleration.

Example

User request:

Create complex, multi-stage landing page orchestrations.

Limitations

  • The code above uses the v3 API. Anime.js v4 uses imported createTimeline() and a different target/parameter signature; do not mix major-version examples. Consult official timeline documentation for the installed version.
  • Respect prefers-reduced-motion: provide a static final state, avoid scroll hijacking, and keep focus/keyboard interactions immediately usable. Dispose animations when their component unmounts.
  • will-change is a temporary optimization hint, not a guarantee of GPU acceleration; measure real frames and avoid leaving it on every element.
  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
FAQ

What is 'stagger'?

It's an effect that makes multiple elements appear or move one after another, with a small delay between each, creating a visual rhythm.

What are 'easing functions'?

These are functions that control the speed of an animation over time, making the movement more natural and less robotic, like real-world motion.

Can I use this on any website?

Yes, but it's best suited for elaborate animations that truly add value to the design and user experience, not for simple animations.

Details

Original description by the author

Advanced JavaScript animation library skill for creating complex, high-performance web animations.

repo: sickn33/agentic-awesome-skills

Popularity

GitHub stars
48k
Ranking position
#3750
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills