Communitygithub.com

ASoudy/AGS

進階 JavaScript 動畫函式庫技能,用於建立複雜、高效能的網頁動畫。

AGS 是什麼?

本技能整合了 Anime.js 輕量級但功能強大的 JavaScript 動畫引擎,專為開發者與 AI 代理打造高品質、專業級的網頁動畫。它支援所有主流瀏覽器,並可作用於 DOM、CSS 以及 SVG 元素。此技能的核心在於提供一套標準化的執行工作流程:從識別動畫目標、定義包含進階緩動函數(如 spring、elastic)的屬性,到使用 `anime.timeline()` 編排複雜的動畫時間軸。透過大量運用 `anime.stagger()` 實現有機的節奏感,並嚴格遵守效能最佳化原則(如 GPU 加速),確保動畫既流暢又令人驚豔。適用場景包括多階段登陸頁面、網格揭露、SVG 路徑變形以及互動式 UI 元素。

相容平台~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.

相關技能