技能圖譜SKILLSGROVE
技能圖譜/影片製作/thatrebeccarae/claude-marketing/remotion-video

remotion-video

安裝

$npx skills add https://github.com/thatrebeccarae/claude-marketing --skill remotion-video
$git clone --depth 1 https://github.com/thatrebeccarae/claude-marketing.git /tmp/claude-marketing && mkdir -p ~/.claude/skills && cp -r /tmp/claude-marketing/skills/remotion-video ~/.claude/skills/remotion-video
請幫我安裝這個 Agent Skill:https://github.com/thatrebeccarae/claude-marketing/tree/a8a63ec1341f05ec9c1e9cb52b4edeb14e3bdcba/skills/remotion-video ,先閱讀它的 SKILL.md 和指令碼,確認安全後再安裝到我的技能目錄。

簡介

原文描述 · MITRemotion video production best practices — spring animations, interpolation patterns, SVG draw-on effects, scene transitions, chart animations, audio integration, and rendering. Use when building programmatic videos with Remotion, creating animated content, or producing marketing videos with code.
以下 SKILL.md 內容轉載自 thatrebeccarae/claude-marketing(提交 a8a63ec),依據 MIT 許可證轉載正文(文字未改動;僅省略檔案頭後設資料、將圖片顯示為連結,超長內容會截斷);版權歸 2026 Rebecca Rae Barton 所有。許可證:skills/remotion-video/LICENSE。僅展示說明檔案,附帶指令碼請在原倉庫檢視。

Remotion Video Production

Best practices for building programmatic videos with Remotion — animations, transitions, charts, and rendering.

Install

git clone https://github.com/thatrebeccarae/claude-marketing.git && cp -r claude-marketing/skills/remotion-video ~/.claude/skills/

Core Capabilities

  • Spring animation presets (bouncy, smooth, crisp, staggered)
  • Interpolation patterns (camera zoom, parallax, scroll simulation)
  • SVG draw-on animations (path tracing, stroke reveal)
  • Scene transitions via TransitionSeries
  • AbsoluteFill layering for compositing
  • Chart animations (bar grow, line draw-on, pie reveal, count-up numbers)
  • Audio integration and sync
  • Rendering configuration

Spring Presets

Use spring() from Remotion for physics-based animations:

Preset Config Use Case
Bouncy mass: 0.5, damping: 8, stiffness: 120 Playful reveals, logo bounces
Smooth mass: 1, damping: 15, stiffness: 80 UI transitions, slide-ins
Crisp mass: 0.8, damping: 20, stiffness: 200 Snappy interactions, toggles
Staggered Any preset with frame offset per item List reveals, grid animations
import { spring, useCurrentFrame, useVideoConfig } from "remotion";

const frame = useCurrentFrame();
const { fps } = useVideoConfig();

const scale = spring({
  frame,
  fps,
  config: { mass: 0.5, damping: 8, stiffness: 120 },
});

Interpolation Patterns

Camera Zoom

import { interpolate } from "remotion";

const zoom = interpolate(frame, [0, 30], [1, 1.5], {
  extrapolateRight: "clamp",
});

Parallax Layers

const bgX = interpolate(frame, [0, 100], [0, -50]);
const fgX = interpolate(frame, [0, 100], [0, -150]);

Scroll Simulation

const scrollY = interpolate(frame, [0, 90], [0, -800], {
  extrapolateRight: "clamp",
});

SVG Draw-On

Animate strokeDashoffset to reveal SVG paths:

const pathLength = 500;
const draw = interpolate(frame, [0, 60], [pathLength, 0], {
  extrapolateRight: "clamp",
});

<path
  d="..."
  strokeDasharray={pathLength}
  strokeDashoffset={draw}
/>

Chart Animation Patterns

Pattern Technique
Bar grow Animate height from 0 to target, stagger each bar by 3-5 frames
Line draw-on SVG path with strokeDashoffset animation
Pie/donut reveal Animate conic-gradient stop or SVG arc path
Count-up numbers Interpolate from 0 to target, Math.round() for display

Scene Transitions

import { TransitionSeries, linearTiming } from "@remotion/transitions";
import { fade } from "@remotion/transitions/fade";

<TransitionSeries>
  <TransitionSeries.Sequence durationInFrames={90}>
    <SceneOne />
  </TransitionSeries.Sequence>
  <TransitionSeries.Transition
    timing={linearTiming({ durationInFrames: 15 })}
    presentation={fade()}
  />
  <TransitionSeries.Sequence durationInFrames={90}>
    <SceneTwo />
  </TransitionSeries.Sequence>
</TransitionSeries>

Performance Rules

  1. No useEffect for animations. Use useCurrentFrame() + interpolate().
  2. Memoize static components. React.memo for anything that does not depend on frame.
  3. Preload assets. staticFile() for local, prefetch() for remote URLs.
  4. Keep compositions under 30s for fast render iteration during development.
  5. Test at target resolution (1920x1080 or 1080x1080) before final render.

Anti-Patterns

  • No CSS transition or animation — use Remotion interpolate() and spring()
  • No setTimeout or setInterval — frame-based timing only
  • No absolute pixel positioning for responsive layouts — use AbsoluteFill + flex
  • No inline style objects recreated every frame — extract to constants or useMemo
  • No uncontrolled audio — always set explicit volume and startFrom

For complete code examples and composition templates, see REFERENCE.md.

檢視許可證全文(MIT)
MIT License

Copyright (c) 2026 Rebecca Rae Barton

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.