New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Programmatic video creation in React with Remotion, covering animation, audio-synced tutorials, and 3D scenes.

skills.sh installs
1.1K
GitHub stars
480
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers Remotion Composition setup, frame-driven animation with interpolate() and spring(), and <Sequence> timeline layout
  • Includes a scene-driven tutorial architecture where audioConfig.ts sets each scene's duration from its TTS audio file
  • Integrates MiniMax TTS (api.minimax.io or api.minimaxi.com) and Edge TTS (zh-CN-YunyangNeural) with generator scripts in scripts/
  • Designed for batch-generated, data-driven, tutorial, and 3D product videos built by developers working in React

Install

$ npx -y skills add wshuyi/remotion-video-skill --skill remotion-video -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Remotion Video

用 React 以编程方式创建 MP4 视频的框架。

核心概念

  1. Composition - 视频的定义(尺寸、帧率、时长)
  2. useCurrentFrame() - 获取当前帧号,驱动动画
  3. interpolate() - 将帧号映射到任意值(位置、透明度等)
  4. spring() - 物理动画效果
  5. - 时间轴上排列组件

快速开始

创建新项目

npx create-video@latest

选择模板后:

cd <project-name>
npm run dev  # 启动 Remotion Studio 预览

项目结构

my-video/
├── src/
│   ├── Root.tsx           # 注册所有 Composition
│   ├── HelloWorld.tsx     # 视频组件
│   └── index.ts           # 入口
├── public/                # 静态资源(音频、图片)
├── remotion.config.ts     # 配置文件
└── package.json

基础组件示例

最小视频组件

import { AbsoluteFill, useCurrentFrame, useVideoConfig } from "remotion";

export const MyVideo = () => {
  const frame = useCurrentFrame();
  const { fps, durationInFrames } = useVideoConfig();

  return (
    <AbsoluteFill style={{ backgroundColor: "white", justifyContent: "center", alignItems: "center" }}>
      <h1 style={{ fontSize: 100 }}>Frame {frame}</h1>
    </AbsoluteFill>
  );
};

注册 Composition

// Root.tsx
import { Composition } from "remotion";
import { MyVideo } from "./MyVideo";

Details

Repository
github.com/wshuyi/remotion-video-skill
Categories
Animation & Motion, Video & Audio Editing, Frontend & UI Code
First seen
Apr 16, 2026

Similar to Remotion Video

More Animation & Motion