Animejs animate

From bidewio/better-openclaw · View interactive version

Animejs animate is an AI agent skill from the GitHub repository bidewio/better-openclaw. Comprehensive guide to using Anime.js v4 for JavaScript-driven web animations — timelines, SVG animations, scroll effects, draggable interactions, and stagger patterns.

How to use this skill

Skill file

Anime.js v4 — Web Animation Skill

When to use

Key APIs

Basic animation

import anime from "animejs";

anime({
  targets: ".element",
  translateX: 250,
  opacity: [0, 1],
  duration: 800,
  easing: "easeOutExpo",
});

Timeline

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

anime({
  targets: ".grid-item",
  scale: [0.5, 1],
  opacity: [0, 1],
  delay: anime.stagger(100, { grid: [4, 4], from: "center" }),
});

SVG path animation

anime({
  targets: "path",
  strokeDashoffset: [anime.setDashoffset, 0],
  duration: 2000,
  easing: "easeInOutSine",
});

v4 changes from v3

Performance tips

Common pitfalls

Tips for AI Agents

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.