remotion-create
1st-party AIQ Labs seed library · Video & Motion
Scaffolds and builds new Remotion videos using React, including project setup, compositions, and multi-scene timelines.
Pass rate with the skill minus without, same tasks, same model.
- Content Lift forced arm
- +20pp [−3, +40]
- Trigger rate
- 100%
- Trials
- 120 · 8 tasks
- Model
- GLM-5.3-flash
- Measured
- 2026-10-15
Content Lift = the skill's instructions injected into the system prompt, so it measures what the content does once loaded, apart from whether the agent chooses to load it. Method →
Embed this score · live badge for your README
The badge shows the real benchmark number and updates itself when we re-bench — including the honest states (“did not trigger”, “not benched yet”). All badge options →
[](https://skillzbench.com/skills/remotion-create)[](https://skillzbench.com/skills/remotion-create)<a href="https://skillzbench.com/skills/remotion-create"><img src="https://skillzbench.com/api/badge/remotion-create.svg" alt="SkillzBench benchmark" height="20"></a>A/B outputs — median trial per arm
Chat harness (v2): the agent's final message without the skill (left) vs with it (right).
remotion-create--m1
Here's a complete 5-second intro video project with setup files and scene code.
Project Structure
intro-video/
├── project.json
├── settings.json
├── assets/
│ └── (place background images here)
└── scenes/
└── main-scene.js
project.json — Project Setup
{
"name": "intro-5s",
"version": "1.0.0",
"description": "5-second intro: dark background, fading/sliding title, subtle background zoom",
"canvas": {
"width": 1920,
"height": 1080
},
"fps": 30,
"duration": 5,
"totalFrames": 150,
"output": {
"format": "mp4",
"codec": "h264",
"bitrate": "12000k",
"filename": "intro-5s.mp4"
},
"scenes": [
{
"id": "main",
"file": "scenes/main-scene.js",
"start": 0,
"end": 5
}
]
}
settings.json — Render Defaults
{
"backgroundColor": "#0a0a0f",
"audio": { "enabled": false },
"render": {
"quality": "high",
"antialias": true,
"colorSpace": "srgb"
}
}
scenes/main-scene.js — Main Scene Code
/**
* Main Scene — 5s Intro
* Canvas: 1920x1080 @ 30fps (150 frames total)
*
* Timeline:
* 0.0s – 5.0s : Background subtle zoom (1.00 → 1.08)
* 0.5s – 1.5s : Title fades in + slides up (40px)
* 4.0s – 5.0s : Title fades out slightly (optional polish)
*/
const WIDTH = 1920;
const HEIGHT = 1080;
const FPS = 30;
const DURATION = 5;
// ---------- Easing helpers ----------
const easeOutCubic = (t) => 1 - Math.pow(1 - t, 3);
const clamp01 = (t) => Math.min(1, Math.max(0, t));
// Map a time value into a 0..1 progress over a window
function progress(time, start, end) {
return clamp01((time - start) / (end - start));
}
// ---------- Scene definition ----------
const scene = {
name: "main-intro",
duration: DURATION,
layers: [
// Layer 1: Dark background with subtle zoom
{
id: "background",
type: "solid",
color: "#0a0a0f",
transform: (time) => {
// Subtle zoom: scale 1.00 → 1.08 over full duration
const p = easeOutCubic(progress(time, 0, DURATION));
const scale = 1.0 + 0.08 * p;
return { scale, x: WIDTH / 2, y: HEIGHT / 2 };
},
},
// Layer 2: Title — fades in and slides up
{
id: "title",
type: "text",
text: "YOUR TITLE HERE",
font: "bold 96px 'Helvetica Neue', Arial, sans-serif",
color: "#ffffff",
align: "center",
transform: (time) => {
// Fade in + slide up: 0.5s → 1.5s
const p = easeOutCubic(progress(time, 0.5, 1.5));
const opacity = p;
const y = HEIGHT / 2 + (1 - p) * 40; // slides up 40px
// Gentle fade-out at the end: 4.0s → 5.0s
const outP = progress(time, 4.0, 5.0);
const finalOpacity = opacity * (1 - outP * 0.6);
return { opacity: finalOpacity, x: WIDTH / 2, y };
},
},
// Layer 3: Subtitle (optional) — follows title with a delay
{
id: "subtitle",
type: "text",
text: "A short intro",
font: "36px 'Helvetica Neue', Arial, sans-serif",
color: "#9a9aa8",
align: "center",
transform: (time) => {
const p = easeOutCubic(progress(time, 0.9, 1.9));
const outP = progress(time, 4.0, 5.0);
return {
opacity: p * (1 - outP * 0.6),
x: WIDTH / 2,
y: HEIGHT / 2 + 90 + (1 - p) * 30,
};
},
},
],
// Per-frame render hook (reference implementation)
renderFrame(ctx, time) {
const frame = Math.round(time * FPS);
ctx.clearRect(0, 0, WIDTH, HEIGHT);
for (const layer of this.layers) {
const t = layer.transform(time);
ctx.save();
ctx.globalAlpha = t.opacity ?? 1;
if (layer.type === "solid") {
ctx.translate(t.x, t.y);
ctx.scale(t.scale, t.scale);
ctx.fillStyle = layer.color;
ctx.fillRect(-WIDTH, -HEIGHT, WIDTH * 2, HEIGHT * 2);
} else if (layer.type === "text") {
ctx.font = layer.font;
ctx.fillStyle = layer.color;
ctx.textAlign = "center";
ctx.textBaseline = "middle";
ctx.fillText(layer.text, t.x, t.y);
}
ctx.restore();
}
return frame;
},
};
module.exports = scene;
Animation Summary
| Element | Effect | Timing |
|---|---|---|
| Background | Zoom |
I can't execute shell commands in this environment, so here's a complete, ready-to-run Remotion project. Create a folder (e.g. intro-video), add these files, then run npm i and npx remotion studio.
package.json
{
"name": "intro-video",
"version": "1.0.0",
"scripts": {
"studio": "remotion studio",
"render": "remotion render Intro out/intro.mp4"
},
"dependencies": {
"@remotion/cli": "4.0.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"remotion": "4.0.0"
},
"devDependencies": {
"@types/react": "18.3.3",
"typescript": "5.5.4"
}
}
tsconfig.json
{
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"moduleResolution": "Bundler",
"jsx": "react-jsx",
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true,
"lib": ["DOM", "ES2020"]
},
"include": ["src"]
}
remotion.config.ts
import { Config } from "@remotion/cli/config";
Config.setVideoImageFormat("jpeg");
Config.setOverwriteOutput(true);
src/index.ts
import { registerRoot } from "remotion";
import { RemotionRoot } from "./Root";
registerRoot(RemotionRoot);
src/Root.tsx
import { Composition } from "remotion";
import { Intro } from "./Intro";
export const RemotionRoot: React.FC = () => {
return (
<Composition
id="Intro"
component={Intro}
durationInFrames={150} // 5 seconds at 30 fps
fps={30}
width={1920}
height={1080}
defaultProps={{ title: "Your Title Here" }}
/>
);
};
src/Intro.tsx
import {
AbsoluteFill,
interpolate,
spring,
useCurrentFrame,
useVideoConfig,
} from "remotion";
export const Intro: React.FC<{ title: string }> = ({ title }) => {
const frame = useCurrentFrame();
const { fps, durationInFrames } = useVideoConfig();
// Title: spring-based slide up + fade in
const entrance = spring({ frame, fps, config: { damping: 200 } });
const titleOpacity = interpolate(entrance, [0, 1], [0, 1]);
const titleY = interpolate(entrance, [0, 1], [60, 0]);
// Subtle background zoom: 1.0 -> 1.08 over the whole 5s
const bgScale = interpolate(frame, [0, durationInFrames], [1, 1.08]);
return (
<AbsoluteFill style={{ backgroundColor: "#0b0b12" }}>
{/* Background layer with subtle zoom */}
<AbsoluteFill
style={{
transform: `scale(${bgScale})`,
background:
"radial-gradient(circle at 50% 40%, #1c1c2e 0%, #0b0b12 70%)",
}}
/>
{/* Title */}
<AbsoluteFill
style={{
justifyContent: "center",
alignItems: "center",
}}
>
<h1
style={{
fontFamily: "Helvetica, Arial, sans-serif",
fontSize: 110,
fontWeight: 700,
color: "#ffffff",
letterSpacing: 4,
opacity: titleOpacity,
transform: `translateY(${titleY}px)`,
margin: 0,
}}
>
{title}
</h1>
</AbsoluteFill>
</AbsoluteFill>
);
};
Run npx remotion studio to preview, and npx remotion render Intro out/intro.mp4 to export. The title eases in with a spring (fade + slide up), and the dark gradient background slowly zooms from 100% to 108% across the 5 seconds.
remotion-create--m2
30-Second Product Launch Video (Remotion)
A complete Remotion project: 1080×1080, 24 fps, 30 seconds (720 frames).
Project structure
product-launch/
├── package.json
├── remotion.config.ts
├── src/
│ ├── Root.tsx
│ ├── ProductLaunch.tsx # Composition
│ ├── constants.ts
│ ├── scenes/
│ │ ├── LogoReveal.tsx # Scene 1
│ │ ├── FeatureBullets.tsx # Scene 2
│ │ └── CallToAction.tsx # Scene 3
│ └── components/
│ ├── PulseButton.tsx
│ └── Bullet.tsx
package.json
{
"name": "product-launch-video",
"version": "1.0.0",
"scripts": {
"dev": "remotion studio",
"render": "remotion render ProductLaunch out/launch.mp4"
},
"dependencies": {
"@remotion/cli": "^4.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"remotion": "^4.0.0"
}
}
remotion.config.ts
import { Config } from "@remotion/cli/config";
Config.setVideoImageFormat("jpeg");
Config.setOverwriteOutput(true);
src/constants.ts
export const FPS = 24;
export const WIDTH = 1080;
export const HEIGHT = 1080;
// Scene timings (in frames)
export const SCENE1_DURATION = 6 * FPS; // 6s — logo reveal
export const SCENE2_DURATION = 12 * FPS; // 12s — feature bullets
export const SCENE3_DURATION = 12 * FPS; // 12s — call to action
export const TOTAL_DURATION =
SCENE1_DURATION + SCENE2_DURATION + SCENE3_DURATION; // 720 frames = 30s
export const COLORS = {
bg: "#0f1226",
accent: "#6c5ce7",
accent2: "#00d2ff",
text: "#ffffff",
muted: "#a0a6c0",
};
src/Root.tsx
import { Composition } from "remotion";
import { ProductLaunch } from "./ProductLaunch";
import { FPS, WIDTH, HEIGHT, TOTAL_DURATION } from "./constants";
export const RemotionRoot = () => (
<Composition
id="ProductLaunch"
component={ProductLaunch}
durationInFrames={TOTAL_DURATION}
fps={FPS}
width={WIDTH}
height={HEIGHT}
/>
);
src/ProductLaunch.tsx — Composition sequencing the scenes
import { AbsoluteFill, Sequence, interpolate, useCurrentFrame, useVideoConfig, TransitionSeries } from "remotion";
import { LogoReveal } from "./scenes/LogoReveal";
import { FeatureBullets } from "./scenes/FeatureBullets";
import { CallToAction } from "./scenes/CallToAction";
import { SCENE1_DURATION, SCENE2_DURATION, SCENE3_DURATION, COLORS } from "./constants";
const SceneWrapper: React.FC<{ children: React.ReactNode }> = ({ children }) => {
const frame = useCurrentFrame();
const { durationInFrames } = useVideoConfig();
// Fade each scene in/out at its edges
const opacity = interpolate(
frame,
[0, 12, durationInFrames - 12, durationInFrames],
[0, 1, 1, 0],
{ extrapolateLeft: "clamp", extrapolateRight: "clamp" }
);
return <AbsoluteFill style={{ opacity }}>{children}</AbsoluteFill>;
};
export const ProductLaunch: React.FC = () => {
return (
<AbsoluteFill style={{ backgroundColor: COLORS.bg }}>
<Sequence from={0} durationInFrames={SCENE1_DURATION} name="Logo Reveal">
<SceneWrapper>
<LogoReveal />
</SceneWrapper>
</Sequence>
<Sequence from={SCENE1_DURATION} durationInFrames={SCENE2_DURATION} name="Features">
<SceneWrapper>
<FeatureBullets />
</SceneWrapper>
</Sequence>
<Sequence from={SCENE1_DURATION + SCENE2_DURATION} durationInFrames={SCENE3_DURATION} name="CTA">
<SceneWrapper>
<CallToAction />
</SceneWrapper>
</Sequence>
</AbsoluteFill>
);
};
src/scenes/LogoReveal.tsx — Scene 1: scale-in logo
import { AbsoluteFill, interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";
import { COLORS } from "../constants";
export const LogoReveal: React.FC = () => {
const frame = useCurrentFrame();
const { fps } = useVideoConfig();
// Springy scale-in
const scale = spring({ frame, fps, config: { damping: 12, stiffness: 120, mass: 0.8 } });
const opacity = interpolate(frame, [0, 10], [0, 1], { extrapolateRight: "clamp" });
const taglineOpacity = interpolate(frame, [30, 50], [0, 1], { extrapolateLeft: "clamp", extrapolateRight: "clamp" });
return (
<AbsoluteFill style={{ justifyContent: "center", alignItems: "center" }}>
<div
style={{
transform: `scale(${scale})`,
opacity,
display: "flex",
flexDirection: "column",
alignItems: "center",
gap: 24,
}}
>
<div
style={{
width: 220,
height: 220,
borderRadius: 48,
background: `linear-gradient(135deg, ${COLORS.accent}, ${COLORS.accent2})`,
display: "flex",
justifyContent: "center",
alignItems: "center",
boxShadow: "0 20px 60px rgba(108,92,231,0.5)",
}}
>
<span style={{ fontSize: 110, fontWeight: 800, color: "#fff" }}>P</span>
</
Here's a complete Remotion project for the 30-second product launch video.
Setup
npx create-video@latest --yes --blank --no-tailwind product-launch
cd product-launch
npm i
npx remotion studio
src/Root.tsx
import {Composition} from 'remotion';
import {ProductLaunch} from './ProductLaunch';
export const FPS = 24;
export const WIDTH = 1080;
export const HEIGHT = 1080;
// Scene durations in frames (24 fps)
export const SCENE1_DURATION = 5 * 24; // 120 frames — logo reveal
export const SCENE2_DURATION = 15 * 24; // 360 frames — feature bullets
export const SCENE3_DURATION = 10 * 24; // 240 frames — call to action
export const RemotionRoot: React.FC = () => {
return (
<Composition
id="ProductLaunch"
component={ProductLaunch}
durationInFrames={SCENE1_DURATION + SCENE2_DURATION + SCENE3_DURATION}
fps={FPS}
width={WIDTH}
height={HEIGHT}
defaultProps={{}}
/>
);
};
src/ProductLaunch.tsx
import {AbsoluteFill, Sequence, useVideoConfig} from 'remotion';
import {LogoReveal} from './scenes/LogoReveal';
import {FeatureBullets} from './scenes/FeatureBullets';
import {CallToAction} from './scenes/CallToAction';
import {SCENE1_DURATION, SCENE2_DURATION, SCENE3_DURATION} from '../Root';
export const ProductLaunch: React.FC = () => {
const {durationInFrames} = useVideoConfig();
return (
<AbsoluteFill style={{backgroundColor: '#0b0f1a'}}>
<Sequence from={0} durationInFrames={SCENE1_DURATION}>
<LogoReveal />
</Sequence>
<Sequence from={SCENE1_DURATION} durationInFrames={SCENE2_DURATION}>
<FeatureBullets />
</Sequence>
<Sequence
from={SCENE1_DURATION + SCENE2_DURATION}
durationInFrames={SCENE3_DURATION}
>
<CallToAction />
</Sequence>
</AbsoluteFill>
);
};
src/scenes/LogoReveal.tsx
import {AbsoluteFill, interpolate, spring, useCurrentFrame, useVideoConfig} from 'remotion';
export const LogoReveal: React.FC = () => {
const frame = useCurrentFrame();
const {fps} = useVideoConfig();
// Scale-in with a spring
const scale = spring({frame, fps, config: {damping: 12, stiffness: 120}});
const opacity = interpolate(frame, [0, 10], [0, 1], {extrapolateRight: 'clamp'});
return (
<AbsoluteFill
style={{
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#0b0f1a',
}}
>
<div
style={{
transform: `scale(${scale})`,
opacity,
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
gap: 24,
}}
>
<div
style={{
width: 220,
height: 220,
borderRadius: 48,
background: 'linear-gradient(135deg, #6366f1, #ec4899)',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
fontSize: 110,
color: 'white',
fontWeight: 800,
}}
>
◆
</div>
<div style={{fontSize: 72, fontWeight: 800, color: 'white', letterSpacing: 4}}>
NOVA
</div>
<div style={{fontSize: 32, color: '#94a3b8', letterSpacing: 8}}>
THE FUTURE, TODAY
</div>
</div>
</AbsoluteFill>
);
};
src/scenes/FeatureBullets.tsx
import {AbsoluteFill, interpolate, spring, useCurrentFrame, useVideoConfig} from 'remotion';
const FEATURES = [
{icon: '⚡', title: 'Blazing Fast', desc: '10x faster than anything else'},
{icon: '🔒', title: 'Secure by Default', desc: 'End-to-end encryption built in'},
{icon: '🌍', title: 'Works Everywhere', desc: 'Web, mobile, and desktop'},
];
const Bullet: React.FC<{feature: (typeof FEATURES)[number]; index: number}> = ({
feature,
index,
}) => {
const frame = useCurrentFrame();
const {fps} = useVideoConfig();
// Each bullet appears staggered: 30, 90, 150 frames into the scene
const delay = index * 60;
const local = frame - delay;
const progress = spring({frame: local, fps, config: {damping: 14, stiffness: 100}});
const opacity = interpolate(local, [0, 12], [0, 1], {
extrapolateLeft: 'clamp',
extrapolateRight: 'clamp',
});
return (
<div
style={{
display: 'flex',
alignItems: 'center',
gap: 32,
transform: `translateX(${interpolate(progress, [0, 1], [-80, 0])}px)`,
opacity,
}}
>
<div
style={{
width: 96,
height: 96,
borderRadius: 24,
background: 'linear-gradient(135deg, #6366f1, #ec4899)',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
fontSize: 48,
}}
>
{feature.icon}
</div>
<div>
<div style={{fontSize: 52, fontWeight: 700, color: 'white'}}>{feature.title}</div>
<div style={{fontSize: 32, color: '#94a3b8'}}>{feature.desc}</div>
</div>
</div>
);
};
export const FeatureBullets: React.FC = () => {
return (
<AbsoluteFill
style={{
justifyContent: 'center',
alignItems:
remotion-create--m3
Bar Chart Animation Video Project
Project Structure
bar-chart-video/
├── data.json
├── render.js
└── output/
Sample Data — data.json
[
{ "label": "Q1", "value": 120 },
{ "label": "Q2", "value": 180 },
{ "label": "Q3", "value": 140 },
{ "label": "Q4", "value": 210 }
]
Renderer — render.js (Node.js + Remotion-style canvas frames, or standalone with canvas + ffmpeg)
// npm install canvas
// node render.js && ffmpeg -framerate 30 -i output/frame_%04d.png -c:v libx264 -pix_fmt yuv420p output/chart.mp4
const { createCanvas } = require("canvas");
const fs = require("fs");
const path = require("path");
const FPS = 30;
const WIDTH = 1920, HEIGHT = 1080; // 16:9
const data = JSON.parse(fs.readFileSync("data.json", "utf8"));
// Timing: 0.5s intro + 0.6s per bar + 0.8s counter settle + 1s outro
const DURATION_SEC = 0.5 + data.length * 0.6 + 0.8 + 1.0;
const TOTAL_FRAMES = Math.round(DURATION_SEC * FPS);
const TOTAL = data.reduce((s, d) => s + d.value, 0);
const easeOut = t => 1 - Math.pow(1 - Math.min(Math.max(t, 0), 1), 3);
const BAR_START = Math.round(0.5 * FPS); // bars begin after intro
const BAR_GROW = Math.round(0.6 * FPS); // frames per bar
const COUNTER_END = BAR_START + data.length * BAR_GROW + Math.round(0.8 * FPS);
fs.mkdirSync("output", { recursive: true });
for (let f = 0; f < TOTAL_FRAMES; f++) {
const canvas = createCanvas(WIDTH, HEIGHT);
const ctx = canvas.getContext("2d");
// Background
ctx.fillStyle = "#0f172a";
ctx.fillRect(0, 0, WIDTH, HEIGHT);
// Title
ctx.fillStyle = "#f8fafc";
ctx.font = "bold 64px sans-serif";
ctx.textAlign = "center";
ctx.fillText("Quarterly Sales", WIDTH / 2, 120);
// Chart area
const chartTop = 220, chartBottom = HEIGHT - 140;
const chartH = chartBottom - chartTop;
const maxVal = Math.max(...data.map(d => d.value));
const barW = 180, gap = (WIDTH - data.length * barW) / (data.length + 1);
// Grid lines
ctx.strokeStyle = "#334155";
ctx.lineWidth = 1;
for (let i = 0; i <= 4; i++) {
const y = chartBottom - (chartH * i) / 4;
ctx.beginPath(); ctx.moveTo(120, y); ctx.lineTo(WIDTH - 120, y); ctx.stroke();
}
// Bars — sequential growth
data.forEach((d, i) => {
const startF = BAR_START + i * BAR_GROW;
const t = easeOut((f - startF) / BAR_GROW);
if (t <= 0) return;
const h = (d.value / maxVal) * chartH * t;
const x = gap + i * (barW + gap);
const y = chartBottom - h;
const grad = ctx.createLinearGradient(0, y, 0, chartBottom);
grad.addColorStop(0, "#38bdf8");
grad.addColorStop(1, "#2563eb");
ctx.fillStyle = grad;
ctx.beginPath();
ctx.roundRect(x, y, barW, h, [12, 12, 0, 0]);
ctx.fill();
// Label + value (fade in with bar)
ctx.globalAlpha = t;
ctx.fillStyle = "#f8fafc";
ctx.font = "bold 40px sans-serif";
ctx.fillText(d.label, x + barW / 2, chartBottom + 60);
ctx.font = "36px sans-serif";
ctx.fillText(Math.round(d.value * t), x + barW / 2, y - 20);
ctx.globalAlpha = 1;
});
// Counter — counts up to total
const ct = easeOut((f - BAR_START) / (COUNTER_END - BAR_START));
if (ct > 0) {
ctx.fillStyle = "#facc15";
ctx.font = "bold 72px sans-serif";
ctx.fillText(`Total: ${Math.round(TOTAL * ct)}`, WIDTH / 2, chartTop - 40);
}
fs.writeFileSync(
path.join("output", `frame_${String(f).padStart(4, "0")}.png`),
canvas.toBuffer("image/png")
);
}
console.log(`Rendered ${TOTAL_FRAMES} frames (${DURATION_SEC}s @ ${FPS}fps). Total = ${TOTAL}`);
Encode to MP4
ffmpeg -framerate 30 -i output/frame_%04d.png \
-c:v libx264 -pix_fmt yuv420p -crf 18 output/chart.mp4
How it works
- Canvas: 1920×1080 (16:9) at 30 fps.
- Duration:
0.5 + rows × 0.6 + 0.8 + 1.0seconds — with 4 rows that's 4.7 s (141 frames); scales automatically with more data. - Sequential bars: bar i starts growing after bar i−1 finishes, using cubic ease-out for a smooth pop.
- Counter: starts when the first bar grows and eases up to the total (650) as the last bar lands.
- Sample output: bars 120 → 180 → 140 → 210, counter ending at Total: 650.
Remotion Bar Chart Animation
Project setup
npx create-video@latest --yes --blank --no-tailwind sales-chart
cd sales-chart
npm i
src/data.ts — sample data
export type SalesRow = { label: string; value: number };
export const salesData: SalesRow[] = [
{ label: 'Q1', value: 120 },
{ label: 'Q2', value: 180 },
{ label: 'Q3', value: 140 },
{ label: 'Q4', value: 210 },
];
src/BarChart.tsx — the composition
import React from 'react';
import {
AbsoluteFill,
interpolate,
spring,
useCurrentFrame,
useVideoConfig,
} from 'remotion';
import { salesData, SalesRow } from './data';
const ROW_FRAMES = 30; // frames each bar takes to grow
const INTRO_FRAMES = 15;
const OUTRO_FRAMES = 30;
export const durationInFrames = (rows: SalesRow[]) =>
INTRO_FRAMES + rows.length * ROW_FRAMES + OUTRO_FRAMES;
const BarChart: React.FC<{ data?: SalesRow[] }> = ({ data = salesData }) => {
const frame = useCurrentFrame();
const { fps, width, height } = useVideoConfig();
const total = data.reduce((s, r) => s + r.value, 0);
const maxValue = Math.max(...data.map((r) => r.value));
// Counter counts up as bars appear
const barsShown = Math.min(
data.length,
Math.max(0, Math.floor((frame - INTRO_FRAMES) / ROW_FRAMES) + 1)
);
const runningTotal = data
.slice(0, barsShown)
.reduce((s, r) => s + r.value, 0);
const counter = interpolate(frame, [0, durationInFrames(data) - OUTRO_FRAMES], [0, runningTotal], {
extrapolateRight: 'clamp',
});
const chartTop = height * 0.25;
const chartBottom = height * 0.85;
const chartHeight = chartBottom - chartTop;
const barWidth = (width * 0.7) / data.length - 40;
return (
<AbsoluteFill
style={{
backgroundColor: '#0b1020',
fontFamily: 'Helvetica, Arial, sans-serif',
color: 'white',
}}
>
{/* Title */}
<div
style={{
position: 'absolute',
top: height * 0.08,
width: '100%',
textAlign: 'center',
fontSize: 48,
fontWeight: 700,
opacity: interpolate(frame, [0, 10], [0, 1], { extrapolateRight: 'clamp' }),
}}
>
Quarterly Sales
</div>
{/* Counter */}
<div
style={{
position: 'absolute',
top: height * 0.14,
width: '100%',
textAlign: 'center',
fontSize: 64,
fontWeight: 800,
color: '#4ade80',
fontVariantNumeric: 'tabular-nums',
}}
>
{Math.round(counter).toLocaleString()}
</div>
{/* Bars */}
<div
style={{
position: 'absolute',
top: chartTop,
left: width * 0.15,
right: width * 0.15,
bottom: height * 0.15,
display: 'flex',
alignItems: 'flex-end',
justifyContent: 'space-around',
}}
>
{data.map((row, i) => {
const start = INTRO_FRAMES + i * ROW_FRAMES;
const progress = spring({
frame: frame - start,
fps,
config: { damping: 12, stiffness: 100 },
});
const barHeight = chartHeight * (row.value / maxValue) * progress;
return (
<div
key={row.label}
style={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'flex-end',
height: '100%',
width: barWidth,
}}
>
<div style={{ fontSize: 28, marginBottom: 8, opacity: progress }}>
{row.value}
</div>
<div
style={{
width: '100%',
height: barHeight,
borderRadius: 8,
background: 'linear-gradient(180deg, #4ade80, #16a34a)',
}}
/>
<div style={{ fontSize: 30, marginTop: 12, opacity: progress }}>
{row.label}
</div>
</div>
);
})}
</div>
</AbsoluteFill>
);
};
export default BarChart;
src/Root.tsx — register the composition
import React from 'react';
import { Composition } from 'remotion';
import BarChart, { durationInFrames } from './BarChart';
import { salesData } from './data';
export const RemotionRoot: React.FC = () => {
return (
<Composition
id="SalesBarChart"
component={BarChart}
durationInFrames={durationInFrames(salesData)} // 15 + 4*30 + 30 = 165 frames (5.5s)
fps={30}
width={1920}
height={1080}
defaultProps={{ data: salesData }}
/>
);
};
src/index.ts
import { registerRoot } from 'remotion';
import { RemotionRoot } from './Root';
registerRoot(RemotionRoot);
How it works
- 16:9 @ 30 fps: 1920×1080,
fps: 30. - Duration depends on rows:
15 + rows × 30 + 30frames — 165 frames (5.5 s) for the 4 sample rows; add a row and it grows automatically. - Sequential bars: each
remotion-create--m4
45-Second Documentary Clip — Video Project
Spec: 3840×2160 @ 60 fps (4K UHD), three sections composed into a master timeline.
File Structure
documentary-clip/
├── project.json # Global project settings
├── render.py # Entry point — renders master comp
├── src/
│ ├── __init__.py
│ ├── settings.py # Resolution, fps, timing constants
│ ├── master_comp.py # Master composition (composes all sections)
│ ├── sections/
│ │ ├── __init__.py
│ │ ├── title_section.py # 0–8s Animated title
│ │ ├── captions_section.py # 8–38s Talking-head + synced captions
│ │ └── outro_section.py # 38–45s Outro & credits
│ ├── assets/
│ │ ├── transcript.json # Caption timings
│ │ └── music/README.md # Music track placeholder instructions
│ └── utils/
│ ├── __init__.py
│ ├── easing.py # Animation easing functions
│ └── text.py # Text rendering helpers
└── output/ # Render destination (created at runtime)
project.json
{
"name": "documentary-clip",
"width": 3840,
"height": 2160,
"fps": 60,
"duration": 45.0,
"sections": {
"title": { "start": 0.0, "end": 8.0 },
"captions": { "start": 8.0, "end": 38.0 },
"outro": { "start": 38.0, "end": 45.0 }
}
}
src/settings.py
"""Global render settings for the documentary clip."""
WIDTH = 3840
HEIGHT = 2160
FPS = 60
DURATION = 45.0
# Section boundaries (seconds)
TITLE_START, TITLE_END = 0.0, 8.0
CAPTIONS_START, CAPTIONS_END = 8.0, 38.0
OUTRO_START, OUTRO_END = 38.0, 45.0
# Colors (R, G, B)
BG_COLOR = (12, 12, 16)
ACCENT = (230, 180, 60)
TEXT_COLOR = (240, 240, 240)
CAPTION_BG = (0, 0, 0, 160)
FONT_PATH = "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf"
FONT_PATH_LIGHT = "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf"
src/utils/easing.py
import math
def ease_out_cubic(t):
t = max(0.0, min(1.0, t))
return 1 - (1 - t) ** 3
def ease_in_out(t):
t = max(0.0, min(1.0, t))
return 0.5 * (1 - math.cos(math.pi * t))
def fade_in(t, dur=0.5):
return ease_out_cubic(t / dur) if t < dur else 1.0
def fade_out(t, dur=0.5):
return 1.0 - ease_in_out(t / dur) if t < dur else 0.0
src/utils/text.py
from PIL import ImageDraw, ImageFont
from src import settings
def draw_centered_text(draw, text, y, size, color, alpha=255, font_path=None):
"""Draw text horizontally centered at vertical position y (fraction of height)."""
font = ImageFont.truetype(font_path or settings.FONT_PATH, size)
bbox = draw.textbbox((0, 0), text, font=font)
w = bbox[2] - bbox[0]
x = (settings.WIDTH - w) // 2
fill = color if len(color) == 3 else color
if alpha < 255:
fill = tuple(list(color[:3]) + [int(alpha)])
draw.text((x, int(y * settings.HEIGHT)), text, font=font, fill=fill)
src/sections/title_section.py
"""Section 1 (0–8s): Animated title — fade/slide-in headline with accent underline."""
from PIL import Image, ImageDraw
from src import settings
from src.utils.easing import ease_out_cubic, fade_out
from src.utils.text import draw_centered_text
DURATION = settings.TITLE_END - settings.TITLE_START
def render_frame(local_t: float) -> Image.Image:
img = Image.new("RGBA", (settings.WIDTH, settings.HEIGHT), settings.BG_COLOR + (255,))
d = ImageDraw.Draw(img)
# Headline slides up + fades in over 1.2s
p = ease_out_cubic(local_t / 1.2)
y = 0.42 - 0.05 * (1 - p) # slide from below
alpha = 255 * p
draw_centered_text(d, "THE STORY BEHIND", y, 180, settings.TEXT_COLOR, alpha)
# Accent underline grows in width 0.6–1.6s
up = ease_out_cubic(max(0.0, (local_t - 0.6) / 1.0))
if up > 0:
line_w = int(900 * up)
x0 = (settings.WIDTH - line_w) // 2
d.rectangle([x0, int(
Here's a complete Remotion project for your 45-second documentary clip.
File Structure
documentary-clip/
├── package.json
├── tsconfig.json
├── remotion.config.ts
├── public/
│ └── music-placeholder.mp3 # background music track placeholder
└── src/
├── index.ts # registerRoot
├── Root.tsx # master composition registration
├── Documentary.tsx # master composition (composes all sections)
├── sections/
│ ├── TitleSection.tsx # animated title
│ ├── CaptionsSection.tsx # talking-head captions in sync with transcript
│ └── OutroSection.tsx # outro with credits
├── data/
│ └── transcript.ts # timed transcript data
└── components/
├── BackgroundMusic.tsx # music track component
└── Caption.tsx # single caption renderer
Code
package.json
{
"name": "documentary-clip",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "remotion studio",
"render": "remotion render Documentary out/documentary.mp4"
},
"dependencies": {
"@remotion/cli": "^4.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"remotion": "^4.0.0"
},
"devDependencies": {
"@types/react": "^18.2.0",
"typescript": "^5.3.0"
}
}
tsconfig.json
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "Bundler",
"jsx": "react-jsx",
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true
},
"include": ["src", "remotion.config.ts"]
}
remotion.config.ts
import { Config } from "@remotion/cli/config";
Config.setVideoImageFormat("jpeg");
Config.setOverwriteOutput(true);
src/index.ts
import { registerRoot } from "remotion";
import { RemotionRoot } from "./Root";
registerRoot(RemotionRoot);
src/Root.tsx
import React from "react";
import { Composition } from "remotion";
import { Documentary } from "./Documentary";
export const FPS = 60;
export const WIDTH = 3840;
export const HEIGHT = 2160;
export const DURATION_IN_SECONDS = 45;
export const RemotionRoot: React.FC = () => {
return (
<Composition
id="Documentary"
component={Documentary}
durationInFrames={DURATION_IN_SECONDS * FPS} // 2700 frames
fps={FPS}
width={WIDTH}
height={HEIGHT}
defaultProps={{}}
/>
);
};
src/data/transcript.ts
export type TranscriptEntry = {
start: number; // seconds
end: number; // seconds
text: string;
};
export const TRANSCRIPT: TranscriptEntry[] = [
{ start: 0.0, end: 3.5, text: "Every product has a story." },
{ start: 3.5, end: 7.0, text: "Ours begins with a single prototype." },
{ start: 7.0, end: 10.5, text: "And a team that refused to give up." },
];
src/Documentary.tsx — Master Composition
import React from "react";
import { AbsoluteFill, Sequence } from "remotion";
import { TitleSection, TITLE_DURATION } from "./sections/TitleSection";
import { CaptionsSection, CAPTIONS_DURATION } from "./sections/CaptionsSection";
import { OutroSection, OUTRO_DURATION } from "./sections/OutroSection";
import { BackgroundMusic } from "./components/BackgroundMusic";
export const Documentary: React.FC = () => {
return (
<AbsoluteFill style={{ backgroundColor: "#000" }}>
<BackgroundMusic />
<Sequence from={0} durationInFrames={TITLE_DURATION}>
<TitleSection />
</Sequence>
<Sequence from={TITLE_DURATION} durationInFrames={CAPTIONS_DURATION}>
<CaptionsSection />
</Sequence>
<Sequence from={TITLE_DURATION + CAPTIONS_DURATION} durationInFrames={OUTRO_DURATION}>
<OutroSection />
</Sequence>
</AbsoluteFill>
);
};
src/sections/TitleSection.tsx — Animated Title
import React from "react";
import { AbsoluteFill, interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";
export const TITLE_DURATION = 8 * 60; // 8 seconds
export const TitleSection: React.FC = () => {
const frame = useCurrentFrame();
const { fps } = useVideoConfig();
const titleScale = spring({ frame, fps, config: { damping: 12 } });
const titleOpacity = interpolate(frame, [0, 20], [0, 1], { extrapolateRight: "clamp" });
const subtitleOpacity = interpolate(frame, [30, 60], [0, 1], { extrapolateLeft: "clamp", extrapolateRight: "clamp" });
const fadeOut = interpolate(frame, [TITLE_DURATION - 60, TITLE_DURATION], [1, 0], { extrapolateLeft: "clamp", extrapolateRight: "clamp" });
return (
<AbsoluteFill
style={{
justifyContent: "center",
alignItems: "center",
backgroundColor: "#0a0a0a",
opacity: fadeOut,
}}
>
<div
style={{
transform: `scale(${titleScale})`,
opacity: titleOpacity,
fontSize: 180,
fontWeight: 800,
color: "#fff",
fontFamily: "Georgia, serif",
letterSpacing: 4,
textAlign: "center",
}}
>
THE STORY BEHIND
</div>
<div
style
remotion-create--m5
Podcast Intro Card — Video Project
Project Structure
podcast-intro/
├── package.json
├── remotion.config.ts
├── tsconfig.json
├── src/
│ ├── index.ts
│ ├── Root.tsx
│ └── PodcastIntro.tsx
└── public/ # (optional: logo, fonts)
Setup Commands
npx create-video@latest podcast-intro --blank
cd podcast-intro
npm install
npm start # opens Remotion Studio preview
npm run build # renders final MP4
Files
package.json (key deps)
{
"name": "podcast-intro",
"scripts": {
"start": "remotion studio",
"build": "remotion render PodcastIntro out/intro.mp4"
},
"dependencies": {
"@remotion/cli": "^4.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"remotion": "^4.0.0"
}
}
src/Root.tsx
import { Composition } from "remotion";
import { PodcastIntro } from "./PodcastIntro";
export const RemotionRoot = () => (
<Composition
id="PodcastIntro"
component={PodcastIntro}
durationInFrames={240} // 8s @ 30fps
fps={30}
width={1920}
height={1080}
/>
);
src/index.ts
import { registerRoot } from "remotion";
import { RemotionRoot } from "./Root";
registerRoot(RemotionRoot);
src/PodcastIntro.tsx
import {
AbsoluteFill,
interpolate,
useCurrentFrame,
useVideoConfig,
} from "remotion";
export const PodcastIntro: React.FC = () => {
const frame = useCurrentFrame();
const { fps, durationInFrames, width } = useVideoConfig();
// Title: scale 90% -> 100% + fade in over first 1 second
const titleScale = interpolate(frame, [0, fps], [0.9, 1], {
extrapolateRight: "clamp",
});
const titleOpacity = interpolate(frame, [0, fps], [0, 1], {
extrapolateRight: "clamp",
});
// Subtitle: fade in at 2-second mark (over 0.5s)
const subOpacity = interpolate(frame, [2 * fps, 2 * fps + fps / 2], [0, 1], {
extrapolateLeft: "clamp",
extrapolateRight: "clamp",
});
// Progress bar: fills left -> right across full 8 seconds
const progress = frame / (durationInFrames - 1);
return (
<AbsoluteFill style={{ backgroundColor: "#0B1026" }}>
{/* Main title */}
<div
style={{
position: "absolute",
top: "40%",
width: "100%",
textAlign: "center",
transform: `scale(${titleScale})`,
opacity: titleOpacity,
}}
>
<h1
style={{
color: "#FFFFFF",
fontFamily: "Inter, Helvetica, Arial, sans-serif",
fontSize: 96,
fontWeight: 700,
margin: 0,
}}
>
The Future of AI
</h1>
</div>
{/* Subtitle */}
<div
style={{
position: "absolute",
top: "52%",
width: "100%",
textAlign: "center",
opacity: subOpacity,
}}
>
<p
style={{
color: "#B8BCC8",
fontFamily: "Inter, Helvetica, Arial, sans-serif",
fontSize: 40,
fontWeight: 400,
margin: 0,
}}
>
Episode 42 with Dr. Ada Chen
</p>
</div>
{/* Progress bar */}
<div
style={{
position: "absolute",
bottom: 60,
left: 80,
right: 80,
height: 4,
backgroundColor: "rgba(255,255,255,0.15)",
borderRadius: 2,
}}
>
<div
style={{
width: `${progress * 100}%`,
height: "100%",
backgroundColor: "#FFFFFF",
borderRadius: 2,
}}
/>
</div>
</AbsoluteFill>
);
};
Render
npm run build # outputs out/intro.mp4 (1920x1080, 8s, 30fps)
Timeline summary: title scales 90%→100% and fades in (0–1s), subtitle fades in at 2s, progress bar fills linearly 0–8s over the navy #0B1026 background.
Podcast Intro Card — Remotion Project
Setup commands
npx create-video@latest --yes --blank --no-tailwind podcast-intro
cd podcast-intro
npm i
npx remotion studio # preview in browser
Render the final MP4:
npx remotion render PodcastIntroCard out/podcast-intro.mp4
Project structure
podcast-intro/
├── package.json
├── remotion.config.ts
├── tsconfig.json
└── src/
├── index.ts # registerRoot
├── Root.tsx # <Composition> registration
└── compositions/
└── PodcastIntroCard.tsx # the video
src/index.ts
import { registerRoot } from "remotion";
import { RemotionRoot } from "./Root";
registerRoot(RemotionRoot);
src/Root.tsx
import { Composition } from "remotion";
import { PodcastIntroCard } from "./compositions/PodcastIntroCard";
export const FPS = 30;
export const DURATION_IN_FRAMES = 8 * FPS; // 8 seconds = 240 frames
export const RemotionRoot: React.FC = () => {
return (
<Composition
id="PodcastIntroCard"
component={PodcastIntroCard}
durationInFrames={DURATION_IN_FRAMES}
fps={FPS}
width={1920}
height={1080}
/>
);
};
src/compositions/PodcastIntroCard.tsx
import React from "react";
import {
AbsoluteFill,
interpolate,
useCurrentFrame,
useVideoConfig,
} from "remotion";
export const PodcastIntroCard: React.FC = () => {
const frame = useCurrentFrame();
const { durationInFrames, fps } = useVideoConfig();
// Title: scale 90% -> 100% + fade in over first 1 second
const titleScale = interpolate(frame, [0, fps], [0.9, 1.0], {
extrapolateRight: "clamp",
});
const titleOpacity = interpolate(frame, [0, fps], [0, 1], {
extrapolateRight: "clamp",
});
// Subtitle: fades in starting at the 2-second mark
const subtitleOpacity = interpolate(frame, [2 * fps, 3 * fps], [0, 1], {
extrapolateLeft: "clamp",
extrapolateRight: "clamp",
});
// Progress bar: fills left to right across the full 8 seconds
const progress = frame / durationInFrames;
return (
<AbsoluteFill
style={{
backgroundColor: "#0B1026",
justifyContent: "center",
alignItems: "center",
fontFamily: "Helvetica, Arial, sans-serif",
}}
>
<div
style={{
display: "flex",
flexDirection: "column",
alignItems: "center",
gap: 28,
transform: `scale(${titleScale})`,
opacity: titleOpacity,
}}
>
<h1
style={{
color: "#FFFFFF",
fontSize: 110,
fontWeight: 700,
margin: 0,
letterSpacing: -2,
}}
>
The Future of AI
</h1>
<p
style={{
color: "#C7CBD4",
fontSize: 42,
fontWeight: 400,
margin: 0,
opacity: subtitleOpacity,
}}
>
Episode 42 with Dr. Ada Chen
</p>
</div>
{/* Bottom progress bar */}
<div
style={{
position: "absolute",
bottom: 60,
left: 80,
right: 80,
height: 6,
backgroundColor: "rgba(255,255,255,0.12)",
borderRadius: 3,
overflow: "hidden",
}}
>
<div
style={{
width: `${progress * 100}%`,
height: "100%",
backgroundColor: "#FFFFFF",
borderRadius: 3,
}}
/>
</div>
</AbsoluteFill>
);
};
Behavior summary
- 0–1s: Title scales 90% → 100% while fading in (white, 110px).
- 2–3s: Subtitle "Episode 42 with Dr. Ada Chen" fades in (light gray
#C7CBD4). - 0–8s: Thin 6px progress bar at the bottom fills left → right linearly over the full duration.
- Background is dark navy
#0B1026; output is 1920×1080 @ 30fps, 240 frames total.
- Results are for the SkillzBench reference agent on GLM-5.3-flash. Switch models above — a skill can help one model and not another.
- Screen tier (1 trial per arm) is directional. Verified needs a full-tier run (≥ 8 tasks, ≥ 3 trials per arm) with the CI excluding zero.
- Task coverage: 8 generated tasks for this skill's category; a skill can shine elsewhere.