π₯ Make videos programmatically with React
copy skills from motion graphics template
Jonny Burger943ad62e3e15
diff --git a/packages/cli/src/list-of-remotion-packages.ts b/packages/cli/src/list-of-remotion-packages.tsindex 29a5d2fff2..c528e3c4c0 100644--- a/packages/cli/src/list-of-remotion-packages.ts+++ b/packages/cli/src/list-of-remotion-packages.ts@@ -58,6 +58,7 @@ export const listOfRemotionPackages = ['@remotion/rive','@remotion/shapes','@remotion/skia',+ '@remotion/skills','@remotion/promo-pages','@remotion/streaming','@remotion/serverless',diff --git a/packages/create-video/src/list-of-remotion-packages.ts b/packages/create-video/src/list-of-remotion-packages.tsindex 29a5d2fff2..c528e3c4c0 100644--- a/packages/create-video/src/list-of-remotion-packages.ts+++ b/packages/create-video/src/list-of-remotion-packages.ts@@ -58,6 +58,7 @@ export const listOfRemotionPackages = ['@remotion/rive','@remotion/shapes','@remotion/skia',+ '@remotion/skills','@remotion/promo-pages','@remotion/streaming','@remotion/serverless',diff --git a/packages/it-tests/src/templates/publish.ts b/packages/it-tests/src/templates/publish.tsindex e74d3f8073..7c41ed4330 100644--- a/packages/it-tests/src/templates/publish.ts+++ b/packages/it-tests/src/templates/publish.ts@@ -1,14 +1,32 @@import {$} from 'bun';-import {CreateVideoInternals, Template} from 'create-video';+import {CreateVideoInternals} from 'create-video';import {cpSync} from 'node:fs';import {tmpdir} from 'node:os';import path from 'path';+type MinimalTemplate = {+ shortName: string;+ org: string;+ repoName: string;+ defaultBranch: string;+ templateInMonorepo: string;+};+const folders = CreateVideoInternals.FEATURED_TEMPLATES.filter((t) => t.templateInMonorepo !== null,);-const publish = async (template: Template) => {+const skillsTemplate: MinimalTemplate = {+ defaultBranch: 'main',+ templateInMonorepo: 'skills',+ org: 'remotion-dev',+ repoName: 'skills',+ shortName: 'Skills',+};++const templates = [skillsTemplate, ...folders];++const publish = async (template: MinimalTemplate) => {const folder = path.join(__dirname,'..',@@ -65,6 +83,6 @@ const publish = async (template: Template) => {await $`git push origin ${defaultBranch.trim()}`.cwd(workingDir);};-for (const template of folders) {+for (const template of templates) {await publish(template);}diff --git a/packages/skills/package.json b/packages/skills/package.jsonnew file mode 100644index 0000000000..46d444819e--- /dev/null+++ b/packages/skills/package.json@@ -0,0 +1,8 @@+{+ "repository": {+ "url": "https://github.com/remotion-dev/remotion/tree/main/packages/skills"+ },+ "name": "skills",+ "private": true,+ "version": "4.0.407"+}diff --git a/packages/skills/skills/3d/SKILL.md b/packages/skills/skills/3d/SKILL.mdnew file mode 100644index 0000000000..e06082cb9a--- /dev/null+++ b/packages/skills/skills/3d/SKILL.md@@ -0,0 +1,121 @@+---+name: 3d+description: 3D animation patterns using ThreeCanvas for Remotion. Use when creating 3D objects, ThreeJS content, spatial animations, rotating cubes, or 3D scenes.+metadata:+ impact: MEDIUM+ tags: 3d, three, threejs, webgl, spatial+---++## ThreeCanvas Setup++Always wrap 3D content in ThreeCanvas and include proper lighting.++**Incorrect (missing ThreeCanvas wrapper):**++```tsx+<mesh rotation={[0, frame * 0.02, 0]}>+ <boxGeometry args={[2, 2, 2]} />+ <meshStandardMaterial color="#4a9eff" />+</mesh>+```++**Correct (proper ThreeCanvas setup):**++```tsx+import { ThreeCanvas } from "@remotion/three";++<ThreeCanvas>+ <ambientLight intensity={0.5} />+ <pointLight position={[10, 10, 10]} />+ <mesh rotation={[0, frame * 0.02, 0]}>+ <boxGeometry args={[2, 2, 2]} />+ <meshStandardMaterial color="#4a9eff" />+ </mesh>+</ThreeCanvas>+```++## Lighting Setup++Every 3D scene needs ambient + directional light for depth.++**Incorrect (no lighting - objects appear flat/black):**++```tsx+<ThreeCanvas>+ <mesh>+ <sphereGeometry args={[1, 32, 32]} />+ <meshStandardMaterial color="red" />+ </mesh>+</ThreeCanvas>+```++**Correct (proper lighting):**++```tsx+<ThreeCanvas>+ <ambientLight intensity={0.4} />+ <directionalLight position={[5, 5, 5]} intensity={0.8} />+ <mesh>+ <sphereGeometry args={[1, 32, 32]} />+ <meshStandardMaterial color="red" />+ </mesh>+</ThreeCanvas>+```++## Frame-Based Rotation++Use frame directly for smooth continuous rotation.++```tsx+const frame = useCurrentFrame();+const rotationY = frame * 0.02; // Adjust speed with multiplier++<mesh rotation={[0, rotationY, 0]}>+ <boxGeometry args={[2, 2, 2]} />+ <meshStandardMaterial color="#4a9eff" />+</mesh>+```++## Floating/Hovering Animation++Use sine wave on Y position for organic floating effect.++```tsx+const frame = useCurrentFrame();+const floatY = Math.sin(frame * 0.1) * 0.3; // Amplitude 0.3, speed 0.1++<mesh position={[0, floatY, 0]}>+ {/* geometry and material */}+</mesh>+```++## Spring-Based Scale Entrance++Use spring() for bouncy 3D object entrances.++```tsx+const scaleProgress = spring({+ frame,+ fps,+ config: { damping: 12, stiffness: 100 }+});++<mesh scale={[scaleProgress, scaleProgress, scaleProgress]}>+ {/* geometry and material */}+</mesh>+```++## Camera Positioning++Position camera at reasonable distance for scene visibility.++```tsx+<ThreeCanvas camera={{ position: [0, 0, 5], fov: 75 }}>+ {/* scene content */}+</ThreeCanvas>+```++## Complete Examples++For full working code examples, see:+- [Falling Spheres Example](../example-falling-spheres/SKILL.md) - 3D bouncing spheres with physics simulationdiff --git a/packages/skills/skills/charts/SKILL.md b/packages/skills/skills/charts/SKILL.mdnew file mode 100644index 0000000000..66c7e70dc5--- /dev/null+++ b/packages/skills/skills/charts/SKILL.md@@ -0,0 +1,111 @@+---+name: charts+description: Chart and data visualization patterns for Remotion. Use when creating bar charts, pie charts, histograms, progress bars, or any data-driven animations.+metadata:+ impact: HIGH+ tags: charts, data, visualization, bar-chart, pie-chart, graphs+---++## Bar Chart Animations++Stagger bar entrances with 3-5 frame delays and use spring() for organic motion.++**Incorrect (all bars animate together):**++```tsx+const bars = data.map((item, i) => {+ const height = spring({ frame, fps, config: { damping: 18 } });+ return <div style={{ height: height * item.value }} />;+});+```++**Correct (staggered entrances):**++```tsx+const STAGGER_DELAY = 5;++const bars = data.map((item, i) => {+ const delay = i * STAGGER_DELAY;+ const height = spring({+ frame: frame - delay,+ fps,+ config: { damping: 18, stiffness: 80 }+ });+ return <div style={{ height: height * item.value }} />;+});+```++## Always Include Y-Axis Labels++Charts without axis labels are hard to read. Always add labeled tick marks.++**Incorrect (no axis):**++```tsx+<div style={{ display: "flex", alignItems: "flex-end", gap: 8 }}>+ {bars}+</div>+```++**Correct (with Y-axis):**++```tsx+const yAxisSteps = [0, 25, 50, 75, 100];++<div style={{ display: "flex" }}>+ <div style={{ display: "flex", flexDirection: "column", justifyContent: "space-between" }}>+ {yAxisSteps.reverse().map(step => (+ <span style={{ fontSize: 12, color: "#888" }}>{step}</span>+ ))}+ </div>+ <div style={{ display: "flex", alignItems: "flex-end", gap: 8, borderLeft: "1px solid #333" }}>+ {bars}+ </div>+</div>+```++## Value Labels Inside Bars++Position value labels inside bars when height is sufficient, fade in after bar animates.++```tsx+const barHeight = normalizedHeight * progress;++<div style={{ height: barHeight, backgroundColor: COLOR_BAR }}>+ {barHeight > 30 && (+ <span style={{ opacity: progress, fontSize: 11 }}>+ {item.value.toLocaleString()}+ </span>+ )}+</div>+```++## Pie Chart Animation++Animate segments using stroke-dashoffset, starting from 12 o'clock.++```tsx+const circumference = 2 * Math.PI * radius;+const segmentLength = (value / total) * circumference;+const offset = interpolate(progress, [0, 1], [segmentLength, 0]);++<circle+ r={radius}+ cx={center}+ cy={center}+ fill="none"+ stroke={color}+ strokeWidth={strokeWidth}+ strokeDasharray={`${segmentLength} ${circumference}`}+ strokeDashoffset={offset}+ transform={`rotate(-90 ${center} ${center})`}+/>+```++## Complete Examples++For full working code examples, see:+- [Histogram Example](../example-histogram/SKILL.md) - Animated bar chart with @remotion/shapes+- [Gold Price Chart Example](../example-gold-price-chart/SKILL.md) - Bar chart with Y-axis labels and staggered springs+- [Progress Bar Example](../example-progress-bar/SKILL.md) - Loading bar from 0 to 100%+- [Counter Animation Example](../example-counter/SKILL.md) - Animated number countersdiff --git a/packages/skills/skills/example-animated-shapes/SKILL.md b/packages/skills/skills/example-animated-shapes/SKILL.mdnew file mode 100644index 0000000000..437ee05d13--- /dev/null+++ b/packages/skills/skills/example-animated-shapes/SKILL.md@@ -0,0 +1,22 @@+---+name: example-animated-shapes+description: Complete working example of bouncing and rotating SVG shapes (circle, triangle, rect, star) with spring animations using @remotion/shapes.+metadata:+ category: Other+ durationInFrames: 180+ fps: 30+---++## Animated Shapes Example++Bouncing and rotating SVG shapes with spring animations.++See the full implementation in [assets/example.tsx](assets/example.tsx).++### Key Features++- Uses @remotion/shapes components (Circle, Triangle, Rect, Star)+- Staggered spring entrances for each shape+- Continuous bounce animation using sine wave+- Rotation animation for the star shape+- Stroke and fill stylingdiff --git a/packages/skills/skills/example-animated-shapes/assets/example.tsx b/packages/skills/skills/example-animated-shapes/assets/example.tsxnew file mode 100644index 0000000000..25825ea95d--- /dev/null+++ b/packages/skills/skills/example-animated-shapes/assets/example.tsx@@ -0,0 +1,81 @@+import { AbsoluteFill, useCurrentFrame, useVideoConfig, spring, interpolate } from "remotion";+import { Circle, Triangle, Rect, Star } from "@remotion/shapes";++export const MyAnimation = () => {+ const frame = useCurrentFrame();+ const { fps } = useVideoConfig();++ const shapes = [+ { type: "circle", color: "#6366f1", delay: 0 },+ { type: "triangle", color: "#10b981", delay: 15 },+ { type: "rect", color: "#f59e0b", delay: 30 },+ { type: "star", color: "#ec4899", delay: 45 },+ ];++ return (+ <AbsoluteFill+ style={{+ backgroundColor: "#0f0f0f",+ justifyContent: "center",+ alignItems: "center",+ }}+ >+ <div+ style={{+ display: "flex",+ gap: 80,+ alignItems: "center",+ }}+ >+ {shapes.map((shape, i) => {+ const entrance = spring({+ frame: frame - shape.delay,+ fps,+ config: { damping: 12, stiffness: 200 },+ });++ const rotation = interpolate(+ frame,+ [0, 180],+ [0, 360],+ { extrapolateRight: "clamp" }+ );++ const bounce = Math.sin((frame - shape.delay) * 0.1) * 10;++ const scale = entrance;+ const opacity = entrance;++ const shapeProps = {+ fill: shape.color,+ stroke: "#fff",+ strokeWidth: 2,+ };++ return (+ <div+ key={i}+ style={{+ opacity,+ transform: `scale(${scale}) translateY(${bounce}px) rotate(${shape.type === "star" ? rotation : 0}deg)`,+ }}+ >+ {shape.type === "circle" && (+ <Circle radius={60} {...shapeProps} />+ )}+ {shape.type === "triangle" && (+ <Triangle length={120} direction="up" {...shapeProps} />+ )}+ {shape.type === "rect" && (+ <Rect width={100} height={100} cornerRadius={12} {...shapeProps} />+ )}+ {shape.type === "star" && (+ <Star points={5} innerRadius={40} outerRadius={70} {...shapeProps} />+ )}+ </div>+ );+ })}+ </div>+ </AbsoluteFill>+ );+};diff --git a/packages/skills/skills/example-chat-messages/SKILL.md b/packages/skills/skills/example-chat-messages/SKILL.mdnew file mode 100644index 0000000000..5336a7402b--- /dev/null+++ b/packages/skills/skills/example-chat-messages/SKILL.md@@ -0,0 +1,22 @@+---+name: example-chat-messages+description: Complete working example of WhatsApp-style chat bubbles with bouncy spring animations and staggered message entrances.+metadata:+ category: Text+ durationInFrames: 180+ fps: 30+---++## Chat Messages Example++WhatsApp-style bouncy message bubbles with staggered entrances.++See the full implementation in [assets/example.tsx](assets/example.tsx).++### Key Features++- Proper chat alignment (sent right, received left)+- Spring physics for bouncy entrance+- Staggered message appearance with delays+- Scale and slide animations combined+- WhatsApp-style color schemediff --git a/packages/skills/skills/example-chat-messages/assets/example.tsx b/packages/skills/skills/example-chat-messages/assets/example.tsxnew file mode 100644index 0000000000..6036619c11--- /dev/null+++ b/packages/skills/skills/example-chat-messages/assets/example.tsx@@ -0,0 +1,70 @@+import { AbsoluteFill, useCurrentFrame, useVideoConfig, spring } from "remotion";++export const MyAnimation = () => {+ const frame = useCurrentFrame();+ const { fps } = useVideoConfig();++ const messages = [+ { text: "Hey! How are you?", isMe: false, delay: 0 },+ { text: "I'm good! Working on Remotion", isMe: true, delay: 45 },+ { text: "That's awesome! Show me!", isMe: false, delay: 90 },+ { text: "Check this out!", isMe: true, delay: 135 },+ ];++ const messageHeight = 100;++ return (+ <AbsoluteFill+ style={{+ backgroundColor: "#0a0a0a",+ padding: 60,+ justifyContent: "flex-end",+ paddingBottom: 80,+ }}+ >+ <div style={{ width: "100%", position: "relative" }}>+ {messages.map((msg, i) => {+ const progress = spring({+ frame: frame - msg.delay,+ fps,+ config: { damping: 12, stiffness: 200 },+ });++ if (frame < msg.delay) return null;++ const messagesAfter = messages.filter((m, idx) => idx > i && frame >= m.delay).length;+ const yOffset = messagesAfter * messageHeight;++ const xOffset = msg.isMe ? (1 - progress) * 100 : (1 - progress) * -100;++ return (+ <div+ key={i}+ style={{+ display: "flex",+ justifyContent: msg.isMe ? "flex-end" : "flex-start",+ marginBottom: 24,+ opacity: progress,+ transform: `translateX(${xOffset}px) translateY(${-yOffset}px) scale(${0.8 + progress * 0.2})`,+ }}+ >+ <div+ style={{+ backgroundColor: msg.isMe ? "#25D366" : "#2a2a2a",+ color: "#fff",+ padding: "20px 28px",+ borderRadius: 24,+ fontSize: 42,+ fontFamily: "system-ui, sans-serif",+ maxWidth: "70%",+ }}+ >+ {msg.text}+ </div>+ </div>+ );+ })}+ </div>+ </AbsoluteFill>+ );+};diff --git a/packages/skills/skills/example-counter/SKILL.md b/packages/skills/skills/example-counter/SKILL.mdnew file mode 100644index 0000000000..f0bab52db3--- /dev/null+++ b/packages/skills/skills/example-counter/SKILL.md@@ -0,0 +1,22 @@+---+name: example-counter+description: Complete working example of animated number counters with multiple metrics, staggered animations, and color-coded values.+metadata:+ category: Charts+ durationInFrames: 150+ fps: 30+---++## Counter Animation Example++Animated number counters displaying multiple metrics with staggered entrances.++See the full implementation in [assets/example.tsx](assets/example.tsx).++### Key Features++- Multiple metric counters animating simultaneously+- Staggered entrance animations for each metric+- Support for prefixes ($) and suffixes (%)+- Tabular numeric font for stable width+- Fade and slide entrance effectsdiff --git a/packages/skills/skills/example-counter/assets/example.tsx b/packages/skills/skills/example-counter/assets/example.tsxnew file mode 100644index 0000000000..9a96c3c499--- /dev/null+++ b/packages/skills/skills/example-counter/assets/example.tsx@@ -0,0 +1,81 @@+import { AbsoluteFill, useCurrentFrame, useVideoConfig, interpolate } from "remotion";++export const MyAnimation = () => {+ const frame = useCurrentFrame();+ const { durationInFrames } = useVideoConfig();++ const metrics = [+ { label: "Users", target: 10000, color: "#4f46e5" },+ { label: "Revenue", target: 50000, prefix: "$", color: "#10b981" },+ { label: "Growth", target: 127, suffix: "%", color: "#f59e0b" },+ ];++ const progress = interpolate(+ frame,+ [0, durationInFrames * 0.7],+ [0, 1],+ { extrapolateRight: "clamp" }+ );++ return (+ <AbsoluteFill+ style={{+ backgroundColor: "#0f0f0f",+ justifyContent: "center",+ alignItems: "center",+ }}+ >+ <div+ style={{+ display: "flex",+ gap: 60,+ }}+ >+ {metrics.map((metric, i) => {+ const staggeredProgress = interpolate(+ progress,+ [i * 0.15, i * 0.15 + 0.7],+ [0, 1],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" }+ );++ const value = Math.round(metric.target * staggeredProgress);++ return (+ <div+ key={i}+ style={{+ textAlign: "center",+ opacity: interpolate(staggeredProgress, [0, 0.2], [0, 1]),+ transform: `translateY(${(1 - staggeredProgress) * 20}px)`,+ minWidth: 200,+ }}+ >+ <div+ style={{+ fontSize: 72,+ fontWeight: "bold",+ color: metric.color,+ fontFamily: "system-ui, sans-serif",+ fontVariantNumeric: "tabular-nums",+ }}+ >+ {metric.prefix || ""}{value.toLocaleString()}{metric.suffix || ""}+ </div>+ <div+ style={{+ fontSize: 24,+ color: "#888",+ marginTop: 8,+ fontFamily: "system-ui, sans-serif",+ }}+ >+ {metric.label}+ </div>+ </div>+ );+ })}+ </div>+ </AbsoluteFill>+ );+};diff --git a/packages/skills/skills/example-falling-spheres/SKILL.md b/packages/skills/skills/example-falling-spheres/SKILL.mdnew file mode 100644index 0000000000..154c750a21--- /dev/null+++ b/packages/skills/skills/example-falling-spheres/SKILL.md@@ -0,0 +1,23 @@+---+name: example-falling-spheres+description: Complete working example of 3D bouncing golden spheres with physics simulation using @remotion/three.+metadata:+ category: 3D+ durationInFrames: 450+ fps: 60+---++## Falling Spheres Example++Glowing golden spheres with realistic bounce physics and 3D rendering.++See the full implementation in [assets/example.tsx](assets/example.tsx).++### Key Features++- ThreeCanvas setup with proper lighting+- Realistic gravity and bounce physics simulation+- Multiple spheres with staggered delays+- Squash/stretch deformation on impact+- Emissive glow effects on materials+- Ground plane with metallic materialdiff --git a/packages/skills/skills/example-falling-spheres/assets/example.tsx b/packages/skills/skills/example-falling-spheres/assets/example.tsxnew file mode 100644index 0000000000..12b9cdcaaf--- /dev/null+++ b/packages/skills/skills/example-falling-spheres/assets/example.tsx@@ -0,0 +1,104 @@+import { AbsoluteFill, useCurrentFrame, useVideoConfig } from "remotion";+import { ThreeCanvas } from "@remotion/three";++export const MyAnimation = () => {+ const frame = useCurrentFrame();+ const { width, height, fps } = useVideoConfig();++ const spheres = [+ { x: -1.5, z: -0.5, delay: 0, radius: 0.4, restitution: 0.75 },+ { x: 0, z: 0, delay: 20, radius: 0.5, restitution: 0.75 },+ { x: 1.5, z: 0.5, delay: 40, radius: 0.35, restitution: 0.75 },+ { x: -0.8, z: 1, delay: 60, radius: 0.45, restitution: 0.75 },+ { x: 0.8, z: -1, delay: 80, radius: 0.38, restitution: 0.75 },+ ];++ const gravity = 12;+ const groundY = -2;++ // Realistic bounce physics simulation+ const simulateBounce = (f: number, delay: number, radius: number, restitution: number) => {+ const elapsed = Math.max(0, f - delay);+ const t = elapsed / fps;+ const startY = 6;+ const surfaceY = groundY + radius;++ // Calculate time to first impact+ const firstImpactTime = Math.sqrt(2 * (startY - surfaceY) / gravity);++ if (t <= firstImpactTime) {+ const y = startY - 0.5 * gravity * t * t;+ return { y, squash: 1 };+ }++ // After first impact, simulate bounces+ let currentVelocity = gravity * firstImpactTime;+ let bounceStartTime = firstImpactTime;++ for (let bounce = 0; bounce < 20; bounce++) {+ currentVelocity *= restitution;++ if (currentVelocity < 0.5) {+ return { y: surfaceY, squash: 1 };+ }++ const bounceDuration = 2 * currentVelocity / gravity;+ const timeInBounce = t - bounceStartTime;++ if (timeInBounce <= bounceDuration) {+ const y = surfaceY + currentVelocity * timeInBounce - 0.5 * gravity * timeInBounce * timeInBounce;+ const impactProximity = Math.abs(y - surfaceY);+ const squash = impactProximity < 0.08 ? 0.65 + (impactProximity / 0.08) * 0.35 : 1;+ return { y: Math.max(surfaceY, y), squash };+ }++ bounceStartTime += bounceDuration;+ }++ return { y: surfaceY, squash: 1 };+ };++ return (+ <AbsoluteFill style={{ backgroundColor: "#000000" }}>+ <ThreeCanvas+ width={width}+ height={height}+ camera={{ position: [0, 3, 8], fov: 40 }}+ >+ <ambientLight intensity={0.05} />++ <mesh rotation={[-Math.PI / 2, 0, 0]} position={[0, groundY, 0]}>+ <planeGeometry args={[20, 20]} />+ <meshStandardMaterial color="#0a0a0a" metalness={0.9} roughness={0.3} />+ </mesh>++ {spheres.map((sphere, i) => {+ const { y, squash } = simulateBounce(frame, sphere.delay, sphere.radius, sphere.restitution);+ const stretch = 1 / squash;++ return (+ <group key={i} position={[sphere.x, y, sphere.z]}>+ <pointLight+ color="#ffd700"+ intensity={0.8}+ distance={4}+ decay={2}+ />+ {/* Golden sphere */}+ <mesh scale={[1, squash, stretch]}>+ <sphereGeometry args={[sphere.radius, 32, 32]} />+ <meshStandardMaterial+ color="#ffd700"+ emissive="#cc7a00"+ emissiveIntensity={0.15}+ metalness={0.4}+ roughness={0.6}+ />+ </mesh>+ </group>+ );+ })}+ </ThreeCanvas>+ </AbsoluteFill>+ );+};diff --git a/packages/skills/skills/example-gold-price-chart/SKILL.md b/packages/skills/skills/example-gold-price-chart/SKILL.mdnew file mode 100644index 0000000000..97e4eed9ce--- /dev/null+++ b/packages/skills/skills/example-gold-price-chart/SKILL.md@@ -0,0 +1,23 @@+---+name: example-gold-price-chart+description: Complete working example of an animated bar chart with Y-axis labels, monthly data, and staggered spring animations.+metadata:+ category: Charts+ durationInFrames: 150+ fps: 30+---++## Gold Price Chart Example++Elegant animated bar chart showing gold prices with Y-axis, staggered spring animations, and full-width layout.++See the full implementation in [assets/example.tsx](assets/example.tsx).++### Key Features++- Y-axis with labeled tick marks+- Staggered spring animations for each bar+- Value labels inside bars (when height is sufficient)+- Header with title and unit+- Axis lines for chart structure+- Monthly data labelsdiff --git a/packages/skills/skills/example-gold-price-chart/assets/example.tsx b/packages/skills/skills/example-gold-price-chart/assets/example.tsxnew file mode 100644index 0000000000..fddf534eb7--- /dev/null+++ b/packages/skills/skills/example-gold-price-chart/assets/example.tsx@@ -0,0 +1,183 @@+import { useCurrentFrame, useVideoConfig, AbsoluteFill, spring } from "remotion";++export const MyAnimation = () => {+ /*+ * Elegant animated bar chart showing gold prices with Y-axis, staggered spring animations, and full-width layout.+ */+ const frame = useCurrentFrame();+ const { fps, height: videoHeight } = useVideoConfig();++ const TITLE = "Gold Price 2024";+ const UNIT = "USD per troy ounce";+ const COLOR_BAR = "#D4AF37";+ const COLOR_TEXT = "#ffffff";+ const COLOR_MUTED = "#888888";+ const COLOR_BG = "#0a0a0a";+ const COLOR_AXIS = "#333333";++ const PADDING = 50;+ const HEADER_HEIGHT = 70;+ const LABEL_HEIGHT = 32;+ const BAR_GAP = 8;+ const BAR_RADIUS = 4;+ const TITLE_FONT_SIZE = 24;+ const LABEL_FONT_SIZE = 11;+ const VALUE_FONT_SIZE = 11;+ const AXIS_FONT_SIZE = 12;+ const STAGGER_DELAY = 5;+ const HEADER_START_FRAME = 0;+ const BARS_START_FRAME = 10;+ const SPRING_DAMPING = 18;+ const SPRING_STIFFNESS = 80;++ const data = [+ { month: "Jan", price: 2039 },+ { month: "Feb", price: 2024 },+ { month: "Mar", price: 2160 },+ { month: "Apr", price: 2330 },+ { month: "May", price: 2327 },+ { month: "Jun", price: 2339 },+ { month: "Jul", price: 2426 },+ { month: "Aug", price: 2503 },+ { month: "Sep", price: 2634 },+ { month: "Oct", price: 2735 },+ { month: "Nov", price: 2672 },+ { month: "Dec", price: 2650 },+ ];++ const minPrice = 1900;+ const maxPrice = 2800;+ const priceRange = maxPrice - minPrice;+ const chartHeight = videoHeight - (PADDING * 2) - HEADER_HEIGHT - LABEL_HEIGHT;+ const yAxisSteps = [1900, 2100, 2300, 2500, 2700];++ const headerOpacity = spring({+ frame: frame - HEADER_START_FRAME,+ fps,+ config: { damping: 20, stiffness: 100 },+ });++ return (+ <AbsoluteFill+ style={{+ backgroundColor: COLOR_BG,+ padding: PADDING,+ display: "flex",+ flexDirection: "column",+ fontFamily: "Inter, sans-serif",+ }}+ >+ {/* Header */}+ <div style={{ height: HEADER_HEIGHT, opacity: headerOpacity, marginBottom: 10 }}>+ <div style={{ color: COLOR_TEXT, fontSize: TITLE_FONT_SIZE, fontWeight: 600 }}>{TITLE}</div>+ <div style={{ color: COLOR_MUTED, fontSize: 14, marginTop: 4 }}>{UNIT}</div>+ </div>++ {/* Chart container */}+ <div style={{ display: "flex", alignItems: "flex-end", width: "100%", flex: 1 }}>+ {/* Y-Axis */}+ <div+ style={{+ display: "flex",+ flexDirection: "column",+ justifyContent: "space-between",+ height: chartHeight,+ paddingRight: 12,+ marginBottom: LABEL_HEIGHT,+ }}+ >+ {yAxisSteps.slice().reverse().map((step) => (+ <div+ key={step}+ style={{+ color: COLOR_MUTED,+ fontSize: AXIS_FONT_SIZE,+ textAlign: "right",+ minWidth: 40,+ }}+ >+ {step.toLocaleString()}+ </div>+ ))}+ </div>++ {/* Chart area */}+ <div+ style={{+ display: "flex",+ alignItems: "flex-end",+ gap: BAR_GAP,+ height: chartHeight,+ flex: 1,+ borderLeft: `1px solid ${COLOR_AXIS}`,+ borderBottom: `1px solid ${COLOR_AXIS}`,+ paddingLeft: 8,+ }}+ >+ {data.map((item, i) => {+ const delay = i * STAGGER_DELAY;+ const progress = spring({+ frame: frame - delay - BARS_START_FRAME,+ fps,+ config: { damping: SPRING_DAMPING, stiffness: SPRING_STIFFNESS },+ });++ const normalizedHeight = ((item.price - minPrice) / priceRange) * chartHeight;+ const height = normalizedHeight * progress;++ return (+ <div+ key={i}+ style={{+ textAlign: "center",+ flex: 1,+ height: "100%",+ display: "flex",+ flexDirection: "column",+ justifyContent: "flex-end",+ }}+ >+ <div+ style={{+ width: "100%",+ height,+ backgroundColor: COLOR_BAR,+ borderRadius: `${BAR_RADIUS}px ${BAR_RADIUS}px 0 0`,+ display: "flex",+ justifyContent: "center",+ alignItems: "flex-start",+ paddingTop: 6,+ minHeight: height > 0 ? 4 : 0,+ }}+ >+ {height > 30 && (+ <span+ style={{+ color: COLOR_BG,+ fontSize: VALUE_FONT_SIZE,+ fontWeight: 600,+ opacity: progress,+ }}+ >+ {item.price.toLocaleString()}+ </span>+ )}+ </div>+ <div+ style={{+ color: COLOR_MUTED,+ fontSize: LABEL_FONT_SIZE,+ marginTop: 8,+ height: LABEL_HEIGHT - 8,+ }}+ >+ {item.month}+ </div>+ </div>+ );+ })}+ </div>+ </div>+ </AbsoluteFill>+ );+};diff --git a/packages/skills/skills/example-histogram/SKILL.md b/packages/skills/skills/example-histogram/SKILL.mdnew file mode 100644index 0000000000..1f24e57727--- /dev/null+++ b/packages/skills/skills/example-histogram/SKILL.md@@ -0,0 +1,22 @@+---+name: example-histogram+description: Complete working example of an animated bar chart using @remotion/shapes with spring animations and staggered entrances.+metadata:+ category: Charts+ durationInFrames: 120+ fps: 30+---++## Histogram Example++Animated bar chart using @remotion/shapes with staggered spring entrances and value labels.++See the full implementation in [assets/example.tsx](assets/example.tsx).++### Key Features++- Uses `@remotion/shapes` Rect component for bars+- Staggered entrance animations with spring physics+- Animated value labels that fade in+- Glow effect using CSS filter+- Responsive bar heights based on data valuesdiff --git a/packages/skills/skills/example-histogram/assets/example.tsx b/packages/skills/skills/example-histogram/assets/example.tsxnew file mode 100644index 0000000000..c5e74c7051--- /dev/null+++ b/packages/skills/skills/example-histogram/assets/example.tsx@@ -0,0 +1,91 @@+import { AbsoluteFill, useCurrentFrame, useVideoConfig, spring } from "remotion";+import { Rect } from "@remotion/shapes";++export const MyAnimation = () => {+ const frame = useCurrentFrame();+ const { fps } = useVideoConfig();++ const data = [+ { label: "Mon", value: 65, color: "#6366f1" },+ { label: "Tue", value: 85, color: "#8b5cf6" },+ { label: "Wed", value: 45, color: "#a855f7" },+ { label: "Thu", value: 95, color: "#d946ef" },+ { label: "Fri", value: 75, color: "#ec4899" },+ ];++ const maxValue = Math.max(...data.map(d => d.value));+ const barWidth = 80;++ return (+ <AbsoluteFill+ style={{+ backgroundColor: "#0a0a0a",+ justifyContent: "center",+ alignItems: "flex-end",+ padding: 60,+ paddingBottom: 100,+ }}+ >+ <div+ style={{+ display: "flex",+ alignItems: "flex-end",+ gap: 24,+ height: 400,+ width: "100%",+ justifyContent: "center",+ }}+ >+ {data.map((item, i) => {+ const delay = i * 10;+ const progress = spring({+ frame: frame - delay,+ fps,+ config: { damping: 15, stiffness: 100 },+ });++ const height = Math.max(1, (item.value / maxValue) * 300 * progress);++ return (+ <div key={i} style={{ textAlign: "center", position: "relative" }}>+ <div style={{ position: "relative", height, width: barWidth }}>+ <Rect+ width={barWidth}+ height={height}+ fill={item.color}+ cornerRadius={12}+ style={{ filter: `drop-shadow(0 0 8px ${item.color}50)` }}+ />+ <span+ style={{+ position: "absolute",+ top: 10,+ left: "50%",+ transform: "translateX(-50%)",+ color: "#fff",+ fontSize: 18,+ fontWeight: "bold",+ opacity: progress,+ fontFamily: "system-ui, sans-serif",+ }}+ >+ {Math.round(item.value * progress)}+ </span>+ </div>+ <div+ style={{+ color: "#888",+ fontSize: 16,+ marginTop: 12,+ fontFamily: "system-ui, sans-serif",+ }}+ >+ {item.label}+ </div>+ </div>+ );+ })}+ </div>+ </AbsoluteFill>+ );+};diff --git a/packages/skills/skills/example-lottie/SKILL.md b/packages/skills/skills/example-lottie/SKILL.mdnew file mode 100644index 0000000000..46250ac14f--- /dev/null+++ b/packages/skills/skills/example-lottie/SKILL.md@@ -0,0 +1,22 @@+---+name: example-lottie+description: Complete working example of loading and displaying Lottie animations from URL using @remotion/lottie.+metadata:+ category: Animation+ durationInFrames: 180+ fps: 60+---++## Lottie Animation Example++Loading and displaying Lottie animations with spring entrance effects.++See the full implementation in [assets/example.tsx](assets/example.tsx).++### Key Features++- Fetches Lottie JSON from remote URL+- Loading state while animation loads+- Spring-based scale and opacity entrance+- Attribution display below animation+- Uses @remotion/lottie componentdiff --git a/packages/skills/skills/example-lottie/assets/example.tsx b/packages/skills/skills/example-lottie/assets/example.tsxnew file mode 100644index 0000000000..fa82656d9d--- /dev/null+++ b/packages/skills/skills/example-lottie/assets/example.tsx@@ -0,0 +1,77 @@+import { AbsoluteFill, useCurrentFrame, useVideoConfig, spring, interpolate } from "remotion";+import { Lottie } from "@remotion/lottie";+import { useState, useEffect } from "react";++export const MyAnimation = () => {+ const frame = useCurrentFrame();+ const { fps } = useVideoConfig();+ const [animationData, setAnimationData] = useState(null);++ useEffect(() => {+ fetch("https://assets-v2.lottiefiles.com/a/73ecc94a-4ccb-4018-a710-835b9eaffeaf/OwGeQT8PCr.json")+ .then((res) => res.json())+ .then((data) => setAnimationData(data))+ .catch((err) => console.error("Failed to load Lottie:", err));+ }, []);++ const entrance = spring({+ frame,+ fps,+ config: { damping: 15, stiffness: 100 },+ });++ const scale = interpolate(entrance, [0, 1], [0.5, 1]);+ const opacity = interpolate(entrance, [0, 1], [0, 1]);++ if (!animationData) {+ return (+ <AbsoluteFill+ style={{+ backgroundColor: "#000000",+ justifyContent: "center",+ alignItems: "center",+ }}+ >+ <div style={{ color: "#94a3b8", fontSize: 24, fontFamily: "system-ui" }}>+ Loading animation...+ </div>+ </AbsoluteFill>+ );+ }++ return (+ <AbsoluteFill+ style={{+ backgroundColor: "#000000",+ justifyContent: "center",+ alignItems: "center",+ }}+ >+ <div+ style={{+ transform: `scale(${scale})`,+ opacity,+ }}+ >+ <Lottie+ animationData={animationData}+ style={{ width: 400, height: 400 }}+ />+ </div>+ <div+ style={{+ position: "absolute",+ bottom: 60,+ color: "#e2e8f0",+ fontSize: 24,+ fontFamily: "system-ui",+ opacity,+ textAlign: "center",+ }}+ >+ <div style={{ fontWeight: "bold", marginBottom: 4 }}>Glowing Fish Loader</div>+ <div style={{ fontSize: 16, color: "#94a3b8" }}>by Mau Ali on LottieFiles</div>+ </div>+ </AbsoluteFill>+ );+};diff --git a/packages/skills/skills/example-morphing-hexagons/SKILL.md b/packages/skills/skills/example-morphing-hexagons/SKILL.mdnew file mode 100644index 0000000000..03f1731d31--- /dev/null+++ b/packages/skills/skills/example-morphing-hexagons/SKILL.md@@ -0,0 +1,23 @@+---+name: example-morphing-hexagons+description: Complete working example of a mesmerizing hexagon grid with pulsing, color-shifting, and glow effects.+metadata:+ category: Other+ durationInFrames: 240+ fps: 30+---++## Morphing Hexagons Example++Mesmerizing hexagon grid with pulsing and color-shifting effects.++See the full implementation in [assets/example.tsx](assets/example.tsx).++### Key Features++- Procedurally generated hexagon grid+- Wave-based pulsing animation+- Dynamic HSL color shifting+- SVG glow filter effect+- Spring-based entrance animations+- Staggered delays based on grid positiondiff --git a/packages/skills/skills/example-morphing-hexagons/assets/example.tsx b/packages/skills/skills/example-morphing-hexagons/assets/example.tsxnew file mode 100644index 0000000000..0da651ac06--- /dev/null+++ b/packages/skills/skills/example-morphing-hexagons/assets/example.tsx@@ -0,0 +1,91 @@+import { AbsoluteFill, useCurrentFrame, useVideoConfig, interpolate, spring } from "remotion";++export const MyAnimation = () => {+ const frame = useCurrentFrame();+ const { fps } = useVideoConfig();++ const hexSize = 50;+ const cols = 7;+ const rows = 5;++ const hexagons: Array<{ x: number; y: number; delay: number }> = [];+ for (let row = 0; row < rows; row++) {+ for (let col = 0; col < cols; col++) {+ const offsetX = row % 2 === 0 ? 0 : hexSize * 0.866;+ hexagons.push({+ x: col * hexSize * 1.732 + offsetX,+ y: row * hexSize * 1.5,+ delay: (row + col) * 3,+ });+ }+ }++ const gridWidth = (cols - 1) * hexSize * 1.732 + hexSize;+ const gridHeight = (rows - 1) * hexSize * 1.5 + hexSize * 2;++ return (+ <AbsoluteFill+ style={{+ backgroundColor: "#0a0a0f",+ justifyContent: "center",+ alignItems: "center",+ }}+ >+ <svg+ width={gridWidth + 100}+ height={gridHeight + 100}+ viewBox={`-50 -50 ${gridWidth + 100} ${gridHeight + 100}`}+ >+ <defs>+ <filter id="glow">+ <feGaussianBlur stdDeviation="3" result="coloredBlur" />+ <feMerge>+ <feMergeNode in="coloredBlur" />+ <feMergeNode in="SourceGraphic" />+ </feMerge>+ </filter>+ </defs>+ {hexagons.map((hex, i) => {+ const wave = Math.sin((frame - hex.delay) * 0.08);+ const pulse = interpolate(wave, [-1, 1], [0.6, 1]);++ const hue = interpolate(+ (frame + hex.delay * 2) % 240,+ [0, 120, 240],+ [280, 200, 280]+ );++ const opacity = interpolate(wave, [-1, 1], [0.3, 0.9]);++ const scale = interpolate(wave, [-1, 1], [0.7, 1]);++ const entrance = spring({+ frame: frame - hex.delay,+ fps,+ config: { damping: 15, stiffness: 120 },+ });++ const points: string[] = [];+ for (let j = 0; j < 6; j++) {+ const angle = (Math.PI / 3) * j - Math.PI / 6;+ const px = hex.x + hexSize * scale * entrance * Math.cos(angle);+ const py = hex.y + hexSize * scale * entrance * Math.sin(angle);+ points.push(`${px},${py}`);+ }++ return (+ <polygon+ key={i}+ points={points.join(" ")}+ fill="none"+ stroke={`hsl(${hue}, 80%, 60%)`}+ strokeWidth={2 * pulse}+ opacity={opacity * entrance}+ filter="url(#glow)"+ />+ );+ })}+ </svg>+ </AbsoluteFill>+ );+};diff --git a/packages/skills/skills/example-progress-bar/SKILL.md b/packages/skills/skills/example-progress-bar/SKILL.mdnew file mode 100644index 0000000000..0ee50cb4f1--- /dev/null+++ b/packages/skills/skills/example-progress-bar/SKILL.md@@ -0,0 +1,22 @@+---+name: example-progress-bar+description: Complete working example of an animated progress bar that fills from 0 to 100% with gradient styling.+metadata:+ category: Other+ durationInFrames: 180+ fps: 30+---++## Progress Bar Example++Animated progress bar with percentage counter and gradient fill.++See the full implementation in [assets/example.tsx](assets/example.tsx).++### Key Features++- Smooth progress animation using interpolate+- Fade-in entrance animation+- Percentage counter that updates in sync+- Gradient fill for visual appeal+- Rounded corners for modern lookdiff --git a/packages/skills/skills/example-progress-bar/assets/example.tsx b/packages/skills/skills/example-progress-bar/assets/example.tsxnew file mode 100644index 0000000000..5ebba374b9--- /dev/null+++ b/packages/skills/skills/example-progress-bar/assets/example.tsx@@ -0,0 +1,80 @@+import { AbsoluteFill, useCurrentFrame, useVideoConfig, interpolate } from "remotion";++export const MyAnimation = () => {+ const frame = useCurrentFrame();+ const { durationInFrames } = useVideoConfig();++ const progress = interpolate(+ frame,+ [0, durationInFrames * 0.8],+ [0, 100],+ { extrapolateRight: "clamp" }+ );++ const opacity = interpolate(+ frame,+ [0, 20],+ [0, 1],+ { extrapolateRight: "clamp" }+ );++ return (+ <AbsoluteFill+ style={{+ backgroundColor: "#1a1a1a",+ justifyContent: "center",+ alignItems: "center",+ opacity,+ }}+ >+ <div style={{ width: 600 }}>+ <div+ style={{+ display: "flex",+ justifyContent: "space-between",+ marginBottom: 16,+ }}+ >+ <span+ style={{+ color: "#fff",+ fontSize: 24,+ fontFamily: "system-ui, sans-serif",+ }}+ >+ Loading...+ </span>+ <span+ style={{+ color: "#10b981",+ fontSize: 24,+ fontWeight: "bold",+ fontFamily: "system-ui, sans-serif",+ }}+ >+ {Math.round(progress)}%+ </span>+ </div>+ <div+ style={{+ width: "100%",+ height: 24,+ backgroundColor: "#333",+ borderRadius: 12,+ overflow: "hidden",+ }}+ >+ <div+ style={{+ width: `${progress}%`,+ height: "100%",+ background: "linear-gradient(90deg, #10b981, #34d399)",+ borderRadius: 12,+ transition: "width 0.1s ease-out",+ }}+ />+ </div>+ </div>+ </AbsoluteFill>+ );+};diff --git a/packages/skills/skills/example-staggered-list/SKILL.md b/packages/skills/skills/example-staggered-list/SKILL.mdnew file mode 100644index 0000000000..b371e66651--- /dev/null+++ b/packages/skills/skills/example-staggered-list/SKILL.md@@ -0,0 +1,22 @@+---+name: example-staggered-list+description: Complete working example of a feature list with staggered spring entrances and slide animations.+metadata:+ category: Other+ durationInFrames: 120+ fps: 30+---++## Staggered List Example++Feature list with staggered spring entrances and subtle slide animations.++See the full implementation in [assets/example.tsx](assets/example.tsx).++### Key Features++- Staggered spring animations for each list item+- Slide-in effect from the right+- Icon boxes with accent color background+- Title and description for each feature+- Spring-animated title entrancediff --git a/packages/skills/skills/example-staggered-list/assets/example.tsx b/packages/skills/skills/example-staggered-list/assets/example.tsxnew file mode 100644index 0000000000..1f14daec79--- /dev/null+++ b/packages/skills/skills/example-staggered-list/assets/example.tsx@@ -0,0 +1,111 @@+import { useCurrentFrame, useVideoConfig, AbsoluteFill, interpolate, spring } from "remotion";++export const MyAnimation = () => {+ /*+ * Feature list with staggered spring entrances and subtle hover-like highlights.+ */+ const frame = useCurrentFrame();+ const { fps } = useVideoConfig();++ const COLOR_BG = "#0f0f0f";+ const COLOR_TEXT = "#ffffff";+ const COLOR_ACCENT = "#6366f1";+ const COLOR_MUTED = "#a1a1aa";++ const TITLE = "Why Choose Us";+ const FEATURES = [+ { icon: "\u26A1", title: "Lightning Fast", desc: "Built for speed from the ground up" },+ { icon: "\uD83D\uDD12", title: "Secure by Default", desc: "Enterprise-grade security included" },+ { icon: "\uD83C\uDFA8", title: "Beautiful Design", desc: "Crafted with attention to detail" },+ { icon: "\uD83D\uDE80", title: "Scale Infinitely", desc: "Grows with your business needs" },+ ];++ const TITLE_FONT_SIZE = 48;+ const ITEM_FONT_SIZE = 28;+ const DESC_FONT_SIZE = 18;+ const ICON_SIZE = 48;+ const ITEM_GAP = 24;+ const PADDING = 60;++ const TITLE_START = 0;+ const ITEMS_START = 20;+ const STAGGER_DELAY = 12;+ const SLIDE_DISTANCE = 30;++ const titleProgress = spring({+ frame: frame - TITLE_START,+ fps,+ config: { damping: 20, stiffness: 100 }+ });++ return (+ <AbsoluteFill style={{+ backgroundColor: COLOR_BG,+ padding: PADDING,+ display: "flex",+ flexDirection: "column",+ justifyContent: "center",+ fontFamily: "Inter, sans-serif"+ }}>+ {/* Title */}+ <div style={{+ fontSize: TITLE_FONT_SIZE,+ fontWeight: 700,+ color: COLOR_TEXT,+ marginBottom: 40,+ opacity: titleProgress,+ transform: `translateY(${(1 - titleProgress) * 20}px)`+ }}>+ {TITLE}+ </div>++ {/* Feature list */}+ <div style={{ display: "flex", flexDirection: "column", gap: ITEM_GAP }}>+ {FEATURES.map((feature, i) => {+ const itemStart = ITEMS_START + i * STAGGER_DELAY;+ const itemProgress = spring({+ frame: frame - itemStart,+ fps,+ config: { damping: 15, stiffness: 120 }+ });+ const opacity = interpolate(itemProgress, [0, 1], [0, 1], { extrapolateLeft: "clamp", extrapolateRight: "clamp" });+ const translateX = interpolate(itemProgress, [0, 1], [SLIDE_DISTANCE, 0], { extrapolateLeft: "clamp", extrapolateRight: "clamp" });++ return (+ <div+ key={i}+ style={{+ display: "flex",+ alignItems: "center",+ gap: 20,+ opacity,+ transform: `translateX(${translateX}px)`+ }}+ >+ <div style={{+ width: ICON_SIZE,+ height: ICON_SIZE,+ borderRadius: 12,+ backgroundColor: COLOR_ACCENT + "20",+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ fontSize: 24+ }}>+ {feature.icon}+ </div>+ <div>+ <div style={{ fontSize: ITEM_FONT_SIZE, fontWeight: 600, color: COLOR_TEXT }}>+ {feature.title}+ </div>+ <div style={{ fontSize: DESC_FONT_SIZE, color: COLOR_MUTED, marginTop: 4 }}>+ {feature.desc}+ </div>+ </div>+ </div>+ );+ })}+ </div>+ </AbsoluteFill>+ );+};diff --git a/packages/skills/skills/example-text-rotation/SKILL.md b/packages/skills/skills/example-text-rotation/SKILL.mdnew file mode 100644index 0000000000..ed331ecc75--- /dev/null+++ b/packages/skills/skills/example-text-rotation/SKILL.md@@ -0,0 +1,21 @@+---+name: example-text-rotation+description: Complete working example of rotating words with dissolve and blur transition effects.+metadata:+ category: Text+ durationInFrames: 240+ fps: 30+---++## Text Rotation Example++Rotating words with fade, scale, and blur transitions.++See the full implementation in [assets/example.tsx](assets/example.tsx).++### Key Features++- Cyclic word rotation with configurable timing+- Combined fade, scale, and blur effects+- Smooth transitions between words+- Easily customizable word list and timingdiff --git a/packages/skills/skills/example-text-rotation/assets/example.tsx b/packages/skills/skills/example-text-rotation/assets/example.tsxnew file mode 100644index 0000000000..fdad67f957--- /dev/null+++ b/packages/skills/skills/example-text-rotation/assets/example.tsx@@ -0,0 +1,71 @@+import { useCurrentFrame, AbsoluteFill, interpolate } from "remotion";++export const MyAnimation = () => {+ const frame = useCurrentFrame();++ // Text content - easily customizable+ const WORDS = ["This is a", "Text rotation example", "using Remotion!"];++ // Animation timing+ const WORD_DURATION = 60; // frames per word+ const FADE_IN_DURATION = 15;+ const FADE_OUT_START = 45;++ // Visual styling+ const FONT_SIZE = 120;+ const FONT_WEIGHT = "bold";+ const COLOR_TEXT = "#eee";+ const COLOR_BACKGROUND = "#1a1a2e";+ const BLUR_AMOUNT = 10;++ const currentWordIndex = Math.floor(frame / WORD_DURATION) % WORDS.length;+ const frameInWord = frame % WORD_DURATION;++ // Fade in/out animation+ const opacity = interpolate(+ frameInWord,+ [0, FADE_IN_DURATION, FADE_OUT_START, WORD_DURATION],+ [0, 1, 1, 0],+ { extrapolateRight: "clamp" }+ );++ // Scale animation+ const scale = interpolate(+ frameInWord,+ [0, FADE_IN_DURATION, FADE_OUT_START, WORD_DURATION],+ [0.8, 1, 1, 1.2],+ { extrapolateRight: "clamp" }+ );++ // Blur animation+ const blur = interpolate(+ frameInWord,+ [0, FADE_IN_DURATION, FADE_OUT_START, WORD_DURATION],+ [BLUR_AMOUNT, 0, 0, BLUR_AMOUNT],+ { extrapolateRight: "clamp" }+ );++ return (+ <AbsoluteFill+ style={{+ backgroundColor: COLOR_BACKGROUND,+ justifyContent: "center",+ alignItems: "center",+ }}+ >+ <h1+ style={{+ fontSize: FONT_SIZE,+ fontWeight: FONT_WEIGHT,+ color: COLOR_TEXT,+ opacity,+ transform: `scale(${scale})`,+ filter: `blur(${blur}px)`,+ fontFamily: "system-ui, sans-serif",+ }}+ >+ {WORDS[currentWordIndex]}+ </h1>+ </AbsoluteFill>+ );+};diff --git a/packages/skills/skills/example-typewriter-highlight/SKILL.md b/packages/skills/skills/example-typewriter-highlight/SKILL.mdnew file mode 100644index 0000000000..9afae13f79--- /dev/null+++ b/packages/skills/skills/example-typewriter-highlight/SKILL.md@@ -0,0 +1,23 @@+---+name: example-typewriter-highlight+description: Complete working example of a typewriter effect with blinking cursor, dramatic pause, and spring-animated word highlight.+metadata:+ category: Text+ durationInFrames: 180+ fps: 30+---++## Typewriter with Highlight Example++Typewriter effect with blinking cursor, dramatic pause, spring-based highlight, and layer crossfade.++See the full implementation in [assets/example.tsx](assets/example.tsx).++### Key Features++- String slicing for proper typewriter effect+- Smooth blinking cursor using interpolate+- Dramatic pause between text sections+- Spring-animated highlight wipe effect+- Two-layer crossfade transition+- Configurable timing and colorsdiff --git a/packages/skills/skills/example-typewriter-highlight/assets/example.tsx b/packages/skills/skills/example-typewriter-highlight/assets/example.tsxnew file mode 100644index 0000000000..6e736e90bc--- /dev/null+++ b/packages/skills/skills/example-typewriter-highlight/assets/example.tsx@@ -0,0 +1,179 @@+import {+ useCurrentFrame,+ useVideoConfig,+ AbsoluteFill,+ interpolate,+ spring,+} from "remotion";++export const MyAnimation = () => {+ /*+ * Typewriter with blinking cursor, dramatic pause, spring-based highlight, and layer crossfade.+ */+ const frame = useCurrentFrame();+ const { fps } = useVideoConfig();++ const COLOR_BG = "#ffffff";+ const COLOR_TEXT = "#000000";+ const COLOR_HIGHLIGHT = "#A7C7E7";++ const FULL_TEXT = "From prompt to motion graphics. This is Remotion.";+ const HIGHLIGHT_WORD = "Remotion";+ const CARET_SYMBOL = "\u258C";+ const SPLIT_AFTER = " This is Remotion.";++ const FONT_SIZE = 72;+ const FONT_WEIGHT = 700;+ const CHAR_FRAMES = 2;+ const CURSOR_BLINK_FRAMES = 16;+ const HIGHLIGHT_DELAY = 6;+ const HIGHLIGHT_WIPE_DURATION = 18;+ const CROSSFADE_DURATION = 8;+ const WAIT_AFTER_PRE_SECONDS = 1;++ const WAIT_AFTER_PRE_FRAMES = Math.round(fps * WAIT_AFTER_PRE_SECONDS);+ const f = frame;++ const splitIndex = FULL_TEXT.indexOf(SPLIT_AFTER);+ const preLen = splitIndex >= 0 ? splitIndex : FULL_TEXT.length;+ const postLen = FULL_TEXT.length - preLen;++ let typedChars = 0;+ if (f < preLen * CHAR_FRAMES) {+ typedChars = Math.floor(f / CHAR_FRAMES);+ } else if (f < preLen * CHAR_FRAMES + WAIT_AFTER_PRE_FRAMES) {+ typedChars = preLen;+ } else {+ const postPhase = f - preLen * CHAR_FRAMES - WAIT_AFTER_PRE_FRAMES;+ typedChars = Math.min(+ FULL_TEXT.length,+ preLen + Math.floor(postPhase / CHAR_FRAMES),+ );+ }+ const typedText = FULL_TEXT.slice(0, typedChars);+ const typingDone = typedChars >= FULL_TEXT.length;++ const caretOpacity = !typingDone+ ? interpolate(+ f % CURSOR_BLINK_FRAMES,+ [0, CURSOR_BLINK_FRAMES / 2, CURSOR_BLINK_FRAMES],+ [1, 0, 1],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ )+ : 0;++ const highlightIndex = FULL_TEXT.indexOf(HIGHLIGHT_WORD);+ const hasHighlight = highlightIndex >= 0;+ const preText = hasHighlight ? FULL_TEXT.slice(0, highlightIndex) : FULL_TEXT;+ const postText = hasHighlight+ ? FULL_TEXT.slice(highlightIndex + HIGHLIGHT_WORD.length)+ : "";++ const typeEnd =+ preLen * CHAR_FRAMES + WAIT_AFTER_PRE_FRAMES + postLen * CHAR_FRAMES;+ const highlightStart = typeEnd + HIGHLIGHT_DELAY;++ const typedOpacity = interpolate(+ f,+ [highlightStart - CROSSFADE_DURATION, highlightStart + CROSSFADE_DURATION],+ [1, 0],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );+ const finalOpacity = interpolate(+ f,+ [highlightStart, highlightStart + CROSSFADE_DURATION],+ [0, 1],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );++ const entrance = spring({+ fps,+ frame: f,+ config: { damping: 200, stiffness: 120 },+ durationInFrames: 20,+ });+ const containerScale = interpolate(entrance, [0, 1], [0.98, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ const highlightProgress = spring({+ fps,+ frame: f - highlightStart,+ config: { damping: 200, stiffness: 180 },+ durationInFrames: HIGHLIGHT_WIPE_DURATION,+ });+ const highlightScaleX = Math.max(0, Math.min(1, highlightProgress));++ return (+ <AbsoluteFill+ style={{+ backgroundColor: COLOR_BG,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ fontFamily: "Inter, sans-serif",+ }}+ >+ <div+ style={{ position: "relative", transform: `scale(${containerScale})` }}+ >+ {/* Typing layer */}+ <div+ style={{+ color: COLOR_TEXT,+ fontSize: FONT_SIZE,+ fontWeight: FONT_WEIGHT,+ lineHeight: 1.15,+ whiteSpace: "pre-wrap",+ opacity: typedOpacity,+ }}+ >+ <span>{typedText}</span>+ <span style={{ opacity: caretOpacity }}>{CARET_SYMBOL}</span>+ </div>+ {/* Final layer with highlight */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ color: COLOR_TEXT,+ fontSize: FONT_SIZE,+ fontWeight: FONT_WEIGHT,+ lineHeight: 1.15,+ whiteSpace: "pre-wrap",+ opacity: finalOpacity,+ }}+ >+ {hasHighlight ? (+ <>+ <span>{preText}</span>+ <span style={{ position: "relative", display: "inline-block" }}>+ <span+ style={{+ position: "absolute",+ left: 0,+ right: 0,+ top: "50%",+ height: "1.05em",+ transform: `translateY(-50%) scaleX(${highlightScaleX})`,+ transformOrigin: "left center",+ backgroundColor: COLOR_HIGHLIGHT,+ borderRadius: "0.18em",+ zIndex: 0,+ }}+ />+ <span style={{ position: "relative", zIndex: 1 }}>+ {HIGHLIGHT_WORD}+ </span>+ </span>+ <span>{postText}</span>+ </>+ ) : (+ <span>{FULL_TEXT}</span>+ )}+ </div>+ </div>+ </AbsoluteFill>+ );+};diff --git a/packages/skills/skills/example-word-carousel/SKILL.md b/packages/skills/skills/example-word-carousel/SKILL.mdnew file mode 100644index 0000000000..b24debda2d--- /dev/null+++ b/packages/skills/skills/example-word-carousel/SKILL.md@@ -0,0 +1,22 @@+---+name: example-word-carousel+description: Complete working example of rotating words with crossfade and blur transitions, using stable width container.+metadata:+ category: Text+ durationInFrames: 200+ fps: 30+---++## Word Carousel Example++Rotating words with crossfade and blur transitions.++See the full implementation in [assets/example.tsx](assets/example.tsx).++### Key Features++- Stable width container using longest word+- Smooth crossfade between words+- Blur effect during transitions+- Configurable hold and flip durations+- Prefix text with rotating suffixdiff --git a/packages/skills/skills/example-word-carousel/assets/example.tsx b/packages/skills/skills/example-word-carousel/assets/example.tsxnew file mode 100644index 0000000000..2b3581fb4f--- /dev/null+++ b/packages/skills/skills/example-word-carousel/assets/example.tsx@@ -0,0 +1,118 @@+import { useCurrentFrame, AbsoluteFill, interpolate } from "remotion";++export const MyAnimation = () => {+ /*+ * Prefix text with rotating words that crossfade with blur.+ */+ const frame = useCurrentFrame();++ const COLOR_TEXT = "#7b92c1";+ const PREFIX = "Created for";+ const WORDS = ["Creators", "Marketers", "Developers", "Everyone"];++ const PREFIX_FONT_SIZE = 80;+ const WORD_FONT_SIZE = 80;+ const PREFIX_WEIGHT = 300;+ const WORD_WEIGHT = 700;+ const WORD_GAP = 20;+ const HOLD_DURATION = 32;+ const FLIP_DURATION = 18;+ const BLUR_AMOUNT = 6;++ const perStep = HOLD_DURATION + FLIP_DURATION;+ const totalSteps = WORDS.length;+ const currentStep = Math.floor(frame / perStep) % totalSteps;+ const nextStep = (currentStep + 1) % totalSteps;+ const phase = frame % perStep;+ const isFlipping = phase >= HOLD_DURATION;+ const flipProgress = isFlipping ? (phase - HOLD_DURATION) / FLIP_DURATION : 0;++ const outOpacity = interpolate(flipProgress, [0, 1], [1, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const inOpacity = interpolate(flipProgress, [0, 1], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const outBlur = interpolate(flipProgress, [0, 1], [0, BLUR_AMOUNT], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const inBlur = interpolate(flipProgress, [0, 1], [BLUR_AMOUNT, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ const longestWord = WORDS.reduce(+ (a, b) => (a.length >= b.length ? a : b),+ WORDS[0],+ );++ return (+ <AbsoluteFill+ style={{+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ fontFamily: "Inter, sans-serif",+ }}+ >+ <div+ style={{+ display: "flex",+ alignItems: "baseline",+ gap: WORD_GAP,+ color: COLOR_TEXT,+ }}+ >+ <div style={{ fontSize: PREFIX_FONT_SIZE, fontWeight: PREFIX_WEIGHT }}>+ {PREFIX}+ </div>+ <div+ style={{+ position: "relative",+ fontSize: WORD_FONT_SIZE,+ fontWeight: WORD_WEIGHT,+ }}+ >+ {/* Invisible width keeper */}+ <div style={{ visibility: "hidden" }}>{longestWord}</div>+ {/* Current word (fades out during flip) */}+ {!isFlipping && (+ <div style={{ position: "absolute", left: 0, top: 0 }}>+ {WORDS[currentStep]}+ </div>+ )}+ {/* Crossfade during flip */}+ {isFlipping && (+ <>+ <div+ style={{+ position: "absolute",+ left: 0,+ top: 0,+ opacity: outOpacity,+ filter: `blur(${outBlur}px)`,+ }}+ >+ {WORDS[currentStep]}+ </div>+ <div+ style={{+ position: "absolute",+ left: 0,+ top: 0,+ opacity: inOpacity,+ filter: `blur(${inBlur}px)`,+ }}+ >+ {WORDS[nextStep]}+ </div>+ </>+ )}+ </div>+ </div>+ </AbsoluteFill>+ );+};diff --git a/packages/skills/skills/messaging/SKILL.md b/packages/skills/skills/messaging/SKILL.mdnew file mode 100644index 0000000000..cc7dad44ce--- /dev/null+++ b/packages/skills/skills/messaging/SKILL.md@@ -0,0 +1,119 @@+---+name: messaging+description: Chat and messaging UI patterns for Remotion. Use when creating WhatsApp conversations, iMessage, chat bubbles, text messages, DMs, or messenger-style interfaces.+metadata:+ impact: HIGH+ tags: chat, messaging, whatsapp, imessage, bubbles, conversation+---++## Chat Bubble Layout++Use flexbox to align sent messages right, received messages left.++**Incorrect (all bubbles centered):**++```tsx+<div style={{ textAlign: "center" }}>+ {messages.map(msg => <div>{msg.text}</div>)}+</div>+```++**Correct (proper chat alignment):**++```tsx+<div style={{+ display: "flex",+ flexDirection: "column",+ justifyContent: "flex-end",+ padding: 40+}}>+ {messages.map((msg, i) => (+ <div style={{+ display: "flex",+ justifyContent: msg.sent ? "flex-end" : "flex-start",+ marginTop: 12+ }}>+ <div style={{+ maxWidth: "70%",+ padding: "12px 16px",+ borderRadius: 16,+ backgroundColor: msg.sent ? "#1f8a70" : "#202c33",+ color: "#e9edef"+ }}>+ {msg.text}+ </div>+ </div>+ ))}+</div>+```++## Staggered Message Entrances++Messages should appear one by one with slide + fade animations.++**Incorrect (all messages appear at once):**++```tsx+{messages.map(msg => <Bubble text={msg.text} />)}+```++**Correct (staggered with delays):**++```tsx+const STAGGER_DELAY = 38;+const FADE_DURATION = 18;++{messages.map((msg, i) => {+ const startFrame = i * STAGGER_DELAY;+ const opacity = interpolate(frame - startFrame, [0, FADE_DURATION], [0, 1], { extrapolateLeft: "clamp", extrapolateRight: "clamp" });+ const slideX = interpolate(opacity, [0, 1], [msg.sent ? 40 : -40, 0]);++ return (+ <div style={{ opacity, transform: `translateX(${slideX}px)` }}>+ {msg.text}+ </div>+ );+})}+```++## Spring Bounce on Bubble Entrance++Add spring physics for organic bubble pop-in effect.++```tsx+const bounce = spring({+ frame: frame - startFrame,+ fps,+ config: { damping: 12, stiffness: 170 }+});+const scaleValue = interpolate(bounce, [0, 1], [0.98, 1]);++<div style={{+ transform: `translateX(${slideX}px) scale(${scaleValue})`,+ transformOrigin: msg.sent ? "100% 100%" : "0% 100%"+}}>+```++## Dark Theme Colors (WhatsApp style)++```tsx+const COLOR_BACKGROUND = "#0b141a";+const COLOR_SENT = "#1f8a70"; // Green for sent+const COLOR_RECEIVED = "#202c33"; // Dark gray for received+const COLOR_TEXT = "#e9edef"; // Light text+```++## Light Theme Colors (iMessage style)++```tsx+const COLOR_BACKGROUND = "#ffffff";+const COLOR_SENT = "#007AFF"; // Blue for sent+const COLOR_RECEIVED = "#E9E9EB"; // Light gray for received+const COLOR_TEXT_SENT = "#ffffff";+const COLOR_TEXT_RECEIVED = "#000000";+```++## Complete Examples++For full working code examples, see:+- [Chat Messages Example](../example-chat-messages/SKILL.md) - WhatsApp-style bouncy message bubblesdiff --git a/packages/skills/skills/sequencing/SKILL.md b/packages/skills/skills/sequencing/SKILL.mdnew file mode 100644index 0000000000..6642ede6af--- /dev/null+++ b/packages/skills/skills/sequencing/SKILL.md@@ -0,0 +1,129 @@+---+name: sequencing+description: Timing and sequencing patterns for Remotion. Use when elements appear at different times, creating staggered animations, choreographed entrances, or complex timing.+metadata:+ impact: HIGH+ tags: sequence, series, timing, delay, choreography+---++## Sequence for Delayed Elements++Use Sequence to delay when an element appears in the timeline.++**Incorrect (manual frame checks):**++```tsx+{frame >= 30 && <Title />}+{frame >= 60 && <Subtitle />}+```++**Correct (Sequence component):**++```tsx+import { Sequence } from "remotion";++<Sequence from={30} durationInFrames={90}>+ <Title />+</Sequence>+<Sequence from={60} durationInFrames={60}>+ <Subtitle />+</Sequence>+```++## Series for Sequential Playback++Use Series when elements should play one after another without overlap.++```tsx+import { Series } from "remotion";++<Series>+ <Series.Sequence durationInFrames={45}>+ <Intro />+ </Series.Sequence>+ <Series.Sequence durationInFrames={60}>+ <MainContent />+ </Series.Sequence>+ <Series.Sequence durationInFrames={30}>+ <Outro />+ </Series.Sequence>+</Series>+```++## Series with Offset for Overlap++Use negative offset for overlapping sequences:++```tsx+<Series>+ <Series.Sequence durationInFrames={60}>+ <SceneA />+ </Series.Sequence>+ <Series.Sequence offset={-15} durationInFrames={60}>+ {/* Starts 15 frames before SceneA ends */}+ <SceneB />+ </Series.Sequence>+</Series>+```++## Staggered Element Entrances++For staggered animations of multiple items, calculate delays:++**Incorrect (hardcoded delays):**++```tsx+const items = data.map((item, i) => {+ const delay = i === 0 ? 0 : i === 1 ? 10 : i === 2 ? 20 : 30;+ // ...+});+```++**Correct (calculated stagger):**++```tsx+const STAGGER_DELAY = 8;+const BASE_DELAY = 15;++const items = data.map((item, i) => {+ const delay = BASE_DELAY + i * STAGGER_DELAY;+ const progress = spring({+ frame: frame - delay,+ fps,+ config: { damping: 15, stiffness: 120 }+ });+ return <Item key={i} style={{ opacity: progress, transform: `translateY(${(1 - progress) * 20}px)` }} />;+});+```++## Nested Sequences++Sequences can be nested for complex timing:++```tsx+<Sequence from={0} durationInFrames={120}>+ <Background />+ <Sequence from={15} durationInFrames={90}>+ <Title />+ </Sequence>+ <Sequence from={45} durationInFrames={60}>+ <Subtitle />+ </Sequence>+</Sequence>+```++## Frame References Inside Sequences++Inside a Sequence, useCurrentFrame() returns the local frame (starting from 0):++```tsx+<Sequence from={60} durationInFrames={30}>+ <MyComponent />+ {/* Inside MyComponent, useCurrentFrame() returns 0-29, not 60-89 */}+</Sequence>+```++## Complete Examples++For full working code examples, see:+- [Staggered List Example](../example-staggered-list/SKILL.md) - Feature list with staggered spring entrancesdiff --git a/packages/skills/skills/social-media/SKILL.md b/packages/skills/skills/social-media/SKILL.mdnew file mode 100644index 0000000000..67999a266a--- /dev/null+++ b/packages/skills/skills/social-media/SKILL.md@@ -0,0 +1,102 @@+---+name: social-media+description: Social media content optimization patterns for Remotion. Use when creating Instagram stories, TikTok content, YouTube shorts, reels, or vertical video content.+metadata:+ impact: MEDIUM+ tags: social, instagram, tiktok, reels, stories, mobile+---++## Safe Zone for UI Overlays++Keep key content in the center 80% to avoid platform UI elements.++**Incorrect (content at edges - gets covered by UI):**++```tsx+<AbsoluteFill style={{ padding: 10 }}>+ <div style={{ position: "absolute", top: 0 }}>Title</div>+ <div style={{ position: "absolute", bottom: 0 }}>CTA</div>+</AbsoluteFill>+```++**Correct (content in safe zone):**++```tsx+const SAFE_MARGIN_TOP = height * 0.12;+const SAFE_MARGIN_BOTTOM = height * 0.15;+const SAFE_MARGIN_SIDES = width * 0.05;++<AbsoluteFill style={{+ paddingTop: SAFE_MARGIN_TOP,+ paddingBottom: SAFE_MARGIN_BOTTOM,+ paddingLeft: SAFE_MARGIN_SIDES,+ paddingRight: SAFE_MARGIN_SIDES+}}>+ {content}+</AbsoluteFill>+```++## Mobile-First Text Sizing++Text must be readable on small screens. Minimum 48px for headlines.++**Incorrect (text too small for mobile):**++```tsx+const TITLE_SIZE = 24;+const BODY_SIZE = 14;+```++**Correct (mobile-readable sizes):**++```tsx+const TITLE_SIZE = Math.max(48, Math.round(width * 0.08));+const BODY_SIZE = Math.max(28, Math.round(width * 0.045));+```++## Hook in First Frames++Social content needs immediate visual interest. Add movement from frame 0.++**Incorrect (static start):**++```tsx+const entrance = spring({ frame: frame - 30, fps }); // Starts after 1 second+```++**Correct (immediate hook):**++```tsx+const entrance = spring({ frame, fps, config: { damping: 12, stiffness: 200 } });+const pulse = Math.sin(frame * 0.15) * 0.03 + 1; // Subtle constant motion++<div style={{ transform: `scale(${entrance * pulse})` }}>+ {content}+</div>+```++## High Contrast Colors++Use bold, saturated colors that pop on mobile screens.++```tsx+// Good for social+const COLOR_PRIMARY = "#FF3366";+const COLOR_ACCENT = "#00D4FF";+const COLOR_BG = "#0A0A0A";++// Avoid muted/pastel colors that look washed out+// const COLOR_PRIMARY = "#C4A4A4"; // Too muted+```++## Loop-Friendly Endings++Design animations that can seamlessly loop.++```tsx+const TOTAL_DURATION = durationInFrames;+const loopProgress = (frame % TOTAL_DURATION) / TOTAL_DURATION;++// Or fade to start state at the end+const fadeOut = interpolate(frame, [TOTAL_DURATION - 15, TOTAL_DURATION], [1, 0]);+```diff --git a/packages/skills/skills/spring-physics/SKILL.md b/packages/skills/skills/spring-physics/SKILL.mdnew file mode 100644index 0000000000..524e7e14eb--- /dev/null+++ b/packages/skills/skills/spring-physics/SKILL.md@@ -0,0 +1,135 @@+---+name: spring-physics+description: Spring physics animation patterns for Remotion. Use when creating bouncy animations, organic motion, elastic effects, or overshoot animations.+metadata:+ impact: HIGH+ tags: spring, physics, bounce, easing, organic+---++## Prefer spring() Over interpolate()++Use spring() for natural motion, interpolate() only for linear progress.++**Incorrect (mechanical motion):**++```tsx+const scale = interpolate(frame, [0, 30], [0, 1], { extrapolateRight: "clamp" });+```++**Correct (organic spring motion):**++```tsx+const scale = spring({+ frame,+ fps,+ config: { damping: 12, stiffness: 100 },+ durationInFrames: 30+});+```++## Spring Config Parameters++```tsx+spring({+ frame,+ fps,+ config: {+ damping: 10, // Higher = less bounce (10-200)+ stiffness: 100, // Higher = faster snap (50-200)+ mass: 1, // Higher = more inertia (0.5-3)+ }+});+```++## Common Spring Presets++```tsx+// Snappy, minimal bounce (UI elements)+const snappy = { damping: 20, stiffness: 200 };++// Bouncy entrance (playful animations)+const bouncy = { damping: 8, stiffness: 100 };++// Smooth, no bounce (subtle reveals)+const smooth = { damping: 200, stiffness: 100 };++// Heavy, slow (large objects)+const heavy = { damping: 15, stiffness: 80, mass: 2 };+```++## Delayed Spring Start++Offset the frame for delayed spring animations:++**Incorrect (spring starts immediately):**++```tsx+const entrance = spring({ frame, fps, config: { damping: 12 } });+```++**Correct (spring starts after delay):**++```tsx+const ENTRANCE_DELAY = 20;+const entrance = spring({+ frame: frame - ENTRANCE_DELAY,+ fps,+ config: { damping: 12, stiffness: 100 }+});+// Returns 0 until frame 20, then animates to 1+```++## Spring for Scale with Overshoot++For bouncy scale animations that overshoot:++```tsx+const bounce = spring({+ frame,+ fps,+ config: { damping: 8, stiffness: 150 }+});+// Will overshoot past 1.0 before settling++<div style={{ transform: `scale(${bounce})` }}>+ {content}+</div>+```++## Combining Spring with Interpolate++Map spring output (0-1) to custom ranges:++```tsx+const springProgress = spring({ frame, fps, config: { damping: 15 } });++// Map to rotation+const rotation = interpolate(springProgress, [0, 1], [0, 360]);++// Map to position+const translateY = interpolate(springProgress, [0, 1], [50, 0]);++<div style={{ transform: `translateY(${translateY}px) rotate(${rotation}deg)` }}>+```++## Chained Springs for Sequential Motion++```tsx+const PHASE_1_END = 30;+const PHASE_2_START = 25; // Slight overlap++const phase1 = spring({ frame, fps, config: { damping: 15 } });+const phase2 = spring({+ frame: frame - PHASE_2_START,+ fps,+ config: { damping: 12 }+});++// phase1 controls entrance, phase2 controls secondary motion+```++## Complete Examples++For full working code examples, see:+- [Animated Shapes Example](../example-animated-shapes/SKILL.md) - Bouncing and rotating shapes with spring+- [Morphing Hexagons Example](../example-morphing-hexagons/SKILL.md) - Pulsing hexagon grid with springsdiff --git a/packages/skills/skills/transitions/SKILL.md b/packages/skills/skills/transitions/SKILL.mdnew file mode 100644index 0000000000..fa4a8b4dc5--- /dev/null+++ b/packages/skills/skills/transitions/SKILL.md@@ -0,0 +1,107 @@+---+name: transitions+description: Scene transition patterns for Remotion. Use when creating scene changes, fades between clips, slide transitions, wipes, or multi-scene videos.+metadata:+ impact: HIGH+ tags: transitions, fade, slide, wipe, scenes+---++## TransitionSeries for Scene Changes++Use TransitionSeries to animate between multiple scenes or clips.++**Incorrect (abrupt scene cuts):**++```tsx+<Sequence from={0} durationInFrames={60}>+ <SceneA />+</Sequence>+<Sequence from={60} durationInFrames={60}>+ <SceneB />+</Sequence>+```++**Correct (smooth transitions):**++```tsx+import { TransitionSeries, linearTiming } from "@remotion/transitions";+import { fade } from "@remotion/transitions/fade";++<TransitionSeries>+ <TransitionSeries.Sequence durationInFrames={60}>+ <SceneA />+ </TransitionSeries.Sequence>+ <TransitionSeries.Transition+ presentation={fade()}+ timing={linearTiming({ durationInFrames: 15 })}+ />+ <TransitionSeries.Sequence durationInFrames={60}>+ <SceneB />+ </TransitionSeries.Sequence>+</TransitionSeries>+```++## Available Transition Types++Import transitions from their respective modules:++```tsx+import { fade } from "@remotion/transitions/fade";+import { slide } from "@remotion/transitions/slide";+import { wipe } from "@remotion/transitions/wipe";+import { flip } from "@remotion/transitions/flip";+import { clockWipe } from "@remotion/transitions/clock-wipe";+```++## Slide Transition with Direction++Specify slide direction for enter/exit animations.++```tsx+import { slide } from "@remotion/transitions/slide";++<TransitionSeries.Transition+ presentation={slide({ direction: "from-left" })}+ timing={linearTiming({ durationInFrames: 20 })}+/>+```++Directions: `"from-left"`, `"from-right"`, `"from-top"`, `"from-bottom"`++## Custom Crossfade Without TransitionSeries++For simple opacity crossfades within a single component:++```tsx+const TRANSITION_START = 60;+const TRANSITION_DURATION = 15;++const scene1Opacity = interpolate(+ frame,+ [TRANSITION_START, TRANSITION_START + TRANSITION_DURATION],+ [1, 0],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" }+);++const scene2Opacity = interpolate(+ frame,+ [TRANSITION_START, TRANSITION_START + TRANSITION_DURATION],+ [0, 1],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" }+);++<AbsoluteFill style={{ opacity: scene1Opacity }}><SceneA /></AbsoluteFill>+<AbsoluteFill style={{ opacity: scene2Opacity }}><SceneB /></AbsoluteFill>+```++## Timing Options++```tsx+import { linearTiming, springTiming } from "@remotion/transitions";++// Linear timing - constant speed+linearTiming({ durationInFrames: 20 })++// Spring timing - organic motion+springTiming({ config: { damping: 200 }, durationInFrames: 25 })+```diff --git a/packages/skills/skills/typography/SKILL.md b/packages/skills/skills/typography/SKILL.mdnew file mode 100644index 0000000000..637b265df6--- /dev/null+++ b/packages/skills/skills/typography/SKILL.md@@ -0,0 +1,126 @@+---+name: typography+description: Typography and text animation patterns for Remotion. Use when creating typewriter effects, kinetic text, word carousels, animated titles, or text-heavy content.+metadata:+ impact: HIGH+ tags: typography, text, typewriter, kinetic, animation+---++## Typewriter Effect - Use String Slicing++Always use string slicing for typewriter effects. Never use per-character opacity.++**Incorrect (per-character opacity - breaks cursor positioning):**++```tsx+{+ text+ .split("")+ .map((char, i) => (+ <span style={{ opacity: i < typedCount ? 1 : 0 }}>{char}</span>+ ));+}+<span>|</span>;+```++**Correct (string slicing - cursor follows text):**++```tsx+const typedText = FULL_TEXT.slice(0, typedChars);++<span>{typedText}</span>+<span style={{ opacity: caretOpacity }}>β</span>+```++## Cursor Blink - Use Smooth Interpolation++Blinking cursors should fade smoothly, not flash on/off abruptly.++**Incorrect (abrupt blink):**++```tsx+const caretVisible = Math.floor(frame / 15) % 2 === 0;+<span style={{ opacity: caretVisible ? 1 : 0 }}>|</span>;+```++**Correct (smooth blink):**++```tsx+const CURSOR_BLINK_FRAMES = 16;+const caretOpacity = interpolate(+ frame % CURSOR_BLINK_FRAMES,+ [0, CURSOR_BLINK_FRAMES / 2, CURSOR_BLINK_FRAMES],+ [1, 0, 1],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+);++<span style={{ opacity: caretOpacity }}>β</span>;+```++## Word Carousel - Stable Width Container++Prevent layout shifts by using the longest word to set container width.++**Incorrect (width jumps between words):**++```tsx+<div style={{ position: "relative" }}>+ <span>{WORDS[currentIndex]}</span>+</div>+```++**Correct (stable width from longest word):**++```tsx+const longestWord = WORDS.reduce(+ (a, b) => (a.length >= b.length ? a : b),+ WORDS[0],+);++<div style={{ position: "relative" }}>+ <div style={{ visibility: "hidden" }}>{longestWord}</div>+ <div style={{ position: "absolute", left: 0, top: 0 }}>+ {WORDS[currentIndex]}+ </div>+</div>;+```++## Text Highlight - Two Layer Crossfade++Use overlapping layers for smooth highlight transitions.++```tsx+const typedOpacity = interpolate(+ frame,+ [highlightStart - 8, highlightStart + 8],+ [1, 0],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+);+const finalOpacity = interpolate(+ frame,+ [highlightStart, highlightStart + 8],+ [0, 1],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+);++{+ /* Typing layer */+}+<div style={{ opacity: typedOpacity }}>{typedText}</div>;++{+ /* Final layer with highlight */+}+<div style={{ position: "absolute", inset: 0, opacity: finalOpacity }}>+ <span>{preText}</span>+ <span style={{ backgroundColor: COLOR_HIGHLIGHT }}>{HIGHLIGHT_WORD}</span>+ <span>{postText}</span>+</div>;+```++## Complete Examples++For full working code examples, see:+- [Typewriter with Highlight Example](../example-typewriter-highlight/SKILL.md) - Typewriter effect with cursor blink, pause, and word highlight+- [Word Carousel Example](../example-word-carousel/SKILL.md) - Rotating words with crossfade and blur+- [Text Rotation Example](../example-text-rotation/SKILL.md) - Rotating words with dissolve and blur effectsdiff --git a/packages/studio-shared/src/package-info.ts b/packages/studio-shared/src/package-info.tsindex d9ce0ad9f6..e6177c5b4c 100644--- a/packages/studio-shared/src/package-info.ts+++ b/packages/studio-shared/src/package-info.ts@@ -61,6 +61,7 @@ export const packages = ['streaming','serverless','serverless-client',+ 'skills','studio-server','studio-shared','studio',@@ -157,6 +158,7 @@ export const descriptions: {[key in Pkgs]: string | null} = {'lambda-ruby': null,'player-example': null,'ai-improvements': null,+ skills: null,'discord-poster': null,'docusaurus-plugin': null,'animated-emoji': 'Google Fonts Animated Emojis as Remotion components',@@ -235,6 +237,7 @@ export const installableMap: {[key in Pkgs]: boolean} = {rive: true,shapes: true,skia: true,+ skills: true,'promo-pages': false,streaming: false,serverless: false,@@ -330,6 +333,7 @@ export const apiDocs: {[key in Pkgs]: string | null} = {three: 'https://www.remotion.dev/docs/three',streaming: null,serverless: null,+ skills: null,studio: 'https://www.remotion.dev/docs/studio/api',transitions: 'https://www.remotion.dev/transitions','animated-emoji': 'https://www.remotion.dev/docs/animated-emoji',@@ -343,7 +347,6 @@ export const apiDocs: {[key in Pkgs]: string | null} = {'promo-pages': null,'svg-3d-engine': null,media: 'https://remotion.dev/docs/media',- // TODO: Add docs- 'web-renderer': null,+ 'web-renderer': 'https://www.remotion.dev/docs/web-renderer/',design: 'https://www.remotion.dev/design',};