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/
可用的特效分類
文字特效
- 打字機效果 — 逐字元打字動畫
- 文字揭示 — 文字向上滑入並淡出
- 動態字體排版 — 帶彈簧運動的大型文字
- 分割文字 — 字元個別錯開動畫
- 故障文字 — 文字上的數位干擾效果
- 漸層文字 — 文字上的動態漸層顏色
轉場
- 淡入淡出 — 簡單的不透明度交叉溶解
- 滑動 — 定向滑動(左、右、上、下)
- 擦除 — 定向擦除揭示
- 縮放 — 基於縮放的轉場
- 變形 — 場景之間的形狀變形
- 干擾效果 — 數位干擾轉場
開場 / 結尾
- 標誌揭示 — 動畫標誌入場
- 標題卡 — 帶副標題的居中標題
- 下方三分之一 — 姓名/標題列動畫
- 結束畫面 — 附社群連結的行動呼籲(CTA)
背景
- 漸層 — 動態顏色漸層
- 粒子 — 浮動粒子系統
- 網格 — 動畫網格圖案
- 噪點 — 柏林噪點紋理
- 散景 — 模糊光球
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>
);
};
最佳實務
- 複製,不要 npm install — 模板旨在複製後自訂
- 自訂色彩以符合你的品牌色板
- 調整時間 — 更改影格持續時間以配合影片節奏
- 組合模板 — 將背景 + 文字特效 + 轉場結合使用
- 保留原始檔 — 在大量修改前先複製到新檔案
來源
- 模板:github.com/reactvideoeditor/remotion-templates
- Clippkit(元件庫):github.com/reactvideoeditor/clippkit
- 視覺瀏覽:reactvideoeditor.com/remotion-templates