Перейти к содержанию
Skillpedia
Код в целом48k · #3750

animejs-animation

Что он делает

Этот инструмент создаёт сложные и плавные анимации для сайтов с помощью JavaScript. Он позволяет двигать визуальные элементы, менять их размер или показывать их разными затейливыми способами.

Когда использовать

  • ✓Создание многоэтапных анимаций для лендингов.
  • ✓Появление элементов по очереди (эффект stagger).
  • ✓Анимация векторной графики (SVG) для создания динамичных фигур или линий.

Ссылка на скилл

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

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/animejs-animation/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

📦 Этот скилл входит в наборы

Пример запроса к вашему ИИ

“Создай анимацию для заголовка и главного изображения страницы: сначала заголовок появляется с небольшим смещением, а затем выплывает изображение.”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Вы указываете, какие элементы страницы нужно анимировать и как они должны двигаться (например, снизу вверх или уменьшаясь). Инструмент объединяет эти инструкции и создаёт плавную и управляемую последовательность анимации.

Технический текст (оригинальный SKILL.md)

Оригинальный текст автора на английском, прямо с 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.
Частые вопросы

Что такое «stagger»?

Это эффект, при котором несколько элементов появляются или двигаются один за другим с небольшой задержкой, создавая визуальный ритм.

Что такое «функции плавности» (easing)?

Это функции, которые управляют скоростью анимации во времени, делая движение более natural и менее механическим, как в реальном мире.

Можно ли использовать это на любом сайте?

Да, но лучше всего инструмент подходит для сложных анимаций, которые действительно улучшают дизайн и взаимодействие с сайтом, а не для простых эффектов.

Подробности

Оригинальное описание автора

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

repo: sickn33/agentic-awesome-skills

Популярность

Звёзды на GitHub
48k
Место в рейтинге
#3750
Лицензия
MIT
Обновлён
15.10.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы