Communitygithub.com

動畫生成器

從自然語言描述生成動畫影片與動態圖形。建立一個獨立的 Vite + React 專案,其中包含 Framer Motion 場景,可在瀏覽器中自動播放。當使用者想要建立動畫、動態圖形、影片片頭、動態簡報或產品展示時使用。

動畫生成器 是什麼?

這是「OneWave-AI/claude-skills」中的動畫生成技能,能夠根據使用者的自然語言描述,自動產生包含動畫影片或動態圖形的完整 Vite + React + Framer Motion 專案。此技能主要用於產品介紹、行銷展示、動態簡報、片頭動畫等場景,讓開發者或設計師可以快速建立視覺效果豐富的互動式動畫,並直接在瀏覽器中預覽與播放。該技能支援 Framer Motion、p5.js、Three.js (react-three-fiber) 或純 CSS 動畫等多種技術堆疊,會根據需求自動選擇最適合的方案。其工作流程包含解析使用者需求、選擇動畫堆疊、建立專案目錄、生成場景元件、建立 VideoTemplate、客製化主題,以及可選的 Gemini AI 增強(若環境中設定 GEMINI_API_KEY)。最後會自動安裝依賴並啟動開發伺服器,讓使用者能以 http://localhost:5173 預覽動畫。

相容平台✓Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/OneWave-AI/claude-skills/tree/HEAD/animate

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

動畫生成器 是做什麼的?

從自然語言描述建立動畫影片與動態圖形。輸出一個可在瀏覽器中播放的獨立 Vite + React + Framer Motion 專案。

工作流程

步驟 1:解析請求

將使用者的描述拆解為場景計畫:

  • 3-7 個場景,每個持續 3-5 秒
  • 識別故事架構:英雄/開場、問題、解決方案、功能、行動呼籲/結尾
  • 挑選符合品牌/氛圍的色彩調色板與字型
  • 使用 $ARGUMENTS 取得使用者的動畫描述

步驟 2:選擇動畫堆疊

根據請求自動偵測最佳方式:

請求類型堆疊使用時機
產品介紹、簡報、行銷Framer Motion(預設)以文字、圖示、轉場為主的場景式動畫
生成式藝術、粒子、圖案p5.js創意/演算法視覺效果
3D 物件、環境、產品渲染Three.js + react-three-fiber需要 3D 場景
簡單文字/標誌動畫純 CSS 動畫輕量、無需複雜依賴

預設使用 Framer Motion,除非請求明確需要其他方案。

步驟 3:建立專案架構

  1. 建立目錄:~/animations/[專案名稱]/
  2. 執行腳本:bash ~/.claude/skills/animate/scripts/scaffold.sh [專案名稱] [堆疊]
  3. 從 ~/.claude/skills/animate/assets/template-files/ 複製範本檔案到專案中

步驟 4:生成場景元件

參閱動畫預設與場景模式的參考文件:

  • references/animation-presets.md — 所有可用的轉場、彈簧、緩動函式
  • references/scene-patterns.md — 範例場景程式碼模式

對每個場景,在 client/src/components/video/video_scenes/ 中建立 React 元件:

  • 使用 motion.div 搭配場景轉場預設(fadeBlur、scaleFade、slideLeft、splitHorizontal、morphExpand 等)
  • 使用 containerVariants 和 itemVariants 實現錯開內容顯示效果
  • 使用 vw 單位確保響應式尺寸(可在任何解析度下正常運作)
  • 使用 CSS 變數進行主題設定(var(--color-accent)、var(--color-bg-dark) 等)
  • 使用 Lucide 圖示作為視覺元素
  • 使用 .glass-panel 類別實現毛玻璃卡片效果
  • 使用 .text-gradient 和 .text-gradient-accent 實現漸層文字效果

步驟 5:生成 VideoTemplate

建立 client/src/components/video/VideoTemplate.tsx:

  • 匯入所有場景元件
  • 定義 SCENE_DURATIONS 物件(場景名稱 -> 毫秒)
  • 使用 useVideoPlayer 鉤子管理場景推進
  • 使用 AnimatePresence mode="wait" 包裹場景以實現平滑轉場
  • 每個場景根據 currentScene 索引條件式渲染

步驟 6:客製化主題

更新 client/src/index.css 中的顏色:

  • 如果使用者指定了品牌顏色,更新 CSS 變數
  • 選擇符合氛圍的字型(科技感用 Space Grotesk,優雅風格用 Playfair Display 等)
  • 根據調色板更新漸層與光暈樣式

步驟 7:Gemini 3.1 Pro 增強(可選)

如果環境變數 GEMINI_API_KEY 可用:

  1. 閱讀 references/gemini-integration.md 以取得 API 細節
  2. 將使用者的描述發送給 Gemini 3.1 Pro,要求其提供:
    • 場景分解,包含描述與建議轉場方式
    • 以 CSS 變數表示的色彩調色板
    • 每個場景的文案/標題
    • 適用的 SVG 圖形
  3. 使用 Gemini 輸出輔助場景生成
  4. 如果沒有 API 金鑰,則跳過此步驟 — Claude 直接處理所有創意決策

步驟 8:建置與預覽

cd ~/animations/[專案名稱]
npm install
npm run dev

告知使用者動畫正在 http://localhost:5173 執行,並在瀏覽器中開啟。

場景轉場參考(快速查詢)

根據故事節奏選擇轉場方式:

  • fadeBlur — 柔和的開場/結尾,夢幻般的揭示
  • scaleFade — 自信的揭示,產品展示
  • slideLeft/slideRight — 序列式推進,時間軸流動
  • splitHorizontal/splitVertical — 戲劇性的揭示,前後對比
  • morphExpand — 華麗結尾,行動呼籲畫面
  • clipCircle — 聚焦注意力,聚光燈效果
  • perspectiveFlip — 卡片翻轉,視角變化
  • wipe — 乾淨的轉場,方向性流動
  • zoomThrough — 沉浸式,前進動感
  • crossDissolve — 柔和、情感化的轉場

元素動畫參考(快速查詢)

  • popIn — 圖示/徽章的彈跳縮放入場效果
  • fadeUp/fadeDown — 隱晦的內容揭示
  • slideInLeft/slideInRight — 方向性內容
  • blurIn — 柔和的焦點揭示
  • elasticScale — 俏皮、充滿活力的入場效果
  • perspectiveRotateIn — 3D 卡片揭示
  • pulse — 循環吸引注意
  • float — 輕柔懸浮效果

重要規則

  1. 一律使用 vw 單位設定尺寸,讓動畫在任何解析度下都能正常顯示
  2. 每個場景持續 3-5 秒 — 總影片長度 15-30 秒
  3. 使用 AnimatePresence mode="wait",確保一個場景結束後下一個再進入
  4. 每個場景都必須有背景處理(漸層、圖片或動態形狀)
  5. 對列表和網格使用錯開動畫(staggerChildren: 0.1-0.2)
  6. 如果素材較大,包含載入狀態
  7. 專案必須完全自足 — 除 npm 套件外不得有任何外部依賴
  8. 在生成的程式碼或內容中不要使用任何表情符號

Individual skills in this repo

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

OneWave-AI/claude-skills

Deploy a 2-layer parallel agent hierarchy for large, parallelizable work — big refactors, multi-file migrations, codebase-wide audits, bulk generation. A top-tier commander (Fable or Opus) orchestrates the swarms; the user picks a power level (Max Power / Heavy / Balanced / Economy) that sets the Opus/Sonnet/Haiku model mix per layer. Layer 1 is 3-50+ specialist agents, each with its own full context window; Layer 2 is 2+ sub-agents per member. Includes git safety, tiered sizing, a pre-deploy gate, phantom-completion checks, and multi-wave follow-up.

OneWave-AI/claude-skills

Use before starting a product, feature, MVP, agent, automation, or integration build to identify the main pre-build risk and choose the smallest validation step. Trigger when the user asks whether to build, scope, validate, prioritize, or sanity-check an idea before implementation.

OneWave-AI/claude-skills

Post-mortem analysis when a client churns. Takes client history, engagement data, support tickets, usage logs, and exit feedback to produce a comprehensive churn autopsy with root cause classification, timeline of decline, and preventive measures.

OneWave-AI/claude-skills

Compose a premium, animated landing page section by section in Next.js + Tailwind + Motion (Framer Motion) — built on a real design system, with editorial copy and motion that feels human-crafted, not template-generated. Use when building or rebuilding a landing page, marketing site, or hero/feature/pricing/CTA sections that need to look production-ready and bespoke from day one.

OneWave-AI/claude-skills

Assemble 2-3 complementary experts to collaboratively analyze anything. Experts work together to explore topics from multiple expert angles.

OneWave-AI/claude-skills

Convert any topic into playable browser games. Types: trivia, matching, word puzzles, adventure games. Uses Phaser.js or Kaboom.js.

OneWave-AI/claude-skills

Turn a marketing brief or product offer into a finished short-form video ad built in HyperFrames — hook, script, shot-by-shot storyboard, scene-by-scene HTML composition, captions, and voiceover. Outputs platform cuts (vertical 9:16, square, 16:9). Use when you need a launch ad, product promo, social video, or paid-creative concept ready to render.

OneWave-AI/claude-skills

Turn a website URL, product docs, or a founder's rambling description into a tight 60-90 second explainer video built in HyperFrames -- problem/solution narrative, animated product walkthrough scenes, captions, and voiceover, ready for the homepage hero, sales emails, and onboarding.

OneWave-AI/claude-skills

Build promo videos for local businesses in HyperFrames -- the new-menu drop, the seasonal offer, the event announcement, the "we're hiring" post, the Google Business Profile clip. Restaurant, salon, gym, trades: 15-30 seconds, brand-clean, captioned, sized for Instagram, Facebook, and the profile.

OneWave-AI/claude-skills

Build a personalized product-demo or sales-walkthrough video in HyperFrames for a specific prospect or account — narrated screen-by-screen, branded to them, ending in a clear next step. Turns a generic demo into a "this was made for me" asset for outbound, follow-up, or deal acceleration. Use when you want to send a tailored video instead of booking another live call.

OneWave-AI/claude-skills

Turn real customer reviews, quotes, and case-study results into polished social-proof videos built in HyperFrames -- single-testimonial spotlights, review-wall montages, and stat-driven proof reels with captions and voiceover, cut for vertical, square, and wide. The highest-converting content most businesses never make.

OneWave-AI/claude-skills

Audit a codebase for LLM calls that are really classifications in disguise, then produce a costed swap plan for a System One model. Use when asked to cut AI inference cost or latency, when scoping a performance engagement for a client, when reviewing an agent loop that feels slow, or when asked "where could we use Jev here". Produces a ranked table of candidates with measured latency and dollar deltas.

OneWave-AI/claude-skills

Build and run a labelled eval set for a System One model (Jev, Von, or any typed-decision config), then sweep criteria wordings and thresholds against it. Use when a Jev/Von classification is wrong or unreliable, when choosing between the hosted API and a local open model, when tuning noul thresholds, or before shipping any typed-decision feature. Produces an accuracy-by-wording matrix and a calibrated threshold.

OneWave-AI/claude-skills

Wire a System One model (Jev, or an open reproduction like Von) into a product feature — routing, guardrails, scoring, classification. Use when replacing an LLM call that returns a label rather than prose, when adding a typed decision to an agent loop, or when deciding between the hosted Jev API and a local open model. Covers question design, the eval-set-first workflow, threshold calibration, confidence gates, and the traps measured on real data.

OneWave-AI/claude-skills

Optimize landing pages for conversions, performance, and SEO. Use when improving landing pages, increasing conversions, or optimizing page performance.

OneWave-AI/claude-skills

TAM/SAM/SOM calculator with deep market research. Produces comprehensive market-sizing.md with top-down and bottom-up estimates, methodology, data sources, assumptions, sensitivity ranges, growth projections, competitive landscape, and Mermaid visualizations. Use when user needs market size estimates, addressable market analysis, go-to-market sizing, investor-ready market analysis, or business plan market validation.

OneWave-AI/claude-skills

Generate unique personalized first lines for hundreds of prospects using company news, LinkedIn activity, and mutual connections. Saves 10+ hours of manual research per campaign. Use when you need personalized outreach at volume.

OneWave-AI/claude-skills

Review investment portfolios for risk, diversification, fees. Asset allocation recommendations, tax-loss harvesting, rebalancing.

OneWave-AI/claude-skills

Create multiple choice, true/false, fill-in-blank, matching quizzes. Auto-generate plausible distractors. Instant grading with explanations.

OneWave-AI/claude-skills

Enhanced skill navigator that maps conversation history, recommends multi-skill chains, identifies patterns from past usage, and learns from session outcomes. Goes beyond basic scout with deep context analysis and workflow orchestration.

相關技能