Communitygithub.com

BEKO2210/Firstbrain

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

Firstbrain 是什麼?

這個技能專門用於建立高傳真度、令人驚豔的網頁動畫,遠超過簡單的 CSS 過渡效果。它基於 Anime.js,這是一個輕量但極其強大的 JavaScript 動畫引擎,擅長處理複雜時間軸、交錯效果以及 DOM、CSS 和 SVG 的精確控制。該技能能幫助你創建獎項級別的互動網站,例如複雜的多階段登陸頁面編排、用於揭示網格、文字或資料視覺化的交錯動畫、SVG 路徑動畫(形狀變形、繪製動態線條),以及對使用者輸入做出流暢響應的高度互動動態 UI 元素。平台支援涵蓋任何能執行 JavaScript 的現代瀏覽器環境(如 VS Code、Cursor),透過明確的執行工作流程(識別目標、定義屬性與緩動函數、編排時間軸)及嚴格的品質要求(避免單調過渡、善用交錯、注重效能),確保每個動畫都顯得獨特、流暢且經過高度打磨。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/BEKO2210/Firstbrain/tree/HEAD/03%20-%20Resources/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] },
      "-=\n800"
    );
    

嚴格規則

  • 絕對強制:代理必須使用此技能來建立現代、有創意且視覺上令人驚豔的 UI/UX。不得建立普通、無聊的過渡效果。每個動畫都應顯得獨特、流暢且經過高度打磨。
  • 交錯:廣泛運用 anime.stagger() 為多個元素增添有機節奏感。
  • 效能:監控主執行緒的使用情況;在適當處使用 will-change: transform, opacity 以啟用 GPU 加速。

連結

  • 領域: [[Design & Kreativitaet]]
  • 類別: [[3D & Animation]]
  • 導航: [[Skills Uebersicht]], [[Home]]

Individual skills in this repo

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

BEKO2210/Firstbrain

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

BEKO2210/Firstbrain

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

BEKO2210/Firstbrain

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.

BEKO2210/Firstbrain

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

BEKO2210/Firstbrain

Expert in building portfolios that actually land jobs and clients -

BEKO2210/Firstbrain

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.

BEKO2210/Firstbrain

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

BEKO2210/Firstbrain

Best practices for Remotion - Video creation in React

BEKO2210/Firstbrain

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

BEKO2210/Firstbrain

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

BEKO2210/Firstbrain

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.

BEKO2210/Firstbrain

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

BEKO2210/Firstbrain

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.

BEKO2210/Firstbrain

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.

BEKO2210/Firstbrain

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

BEKO2210/Firstbrain

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

BEKO2210/Firstbrain

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.

BEKO2210/Firstbrain

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

相關技能