Start a fresh conversation. Replace the highlighted placeholders.
Use animejs-animation to implement a polished animation for [UI elements] in [page or component], using an advanced easing and performant transform/opacity motion.
Required inputs
[UI elements]
[page or component]
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗
SKILL.md
name: animejs-animationdescription: Advanced JavaScript animation library skill for creating complex, high-performance web animations.risk: safesource: communitydate_added: "2026-03-07"
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.
Building highly interactive, kinetic UI elements that respond fluidly to user input.
Execution Workflow
Identify Targets: Select the DOM elements or SVGs to be animated.
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.
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.
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.
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.
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.