Communitygithub.com

Remotion 模板 — 预构建的视频特效与动画

为 Remotion 提供可复制粘贴的视频组件,包括开场、文字特效、转场和完整场景模板,类似于 shadcn/ui 但针对视频领域。

Remotion 模板 — 预构建的视频特效与动画 是什么?

该工具集为 Remotion 视频编辑框架提供了一系列可复制粘贴的 React 组件,涵盖文字特效、转场、开/片尾、背景和 UI 模拟等类别,旨在简化视频特效的开发流程。它采用类似于 shadcn/ui 的理念,用户直接复制组件代码到自己的项目中,而非通过 npm 安装,从而便于深度定制。支持 TypeScript/React 生态,兼容所有 Remotion 项目,并提供了丰富的示例代码和最佳实践指南。当前托管在 GitHub 仓库 `reactvideoeditor/remotion-templates`(77+ 星标)及配套组件库 `reactvideoeditor/clippkit`,用户可快速克隆并使用。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ever-just/agentskills/tree/HEAD/skills/remotion-templates

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Remotion 模板 — 预构建的视频特效与动画 是做什么的?

为 Remotion 提供可复制粘贴的视频组件。开场、文字特效、转场和完整场景模板。类似于 shadcn/ui 但针对视频领域。

概述

  • 仓库: github.com/reactvideoeditor/remotion-templates (77+ 星标)
  • 组件库: github.com/reactvideoeditor/clippkit
  • 语言: TypeScript / React
  • 许可: 开源
  • 安装方式: 将组件复制到你的 Remotion 项目中

使用方法

模板是你复制到项目中的 React 组件:

# 克隆模板仓库
git clone https://github.com/reactvideoeditor/remotion-templates.git

# 将所需的组件复制到你的项目中
cp remotion-templates/src/components/TextReveal.tsx my-video/src/components/

可用特效分类

文字特效

  • 打字机 — 逐字显示动画
  • 文字揭示 — 文字随透明度淡入向上滑入
  • 动态排版 — 带弹跳动画的大标题
  • 分裂文字 — 字符逐个错开动画
  • 故障文字 — 数字故障效果
  • 渐变文字 — 文字颜色渐变动画

转场

  • 淡入淡出 — 简单的不透明度交叉溶解
  • 滑动 — 方向性滑动(左、右、上、下)
  • 擦除 — 方向性擦除揭示
  • 缩放 — 基于缩放的转场
  • 变形 — 场景间形状变形
  • 故障 — 数字故障转场

开场/片尾

  • 标志揭示 — 动画标志进入
  • 标题卡片 — 带副标题的居中标题
  • 下方三分之一 — 姓名/标题栏动画
  • 结束画面 — 带社交链接的行动号召

背景

  • 渐变 — 动画色彩渐变
  • 粒子 — 浮动粒子系统
  • 网格 — 动画网格图案
  • 噪点 — 柏林噪点纹理
  • 散景 — 虚化光斑

UI 模拟

  • 浏览器窗口 — Chrome 风格的浏览器框架
  • 手机模拟 — iPhone/Android 框架
  • 代码编辑器 — VS Code 风格代码显示
  • 终端 — 带打字效果的终端窗口

示例:使用文字揭示组件

import { useCurrentFrame, useVideoConfig, interpolate, spring } from "remotion";

export const TextReveal: React.FC<{ text: string; delay?: number }> = ({
  text,
  delay = 0,
}) => {
  const frame = useCurrentFrame();
  const { fps } = useVideoConfig();

  const words = text.split(" ");

  return (
    <div style={{ display: "flex", flexWrap: "wrap", gap: 8, overflow: "hidden" }}>
      {words.map((word, i) => {
        const wordDelay = delay + i * 4;
        const y = interpolate(frame, [wordDelay, wordDelay + 15], [40, 0], {
          extrapolateLeft: "clamp",
          extrapolateRight: "clamp",
        });
        const opacity = interpolate(frame, [wordDelay, wordDelay + 10], [0, 1], {
          extrapolateLeft: "clamp",
          extrapolateRight: "clamp",
        });
        return (
          <span key={i} style={{ opacity, transform: `translateY(${y}px)`, display: "inline-block" }}>
            {word}
          </span>
        );
      })}
    </div>
  );
};

