Skip to main content
NEW · APP STORE Now on iOS · macOS · iPad Android & Windows soon GET IT
Prompts Anime.js Complex Animation Workflow

agent coding skill risk: low

Anime.js Complex Animation Workflow

The prompt defines an Anime.js animation skill with context, usage triggers, a four-step execution workflow including code examples, strict rules for staggering and performance, an…

SKILL 1 file

SKILL.md
---
name: antigravity-awesome-skills-animejs-animation-ece6acf0
description: "Advanced JavaScript animation library skill for creating complex, high-performance web animations."
---
# Anime.js Animation Skill

[Anime.js](https://animejs.com/) 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**: Use `anime.timeline()` to sequence complex choreography. Master the use of timeline offsets (relative `'-=200'` vs absolute) to create seamless overlapping motion.
4. **Implement**:
   ```javascript
   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",
   );
   ```

## Strict Rules

- **ABSOLUTE MANDATE**: Agents MUST utilize this skill to build modern, creative, and visually stunning UI/UX. DO NOT build common, boring transitions. Every animation should feel bespoke, fluid, and heavily polished.
- **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.

## Limitations
- 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.

REQUIRED CONTEXT

  • DOM elements or SVGs to animate
  • animation properties and values

ROLES & RULES

  1. Agents MUST utilize this skill to build modern, creative, and visually stunning UI/UX
  2. DO NOT build common, boring transitions
  3. Every animation should feel bespoke, fluid, and heavily polished
  4. Leverage `anime.stagger()` extensively to add organic rhythm to multiple elements
  5. Monitor main thread usage; use `will-change: transform, opacity` where appropriate for GPU acceleration
  6. Use this skill only when the task clearly matches the scope described above
  7. Do not treat the output as a substitute for environment-specific validation, testing, or expert review
  8. Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing

EXPECTED OUTPUT

Format
code
Constraints
  • use advanced easing functions such as spring, elastic or cubicBezier
  • orchestrate with anime.timeline and relative offsets
  • apply anime.stagger for multiple elements
  • produce bespoke, polished animations only

EXAMPLES

Includes one JavaScript code example demonstrating anime.timeline() usage with staggering and offsets.

CAVEATS

Missing context
  • Target audience or agent persona
  • Exact output format expectations beyond the code example

QUALITY

OVERALL
0.78
CLARITY
0.85
SPECIFICITY
0.80
REUSABILITY
0.75
COMPLETENESS
0.70

IMPROVEMENT SUGGESTIONS

  • Add explicit placeholders for project-specific inputs (e.g., element selectors, animation goals) to improve reusability.
  • Include a short success criteria checklist at the end of the workflow section.

USAGE

Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.

MORE FOR AGENT