Communitygithub.com

Anime.js 動畫技能

用於創建複雜、高效能網路動畫的先進 JavaScript 動畫庫技能。

Anime.js 動畫技能 是什麼?

此技能專為使用 Anime.js(一個輕量但極其強大的 JavaScript 動畫引擎)創建高保真、令人驚嘆的網路動畫而設計。它能處理複雜的時間軸、錯開動畫以及對 DOM、CSS 和 SVG 的精確控制,是打造獲獎級互動網站的理想工具。該技能支援各種觸發條件,例如創建多階段登陸頁面編排、為網格、文字或資料視覺化實現錯開動畫、對 SVG 路徑進行動畫處理(形狀變形、繪製動態線條),以及建構能夠流暢回應使用者輸入的高度互動式動態 UI 元素。執行工作流程包括識別目標元素、定義進階緩動函數(如自訂 cubicBezier、spring 或 elastic)以及使用 anime.timeline() 編排複雜動作序列。嚴格規則要求利用錯開動畫增添節奏感,並透過 GPU 加速最佳化效能,確保每個動畫都顯得獨特、流暢且經過精細打磨。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/AbobakrDiara61/railway-system/tree/HEAD/frontend/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.

AbobakrDiara61/railway-system

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

AbobakrDiara61/railway-system

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

AbobakrDiara61/railway-system

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

AbobakrDiara61/railway-system

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.

AbobakrDiara61/railway-system

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

AbobakrDiara61/railway-system

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.

AbobakrDiara61/railway-system

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.

AbobakrDiara61/railway-system

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

AbobakrDiara61/railway-system

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 悬停效果

AbobakrDiara61/railway-system

Best practices for Remotion - Video creation in React

AbobakrDiara61/railway-system

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

AbobakrDiara61/railway-system

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

AbobakrDiara61/railway-system

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.

AbobakrDiara61/railway-system

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

AbobakrDiara61/railway-system

Automate TikTok tasks via Rube MCP (Composio): upload/publish videos, post photos, manage content, and view user profiles/stats. Always search tools first for current schemas.

AbobakrDiara61/railway-system

Video and audio perception, indexing, and editing. Ingest files/URLs/live streams, build visual/spoken indexes, search with timestamps, edit timelines, add overlays/subtitles, generate media, and create real-time alerts.

AbobakrDiara61/railway-system

Upload, stream, search, edit, transcribe, and generate AI video and audio using the VideoDB SDK.

AbobakrDiara61/railway-system

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

AbobakrDiara61/railway-system

Automate YouTube tasks via Rube MCP (Composio): upload videos, manage playlists, search content, get analytics, and handle comments. Always search tools first for current schemas.

AbobakrDiara61/railway-system

Extract transcripts from YouTube videos and generate comprehensive, detailed summaries using intelligent analysis frameworks

相關技能