‹ 首页

animate

@pmkshar · 收录于 1 周前 · 上游提交 1 周前

Generate animated videos and motion graphics from natural language descriptions. Creates a standalone Vite + React project with Framer Motion scenes that auto-play in the browser. Use when the user wants to create animations, motion graphics, video intros, animated presentations, or product demos.

适合你,如果你需要快速将创意转化为动画视频或动态演示

/ 通过 npx 安装 校验哈希
npx oh-my-skill add pmkshar/marqaiskills/animate
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- pmkshar/marqaiskills/animate
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify pmkshar/marqaiskills/animate
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
0GitHub stars
~1.2K上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 d5999f8 · 表述以原文为准
它做什么

装上后,Claude 能根据你的文字描述生成动画视频。它会创建一个独立的网页项目,包含多个动画场景,在浏览器中自动播放。

什么时候触发

当你描述想要制作的动画内容时触发,例如产品介绍、动态演示或片头动画。

装好后可以这样说
Claude 会生成一个包含3个场景的动画项目。
Claude 会使用 p5.js 创建粒子效果。
技能原文 SKILL.md作者撰写 · MIT · d5999f8

Animation Generator

Create animated videos and motion graphics from a natural language description. Outputs a standalone Vite + React + Framer Motion project that plays in the browser.

Workflow
Step 1: Parse the Request

Break the user's description into a scene plan:

  • 3-7 scenes, each 3-5 seconds long
  • Identify the story arc: hero/intro, problem, solution, features, CTA/outro
  • Pick a color palette and typography that fits the brand/mood
  • Use $ARGUMENTS for the user's animation description
Step 2: Choose the Animation Stack

Auto-detect the best approach based on the request:

| Request Type | Stack | When to Use | |---|---|---| | Product intro, presentation, marketing | Framer Motion (default) | Scene-based with text, icons, transitions | | Generative art, particles, patterns | p5.js | Creative/algorithmic visuals | | 3D objects, environments, product renders | Three.js + react-three-fiber | 3D scenes needed | | Simple text/logo animation | CSS animations only | Minimal, no heavy deps |

Default to Framer Motion unless the request clearly needs something else.

Step 3: Scaffold the Project
  1. Create a directory: ~/animations/[project-name]/
  2. Run the scaffold script: bash ~/.marq-ai/skills/animate/scripts/scaffold.sh [project-name] [stack]
  3. Copy template files from ~/.marq-ai/skills/animate/assets/template-files/ into the project
Step 4: Generate Scene Components

Read the references for animation presets and scene patterns:

  • references/animation-presets.md — all available transitions, springs, easings
  • references/scene-patterns.md — example scene code patterns

For each scene, create a React component in client/src/components/video/video_scenes/:

  • Use motion.div with scene transition presets (fadeBlur, scaleFade, slideLeft, splitHorizontal, morphExpand, etc.)
  • Use containerVariants and itemVariants for staggered content reveals
  • Use vw units for responsive sizing (works at any resolution)
  • Use CSS variables for theming (var(--color-accent), var(--color-bg-dark), etc.)
  • Use Lucide icons for visual elements
  • Use .glass-panel class for frosted glass cards
  • Use .text-gradient and .text-gradient-accent for gradient text
Step 5: Generate the VideoTemplate

Create client/src/components/video/VideoTemplate.tsx:

  • Import all scene components
  • Define SCENE_DURATIONS object (scene name -> milliseconds)
  • Use useVideoPlayer hook to manage scene advancement
  • Wrap scenes in AnimatePresence mode="wait" for smooth transitions
  • Each scene renders conditionally based on currentScene index
Step 6: Customize Theme

Update client/src/index.css with the right colors:

  • If the user specified brand colors, update CSS variables
  • Choose fonts that match the mood (Space Grotesk for tech, Playfair Display for elegant, etc.)
  • Update gradient and glow styles to match the palette
Step 7: Gemini 3.1 Pro Enhancement (Optional)

If GEMINI_API_KEY environment variable is available:

  1. Read references/gemini-integration.md for API details
  2. Send the user's description to Gemini 3.1 Pro asking for:
  3. Scene breakdown with descriptions and suggested transitions
  4. Color palette as CSS variables
  5. Copy/headlines for each scene
  6. SVG graphics if applicable
  7. Use the Gemini output to inform scene generation
  8. If no API key, skip this step — Marq AI handles all creative decisions directly
Step 8: Build and Preview
cd ~/animations/[project-name]
npm install
npm run dev

Tell the user the animation is running at http://localhost:5173 and open it in the browser.

Scene Transition Reference (Quick)

Pick transitions that match the story beat:

  • fadeBlur — Soft intro/outro, dreamy reveals
  • scaleFade — Confident reveals, product showcases
  • slideLeft/slideRight — Sequential progression, timeline flow
  • splitHorizontal/splitVertical — Dramatic reveals, before/after
  • morphExpand — Grand finale, CTA screens
  • clipCircle — Focus attention, spotlight effect
  • perspectiveFlip — Card flips, perspective changes
  • wipe — Clean transitions, directional flow
  • zoomThrough — Immersive, forward momentum
  • crossDissolve — Gentle, emotional transitions
Element Animation Reference (Quick)
  • popIn — Bouncy scale entrance for icons/badges
  • fadeUp/fadeDown — Subtle content reveals
  • slideInLeft/slideInRight — Directional content
  • blurIn — Soft focus reveals
  • elasticScale — Playful, energetic entrances
  • perspectiveRotateIn — 3D card reveals
  • pulse — Looping attention grab
  • float — Gentle hovering effect
Important Rules
  1. Always use vw units for sizing so animations look good at any resolution
  2. Keep scenes between 3-5 seconds each — total video 15-30 seconds
  3. Use AnimatePresence mode="wait" so one scene exits before the next enters
  4. Every scene must have a background treatment (gradient, image, or animated shape)
  5. Use staggered animations for lists and grids (staggerChildren: 0.1-0.2)
  6. Include a loading state if assets are heavy
  7. The project must be completely self-contained — no external dependencies beyond npm packages
  8. Do NOT use emojis anywhere in the generated code or content
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。