示例:浏览器模拟组件

export const BrowserMockup: React.FC<{
  url: string;
  children: React.ReactNode;
}> = ({ url, children }) => {
  return (
    <div style={{
      borderRadius: 12,
      overflow: "hidden",
      boxShadow: "0 20px 60px rgba(0,0,0,0.3)",
      background: "#1a1a2e",
    }}>
      {/* 标题栏 */}
      <div style={{
        display: "flex",
        alignItems: "center",
        padding: "12px 16px",
        background: "#16213e",
        gap: 8,
      }}>
        <div style={{ display: "flex", gap: 6 }}>
          <div style={{ width: 12, height: 12, borderRadius: "50%", background: "#ff5f57" }} />
          <div style={{ width: 12, height: 12, borderRadius: "50%", background: "#ffbd2e" }} />
          <div style={{ width: 12, height: 12, borderRadius: "50%", background: "#28c840" }} />
        </div>
        <div style={{
          flex: 1,
          background: "#0f3460",
          borderRadius: 6,
          padding: "6px 12px",
          fontSize: 13,
          color: "#8892b0",
          textAlign: "center",
        }}>
          {url}
        </div>
      </div>
      {/* 内容区域 */}
      <div style={{ padding: 20, minHeight: 300 }}>
        {children}
      </div>
    </div>
  );
};

最佳实践

  1. 复制,不要使用 npm 安装 — 模板设计为复制后自定义使用
  2. 根据品牌色调自定义颜色
  3. 调整时间 — 修改帧持续时间以匹配视频节奏
  4. 组合模板 — 将背景 + 文字特效 + 转场组合使用
  5. 保留原始文件 — 在大量修改前先复制到新文件

来源

  • 模板仓库: github.com/reactvideoeditor/remotion-templates
  • Clippkit 组件库: github.com/reactvideoeditor/clippkit
  • 视觉浏览: reactvideoeditor.com/remotion-templates

Individual skills in this repo

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

ever-just/agentskills

> Declarative animations for React. Springs, gestures, layout animations, and page transitions. GPU-accelerated, production-ready.

ever-just/agentskills

> Create animated logos, icons, and micro-interactions as lightweight Lottie JSON files. No After Effects needed — build animations entirely in code.

ever-just/agentskills

> A TypeScript library using generators to program animations with a real-time editor. Ideal for explainer videos, code walkthroughs, and educational content.

ever-just/agentskills

> Add animated subtitles and captions to Remotion videos from .SRT files. TikTok-style word-by-word highlights, karaoke effects, and more.

ever-just/agentskills

> Create videos programmatically using React components. The most mature framework for code-driven video production.

ever-just/agentskills

Extract actionable intelligence from video content across YouTube, Vimeo, and company websites. Video reveals what text sources cannot: facility scale, team composition, product demonstrations, signage, event attendance, and operational reality.

ever-just/agentskills

Optimize and embed an existing video as a fast, crisp, autoplaying hero/background/loop on a website. Use when adding or replacing a video on a marketing site and it is too heavy, will not autoplay (especially on mobile/Safari), shows a codec error, or looks soft — to transcode it to web-safe H.264 with the right pixel format, faststart, retina-aware sizing, and a poster frame, then embed and verify it actually plays. This is optimization + embedding of footage you already have, not creating/animating a video (for that use remotion/moviepy/motion-canvas). Use when the user says "add this video to the site", "the hero video is too big / won't play / isn't crisp", "replace the homepage video", or "make this loop on the landing page".

ever-just/agentskills

Full conversion audit for any homepage or landing page. Use when someone asks to "review my homepage," "audit my landing page," "why isn't my page converting," "check my website," or wants feedback on their marketing page. Requires URL or screenshot before proceeding.

ever-just/agentskills

Automatically fetch YouTube video transcripts, generate structured summaries, and send full transcripts to messaging platforms. Detects YouTube URLs and provides metadata, key insights, and downloadable transcripts.

相关技能