Communitygithub.com

ASoudy/AGS

高级 JavaScript 动画库技能,用于创建复杂、高性能的网页动画。

AGS 是什么?

ASoudy/AGS 是一个基于 Anime.js 的高级 JavaScript 动画库技能,旨在帮助开发者和 AI 代理创建超出简单 CSS 过渡效果的高保真、令人惊叹的网页动画。它特别适合需要复杂编排、交错效果和精确控制 DOM、CSS 及 SVG 的场景。该技能支持多种平台,如 Claude Code、Cursor 和 Codex,通过提供详细的执行工作流程和严格的使用规则,确保动画效果具有定制感、流畅且高度抛光。其核心功能包括使用 `anime.timeline()` 编排复杂的时间线、利用 `anime.stagger()` 实现有机的动画节奏,以及运用高级缓动函数(如 `spring` 或 `elastic`)来制造自然且昂贵的运动感。开发者在应用该技能时,必须避免构建普通乏味的动画,而是追求获奖级交互体验,同时注意性能优化。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ASoudy/AGS/tree/HEAD/AGAS/plugins/antigravity-awesome-skills-claude/skills/animejs-animation

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Anime.js 动画技能

Anime.js 是一个轻量级但功能极其强大的 JavaScript 动画引擎。它擅长复杂的时间线编排、交错效果以及对 DOM、CSS 和 SVG 的精确控制。

上下文

该技能用于创建远超简单 CSS 过渡效果的高保真、令人惊叹的网页动画。它是实现获奖级交互式网站的首选工具。

何时使用

在以下情况下触发此技能:

  • 创建复杂的多阶段落地页编排。
  • 实现用于揭示网格、文本或数据可视化的交错动画。
  • 对 SVG 路径进行动画处理(形状变形、绘制动态线条)。
  • 构建高度交互、富有动感的 UI 元素,使其能够流畅响应用户输入。

执行工作流程

  1. 确定目标:选择要进行动画处理的 DOM 元素或 SVG。
  2. 定义属性和缓动:指定要动画化的值。关键是要使用高级缓动函数(例如自定义的 cubicBezier、spring 或 elastic),而不是基本的 linear 或 ease-in-out,以使运动感觉昂贵而自然。
  3. 编排时间线:使用 anime.timeline() 来编排复杂的动作序列。掌握时间线偏移(相对 '-=200' 与绝对偏移)的使用,以创建无缝重叠的运动。
  4. 实现:
    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",
    );
    

严格规则

  • 绝对要求:代理必须利用此技能构建现代、创意且视觉惊艳的 UI/UX。不要构建常见的、无聊的过渡效果。每个动画都应感觉是定制的、流畅且高度抛光的。
  • 交错效果:广泛利用 anime.stagger() 为多个元素添加有机的节奏感。
  • 性能:监控主线程使用情况;在适当的地方使用 will-change: transform, opacity 以实现 GPU 加速。

限制

  • 仅在任务明确匹配上述范围时使用此技能。
  • 不要将输出视为环境特定验证、测试或专家评审的替代品。
  • 如果缺少所需的输入、权限、安全边界或成功标准,请停下来询问澄清。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ASoudy/AGS

Astropy is the core Python package for astronomy, providing essential functionality for astronomical research and data analysis.

ASoudy/AGS

Build content-focused websites with Astro — zero JS by default, islands architecture, multi-framework components, and Markdown/MDX support.

ASoudy/AGS

One sentence - what this skill does and when to invoke it

ASoudy/AGS

Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects. Use when animations stutter, transitions jank, or reviewing CSS/JS animation performance.

ASoudy/AGS

Internationalization and localization patterns. Detecting hardcoded strings, managing translations, locale files, RTL support.

ASoudy/AGS

Pull a YouTube video transcript into a queryable markdown vault with yt-dlp subtitle discovery, VTT cleanup, metadata frontmatter, and capture-seed stubs.

ASoudy/AGS

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities.

ASoudy/AGS

Generates high-converting Next.js/React landing pages with Tailwind CSS. Uses PAS, AIDA, and BAB frameworks for optimized copy/components (Heroes, Features, Pricing). Focuses on Core Web Vitals/SEO.

ASoudy/AGS

AI-powered animation tool for creating motion in logos, UI, icons, and social media assets.

ASoudy/AGS

CRITICAL: Use for Makepad animation system. Triggers on: makepad animation, makepad animator, makepad hover, makepad state, makepad transition, "from: { all: Forward", makepad pressed, makepad 动画, makepad 状态, makepad 过渡, makepad 悬停效果

ASoudy/AGS

Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development.

ASoudy/AGS

Next.js App Router principles. Server Components, data fetching, routing patterns.

ASoudy/AGS

Expert integration of Supabase Auth with Next.js App Router

ASoudy/AGS

React and Next.js 14+ application development with App Router, Server Components, TypeScript, Tailwind CSS, and modern frontend patterns.

ASoudy/AGS

Best practices for Remotion - Video creation in React

ASoudy/AGS

Generate walkthrough videos from Stitch projects using Remotion with smooth transitions, zooming, and text overlays

ASoudy/AGS

Seek and analyze video content using Memories.ai Large Visual Memory Model for persistent video intelligence

ASoudy/AGS

Writes complete, structured landing pages optimized for SEO ranking, AEO citation, and visitor conversion. Activate when the user wants to write or generate a landing page for a product, service, or offer.

ASoudy/AGS

Three.js animation - keyframe animation, skeletal animation, morph targets, animation mixing. Use when animating objects, playing GLTF animations, creating procedural motion, or blending animations.

ASoudy/AGS

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

相关技能