Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: improve docs
dev_wandryf1caff4cc988
diff --git a/components/docs/component-preview.tsx b/components/docs/component-preview.tsxindex 39a428cf..d93ff7f3 100644--- a/components/docs/component-preview.tsx+++ b/components/docs/component-preview.tsx@@ -26,7 +26,7 @@ export function ComponentPreview({ name }: { name: string }) {if (!entry) {return (- <div className="not-prose my-6 rounded-lg border border-fd-border p-4 text-sm text-fd-muted-foreground">+ <div className="not-prose mb-6 rounded-lg border border-fd-border p-4 text-sm text-fd-muted-foreground">Unknown component: <code>{name}</code></div>);@@ -35,7 +35,7 @@ export function ComponentPreview({ name }: { name: string }) {return (<Suspensefallback={- <div className="not-prose my-6 aspect-video w-full animate-pulse rounded-xl bg-muted" />+ <div className="not-prose mb-6 aspect-video w-full animate-pulse rounded-xl bg-muted" />}><Preview name={name} config={entry.config} Component={entry.Component} />@@ -111,7 +111,7 @@ function Preview({};return (- <div className="not-prose my-6 flex w-full flex-col gap-4">+ <div className="not-prose mb-6 flex w-full flex-col gap-4"><Tabs defaultValue="preview" className="gap-3"><TabsList><TabsTrigger value="preview">Preview</TabsTrigger>diff --git a/content/docs/compositions/ai-generation-canvas.mdx b/content/docs/compositions/ai-generation-canvas.mdxindex 64332e2e..97cc1c9f 100644--- a/content/docs/compositions/ai-generation-canvas.mdx+++ b/content/docs/compositions/ai-generation-canvas.mdx@@ -3,9 +3,10 @@ title: AI Generation Canvasdescription: A prompt input morphs into a dashboard header, then skeletons flip to reveal generated content.---+<ComponentPreview name="ai-generation-canvas" />+A four-phase composition that tells the story of AI generation in one shot. The prompt types into a centered input, the input springs upward and stretches into a header bar, brand-tinted skeleton cards fade in beneath it, then each card flips on its Y axis to reveal the rendered dashboard content with a staggered cascade.-<ComponentPreview name="ai-generation-canvas" />## Installation@@ -14,13 +15,28 @@ A four-phase composition that tells the story of AI generation in one shot. The## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { AIGenerationCanvas } from "@/components/remocn/ai-generation-canvas";-<AIGenerationCanvas- prompt="Generate a dashboard"- accentColor="#7c3aed"- cardCount={4}-/>+const AIGenerationCanvasScene = () => (+ <AIGenerationCanvas+ prompt="Generate a dashboard"+ accentColor="#7c3aed"+ cardCount={4}+ />+);++export const RemotionRoot = () => (+ <Composition+ id="AIGenerationCanvas"+ component={AIGenerationCanvasScene}+ durationInFrames={180}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/compositions/browser-flow.mdx b/content/docs/compositions/browser-flow.mdxindex 6a1f627e..21980d77 100644--- a/content/docs/compositions/browser-flow.mdx+++ b/content/docs/compositions/browser-flow.mdx@@ -3,9 +3,10 @@ title: Browser Flowdescription: A full Safari/Chrome simulation from URL typing to scroll and click.---+<ComponentPreview name="browser-flow" />+A complete browser interaction in one block. The address bar takes focus, the URL types itself in (with an autocomplete suggestion that follows along), the loading bar stalls at 15% before snapping to 100%, the page renders, and a virtual cursor arcs down toward a CTA — clicking it with a real scale dip and a synchronous press on the button. Every phase is frame-deterministic.-<ComponentPreview name="browser-flow" />## Installation@@ -14,9 +15,24 @@ A complete browser interaction in one block. The address bar takes focus, the UR## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { BrowserFlow } from "@/components/remocn/browser-flow";-<BrowserFlow url="remocn.dev" />+const BrowserFlowScene = () => (+ <BrowserFlow url="remocn.dev" />+);++export const RemotionRoot = () => (+ <Composition+ id="BrowserFlow"+ component={BrowserFlowScene}+ durationInFrames={270}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/compositions/dashboard-populate.mdx b/content/docs/compositions/dashboard-populate.mdxindex 79844284..2e149626 100644--- a/content/docs/compositions/dashboard-populate.mdx+++ b/content/docs/compositions/dashboard-populate.mdx@@ -3,9 +3,10 @@ title: Dashboard Populatedescription: An empty dashboard fills itself with data in a cascaded spring sequence.---+<ComponentPreview name="dashboard-populate" />+A composition primitive that stages a full dashboard reveal in two acts. First the structure fades in — tiles, axes, gridlines, legends. Then, with a deliberate beat of silence, the data crashes in: KPIs spin up from zero, bars launch from the baseline on staggered springs, the line chart traces itself left to right, and the donut sweeps to its final value.-<ComponentPreview name="dashboard-populate" />## Installation@@ -14,9 +15,24 @@ A composition primitive that stages a full dashboard reveal in two acts. First t## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { DashboardPopulate } from "@/components/remocn/dashboard-populate";-<DashboardPopulate accentColor="#22c55e" kpiTarget={128400} />+const DashboardPopulateScene = () => (+ <DashboardPopulate accentColor="#22c55e" kpiTarget={128400} />+);++export const RemotionRoot = () => (+ <Composition+ id="DashboardPopulate"+ component={DashboardPopulateScene}+ durationInFrames={180}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/compositions/ecosystem-constellation.mdx b/content/docs/compositions/ecosystem-constellation.mdxindex 09e1fd2a..f8c0a3fe 100644--- a/content/docs/compositions/ecosystem-constellation.mdx+++ b/content/docs/compositions/ecosystem-constellation.mdx@@ -3,9 +3,10 @@ title: Ecosystem Constellationdescription: A central product logo orbited by integration satellites with pulsing data lines.---+<ComponentPreview name="ecosystem-constellation" />+A composition for telling an "everything connects" story. A pulsing logo sits in the center while integration satellites fly in from beyond the frame and settle into elliptical orbits at different radii and angular speeds. Connection lines between the hub and each satellite periodically light up — and the firing satellite scales up by a hair to feel like real data is moving.-<ComponentPreview name="ecosystem-constellation" />## Installation@@ -14,13 +15,28 @@ A composition for telling an "everything connects" story. A pulsing logo sits in## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { EcosystemConstellation } from "@/components/remocn/ecosystem-constellation";-<EcosystemConstellation- satelliteCount={6}- centerLabel="V"- accentColor="#a855f7"-/>+const EcosystemConstellationScene = () => (+ <EcosystemConstellation+ satelliteCount={6}+ centerLabel="V"+ accentColor="#a855f7"+ />+);++export const RemotionRoot = () => (+ <Composition+ id="EcosystemConstellation"+ component={EcosystemConstellationScene}+ durationInFrames={240}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/compositions/hero-device-assemble.mdx b/content/docs/compositions/hero-device-assemble.mdxindex ba579d31..4dbbdd4e 100644--- a/content/docs/compositions/hero-device-assemble.mdx+++ b/content/docs/compositions/hero-device-assemble.mdx@@ -3,9 +3,10 @@ title: Hero Device Assembledescription: Layered device mockup that snaps together in 3D before the screen wakes up.---+<ComponentPreview name="hero-device-assemble" />+A cinematic hero composition: a laptop (or phone) materializes from floating layers — back lid, chassis, bezel, and display — drifting in from different Z depths and tilted in 3D space. A single spring collapses everything into place, then the screen fades from black to a mock dashboard with a soft shimmer, mimicking a real display waking up.-<ComponentPreview name="hero-device-assemble" />## Installation@@ -14,13 +15,28 @@ A cinematic hero composition: a laptop (or phone) materializes from floating lay## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { HeroDeviceAssemble } from "@/components/remocn/hero-device-assemble";-<HeroDeviceAssemble- device="laptop"- accentColor="#22c55e"- assembleStart={0}-/>+const HeroDeviceAssembleScene = () => (+ <HeroDeviceAssemble+ device="laptop"+ accentColor="#22c55e"+ assembleStart={0}+ />+);++export const RemotionRoot = () => (+ <Composition+ id="HeroDeviceAssemble"+ component={HeroDeviceAssembleScene}+ durationInFrames={150}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/compositions/infinite-bento-pan.mdx b/content/docs/compositions/infinite-bento-pan.mdxindex c9595887..3312e7c4 100644--- a/content/docs/compositions/infinite-bento-pan.mdx+++ b/content/docs/compositions/infinite-bento-pan.mdx@@ -3,9 +3,10 @@ title: Infinite Bento Pandescription: A hypnotic diagonal camera glide over an oversized grid of bento cards.---+<ComponentPreview name="infinite-bento-pan" />+A composition that builds a super-sized bento grid (well beyond the canvas) and slowly drifts the camera across it on a diagonal trajectory. Each card renders a different miniature — line charts, counters, code fragments, gradients, logo marks — with subtle deterministic micro-animations driven by `Math.sin(frame)`. A radial vignette swallows the edges so cards seem to fade in and out of darkness as the camera moves.-<ComponentPreview name="infinite-bento-pan" />## Installation@@ -14,9 +15,24 @@ A composition that builds a super-sized bento grid (well beyond the canvas) and## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { InfiniteBentoPan } from "@/components/remocn/infinite-bento-pan";-<InfiniteBentoPan panSpeed={1} accentColor="#7c3aed" />+const InfiniteBentoPanScene = () => (+ <InfiniteBentoPan panSpeed={1} accentColor="#7c3aed" />+);++export const RemotionRoot = () => (+ <Composition+ id="InfiniteBentoPan"+ component={InfiniteBentoPanScene}+ durationInFrames={300}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/compositions/live-code-compilation.mdx b/content/docs/compositions/live-code-compilation.mdxindex 52a781e3..67e76c94 100644--- a/content/docs/compositions/live-code-compilation.mdx+++ b/content/docs/compositions/live-code-compilation.mdx@@ -3,9 +3,10 @@ title: Live Code Compilationdescription: A split-screen where code is typed on the left and the right-side UI snaps to match in a single frame.---+<ComponentPreview name="live-code-compilation" />+A timeline-driven composition that pairs a glass code editor with a live preview pane. As each event fires, a new code fragment is appended to the editor and the preview button instantly applies the matching style — no CSS transitions, no easing — mimicking the feel of a real Vite HMR update.-<ComponentPreview name="live-code-compilation" />## Installation@@ -14,9 +15,24 @@ A timeline-driven composition that pairs a glass code editor with a live preview## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { LiveCodeCompilation } from "@/components/remocn/live-code-compilation";-<LiveCodeCompilation accentColor="#3b82f6" />+const LiveCodeCompilationScene = () => (+ <LiveCodeCompilation accentColor="#3b82f6" />+);++export const RemotionRoot = () => (+ <Composition+ id="LiveCodeCompilation"+ component={LiveCodeCompilationScene}+ durationInFrames={260}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/compositions/pipeline-journey.mdx b/content/docs/compositions/pipeline-journey.mdxindex 02f6b456..8df2f86f 100644--- a/content/docs/compositions/pipeline-journey.mdx+++ b/content/docs/compositions/pipeline-journey.mdx@@ -3,9 +3,10 @@ title: Pipeline Journeydescription: A Kanban ticket flies between columns, triggering events along the way.---+<ComponentPreview name="pipeline-journey" />+A workflow primitive that animates a single ticket on a Kanban board. The card lifts out of Todo, arcs through the air with a tilt and growing shadow, lands in In Progress where a brief timer ticks, then takes off again toward Done — where it triggers a deterministic confetti burst on touchdown.-<ComponentPreview name="pipeline-journey" />## Installation@@ -14,9 +15,24 @@ A workflow primitive that animates a single ticket on a Kanban board. The card l## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { PipelineJourney } from "@/components/remocn/pipeline-journey";-<PipelineJourney cardLabel="Build pipeline" accentColor="#22c55e" />+const PipelineJourneyScene = () => (+ <PipelineJourney cardLabel="Build pipeline" accentColor="#22c55e" />+);++export const RemotionRoot = () => (+ <Composition+ id="PipelineJourney"+ component={PipelineJourneyScene}+ durationInFrames={200}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/compositions/pricing-tier-focus.mdx b/content/docs/compositions/pricing-tier-focus.mdxindex 92647925..7f70c500 100644--- a/content/docs/compositions/pricing-tier-focus.mdx+++ b/content/docs/compositions/pricing-tier-focus.mdx@@ -3,9 +3,10 @@ title: Pricing Tier Focusdescription: Highlight the recommended pricing tier by dimming and blurring its neighbors.---+<ComponentPreview name="pricing-tier-focus" />+A composition that stages a classic three-tier pricing table and then dramatically focuses the camera on the recommended plan. The focused card scales up, lifts off the page with a heavy drop shadow, while the side cards retreat into a soft, brightness-dimmed blur. A subtle shimmer sweeps across the CTA button to seal the moment.-<ComponentPreview name="pricing-tier-focus" />## Installation@@ -14,9 +15,24 @@ A composition that stages a classic three-tier pricing table and then dramatical## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { PricingTierFocus } from "@/components/remocn/pricing-tier-focus";-<PricingTierFocus focusedTier={1} accentColor="#22c55e" />+const PricingTierFocusScene = () => (+ <PricingTierFocus focusedTier={1} accentColor="#22c55e" />+);++export const RemotionRoot = () => (+ <Composition+ id="PricingTierFocus"+ component={PricingTierFocusScene}+ durationInFrames={180}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/compositions/terminal-to-browser-deploy.mdx b/content/docs/compositions/terminal-to-browser-deploy.mdxindex fdb619cd..d393f970 100644--- a/content/docs/compositions/terminal-to-browser-deploy.mdx+++ b/content/docs/compositions/terminal-to-browser-deploy.mdx@@ -3,9 +3,10 @@ title: Terminal To Browser Deploydescription: A CLI deploy completes and the live site grows out of the URL printed in the console.---+<ComponentPreview name="terminal-to-browser-deploy" />+A composition that pairs a build log with a celebratory reveal. The terminal types out a deploy sequence, and the moment the success line lands, the terminal scales down and blurs while a fully formed browser window springs out from exactly the URL that was just printed — making the deployed site feel like it physically emerged from the command that shipped it.-<ComponentPreview name="terminal-to-browser-deploy" />## Installation@@ -14,12 +15,27 @@ A composition that pairs a build log with a celebratory reveal. The terminal typ## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { TerminalToBrowserDeploy } from "@/components/remocn/terminal-to-browser-deploy";-<TerminalToBrowserDeploy- siteUrl="https://app.example.com"- accentColor="#22c55e"-/>+const TerminalToBrowserDeployScene = () => (+ <TerminalToBrowserDeploy+ siteUrl="https://app.example.com"+ accentColor="#22c55e"+ />+);++export const RemotionRoot = () => (+ <Composition+ id="TerminalToBrowserDeploy"+ component={TerminalToBrowserDeployScene}+ durationInFrames={240}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/environment/dynamic-grid.mdx b/content/docs/environment/dynamic-grid.mdxindex 17cba26c..266ab83b 100644--- a/content/docs/environment/dynamic-grid.mdx+++ b/content/docs/environment/dynamic-grid.mdx@@ -3,9 +3,10 @@ title: Dynamic Griddescription: Subtle moving grid background for tech and dev scenes.---+<ComponentPreview name="dynamic-grid" />+A minimal grid background built from two CSS linear gradients, translated each frame via `transform`. Cheaper than animating `background-position` because the browser keeps layout untouched.-<ComponentPreview name="dynamic-grid" />## Installation@@ -14,15 +15,30 @@ A minimal grid background built from two CSS linear gradients, translated each f## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { DynamicGrid } from "@/components/remocn/dynamic-grid";-<DynamicGrid- cellSize={40}- lineColor="#27272a"- background="#0a0a0a"- speed={0.5}- direction="diagonal"-/>+const DynamicGridScene = () => (+ <DynamicGrid+ cellSize={40}+ lineColor="#27272a"+ background="#0a0a0a"+ speed={0.5}+ direction="diagonal"+ />+);++export const RemotionRoot = () => (+ <Composition+ id="DynamicGrid"+ component={DynamicGridScene}+ durationInFrames={150}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/environment/mesh-gradient-bg.mdx b/content/docs/environment/mesh-gradient-bg.mdxindex 8ad7d397..0de4d78c 100644--- a/content/docs/environment/mesh-gradient-bg.mdx+++ b/content/docs/environment/mesh-gradient-bg.mdx@@ -3,9 +3,10 @@ title: Mesh Gradient Backgrounddescription: Living gradient with amorphous color blobs slowly drifting across the frame.---+<ComponentPreview name="mesh-gradient-bg" />+A background primitive that renders several large radial-gradient blobs and animates them via `transform: translate()` using `Math.sin(frame)` and `Math.cos(frame)` for organic, deterministic drift. Heavy CSS blur plus `mix-blend-mode` creates a soft mesh gradient without shaders.-<ComponentPreview name="mesh-gradient-bg" />## Installation@@ -14,13 +15,28 @@ A background primitive that renders several large radial-gradient blobs and anim## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { MeshGradientBg } from "@/components/remocn/mesh-gradient-bg";-<MeshGradientBg- colors={["#ff0080", "#7928ca", "#00d4ff", "#ffb800"]}- speed={1}- background="#0a0a0a"-/>+const MeshGradientBgScene = () => (+ <MeshGradientBg+ colors={["#ff0080", "#7928ca", "#00d4ff", "#ffb800"]}+ speed={1}+ background="#0a0a0a"+ />+);++export const RemotionRoot = () => (+ <Composition+ id="MeshGradientBg"+ component={MeshGradientBgScene}+ durationInFrames={150}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/environment/spotlight-card.mdx b/content/docs/environment/spotlight-card.mdxindex 44deebac..1a44ce6c 100644--- a/content/docs/environment/spotlight-card.mdx+++ b/content/docs/environment/spotlight-card.mdx@@ -3,9 +3,10 @@ title: Spotlight Carddescription: A card with a moonlight-cool radial spotlight that follows a synthetic cursor and lights up its microborder.---+<ComponentPreview name="spotlight-card" />+A bento-style card primitive in the dark. A virtual cursor traces a slow Lissajous figure-8 across the card surface; under it, a wide radial gradient softly lights the inside while a brighter, narrower gradient bleeds through a 1px wrapper to pick out the microborder. The cursor lags by exactly one frame so the highlight feels organic instead of robotic.-<ComponentPreview name="spotlight-card" />## Installation@@ -14,9 +15,24 @@ A bento-style card primitive in the dark. A virtual cursor traces a slow Lissajo## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { SpotlightCard } from "@/components/remocn/spotlight-card";-<SpotlightCard title="Your feature" body="Two-line description goes here." />+const SpotlightCardScene = () => (+ <SpotlightCard title="Your feature" body="Two-line description goes here." />+);++export const RemotionRoot = () => (+ <Composition+ id="SpotlightCard"+ component={SpotlightCardScene}+ durationInFrames={240}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/primitives/bounding-box-selector.mdx b/content/docs/primitives/bounding-box-selector.mdxindex a0b43b9a..571298aa 100644--- a/content/docs/primitives/bounding-box-selector.mdx+++ b/content/docs/primitives/bounding-box-selector.mdx@@ -3,9 +3,10 @@ title: Bounding Box Selectordescription: Figma-style selection rectangle appears around any element.---+<ComponentPreview name="bounding-box-selector" />+A composition that wraps its children in a relatively positioned container and overlays an absolutely positioned selection border with eight corner and edge handles. The border fades in and slightly scales up via `spring()` at the configured frame.-<ComponentPreview name="bounding-box-selector" />## Installation@@ -14,11 +15,24 @@ A composition that wraps its children in a relatively positioned container and o## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { BoundingBoxSelector } from "@/components/remocn/bounding-box-selector";-<BoundingBoxSelector borderColor="#0ea5e9" appearAt={15}>+const BoundingBoxSelectorScene = () => (<YourElement />-</BoundingBoxSelector>+);++export const RemotionRoot = () => (+ <Composition+ id="BoundingBoxSelector"+ component={BoundingBoxSelectorScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/primitives/cursor-flow.mdx b/content/docs/primitives/cursor-flow.mdxindex b22dd161..ed73b75d 100644--- a/content/docs/primitives/cursor-flow.mdx+++ b/content/docs/primitives/cursor-flow.mdx@@ -3,9 +3,10 @@ title: Cursor Flowdescription: A realistic mouse that arcs along cubic Bezier paths, pauses, and clicks targets that dip in response.---+<ComponentPreview name="cursor-flow" />+A more sophisticated cousin of `SimulatedCursor`. Instead of moving on straight lines between waypoints, the cursor follows per-segment cubic Bezier curves whose control points are offset perpendicular to the chord, so the trajectory always has a "belly". An ease-in-out function shapes velocity inside each segment so the cursor accelerates, glides, and decelerates before arrival. At click moments, an independent spring drives a hard 4-frame `1 → 0.85 → 1` press while the click target dips to `0.98` in sync — that's the moment that sells the impact.-<ComponentPreview name="cursor-flow" />## Installation@@ -14,16 +15,31 @@ A more sophisticated cousin of `SimulatedCursor`. Instead of moving on straight## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { CursorFlow } from "@/components/remocn/cursor-flow";-<CursorFlow- waypoints={[- { x: 200, y: 180 },- { x: 540, y: 240, click: true, label: "Generate" },- { x: 880, y: 360, hold: 8 },- { x: 1040, y: 520, click: true, label: "Publish" },- ]}-/>+const CursorFlowScene = () => (+ <CursorFlow+ waypoints={[+ { x: 200, y: 180 },+ { x: 540, y: 240, click: true, label: "Generate" },+ { x: 880, y: 360, hold: 8 },+ { x: 1040, y: 520, click: true, label: "Publish" },+ ]}+ />+);++export const RemotionRoot = () => (+ <Composition+ id="CursorFlow"+ component={CursorFlowScene}+ durationInFrames={180}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/primitives/pulsing-indicator.mdx b/content/docs/primitives/pulsing-indicator.mdxindex 34cc3aaa..b5542960 100644--- a/content/docs/primitives/pulsing-indicator.mdx+++ b/content/docs/primitives/pulsing-indicator.mdx@@ -3,9 +3,10 @@ title: Pulsing Indicatordescription: Continuous pulsing dot for loading and "live" states.---+<ComponentPreview name="pulsing-indicator" />+A tiny UI primitive for signalling activity. An inner dot breathes via `Math.sin(frame)` mapped to `scale` and `opacity`, while an outer ring "pings" outward on a separate phase.-<ComponentPreview name="pulsing-indicator" />## Installation@@ -14,9 +15,24 @@ A tiny UI primitive for signalling activity. An inner dot breathes via `Math.sin## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { PulsingIndicator } from "@/components/remocn/pulsing-indicator";-<PulsingIndicator color="#22c55e" size={16} speed={8} />+const PulsingIndicatorScene = () => (+ <PulsingIndicator color="#22c55e" size={16} speed={8} />+);++export const RemotionRoot = () => (+ <Composition+ id="PulsingIndicator"+ component={PulsingIndicatorScene}+ durationInFrames={120}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/primitives/spring-pop-in.mdx b/content/docs/primitives/spring-pop-in.mdxindex ba9a4d18..b1ed13a2 100644--- a/content/docs/primitives/spring-pop-in.mdx+++ b/content/docs/primitives/spring-pop-in.mdx@@ -3,9 +3,10 @@ title: Spring Pop Indescription: Elastic scale-in wrapper for any element.---+<ComponentPreview name="spring-pop-in" />+A UI primitive that wraps its children in a spring-driven `transform: scale()`. Based directly on Remotion's `spring()` so timing and overshoot stay framerate-independent.-<ComponentPreview name="spring-pop-in" />## Installation@@ -14,13 +15,28 @@ A UI primitive that wraps its children in a spring-driven `transform: scale()`.## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { SpringPopIn } from "@/components/remocn/spring-pop-in";-<SpringPopIn damping={12}>- <div style={{ padding: 24, background: "#111", color: "white" }}>- Hello- </div>-</SpringPopIn>+const SpringPopInScene = () => (+ <SpringPopIn damping={12}>+ <div style={{ padding: 24, background: "#111", color: "white" }}>+ Hello+ </div>+ </SpringPopIn>+);++export const RemotionRoot = () => (+ <Composition+ id="SpringPopIn"+ component={SpringPopInScene}+ durationInFrames={60}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/primitives/success-confetti.mdx b/content/docs/primitives/success-confetti.mdxindex d8ceddcf..afd3a927 100644--- a/content/docs/primitives/success-confetti.mdx+++ b/content/docs/primitives/success-confetti.mdx@@ -3,9 +3,10 @@ title: Success Confettidescription: Deterministic confetti burst from a focal point with optional headline.---+<ComponentPreview name="success-confetti" />+A workflow finale: a burst of SVG confetti particles fanning out from a configurable origin under gravity. Particle directions, colors, sizes, and rotations are derived from Remotion's seeded `random()`, so renders are perfectly deterministic.-<ComponentPreview name="success-confetti" />## Installation@@ -14,13 +15,28 @@ A workflow finale: a burst of SVG confetti particles fanning out from a configur## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { SuccessConfetti } from "@/components/remocn/success-confetti";-<SuccessConfetti- text="Merged!"- count={60}- colors={["#ff5e3a", "#22c55e", "#0ea5e9", "#facc15", "#a855f7"]}-/>+const SuccessConfettiScene = () => (+ <SuccessConfetti+ text="Merged!"+ count={60}+ colors={["#ff5e3a", "#22c55e", "#0ea5e9", "#facc15", "#a855f7"]}+ />+);++export const RemotionRoot = () => (+ <Composition+ id="SuccessConfetti"+ component={SuccessConfettiScene}+ durationInFrames={120}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/primitives/toast-notification.mdx b/content/docs/primitives/toast-notification.mdxindex 1c1e2b92..a4d370a6 100644--- a/content/docs/primitives/toast-notification.mdx+++ b/content/docs/primitives/toast-notification.mdx@@ -3,9 +3,10 @@ title: Toast Notificationdescription: System-style toast that pops in, holds, then slides out.---+<ComponentPreview name="toast-notification" />+A micro-interaction primitive that drives a toast through three phases — `spring()`-based enter (translateY + opacity), a hold, and an `interpolate`-based exit. Position is anchored to the bottom-right of the frame and the variant controls the icon and accent.-<ComponentPreview name="toast-notification" />## Installation@@ -14,13 +15,28 @@ A micro-interaction primitive that drives a toast through three phases — `spri## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { ToastNotification } from "@/components/remocn/toast-notification";-<ToastNotification- title="Deployment successful"- message="Your changes are live at remocn.dev"- variant="success"-/>+const ToastNotificationScene = () => (+ <ToastNotification+ title="Deployment successful"+ message="Your changes are live at remocn.dev"+ variant="success"+ />+);++export const RemotionRoot = () => (+ <Composition+ id="ToastNotification"+ component={ToastNotificationScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/transitions/chromatic-aberration-wipe.mdx b/content/docs/transitions/chromatic-aberration-wipe.mdxindex e8a4d699..79bec9cc 100644--- a/content/docs/transitions/chromatic-aberration-wipe.mdx+++ b/content/docs/transitions/chromatic-aberration-wipe.mdx@@ -3,9 +3,10 @@ title: Chromatic Aberration Wipedescription: An ultra-fast slide transition with an RGB glitch on the peak frames.---+<ComponentPreview name="chromatic-aberration-wipe" />+A high-energy transition built for DevTools demos and product reels. Two scenes slide past each other in just 5–8 frames, and on the middle of that window the entire container gets a red+cyan `drop-shadow` filter to fake RGB channel separation. The glitch is intentionally short — restraint is the whole point. Three to five frames is enough for the viewer's eye to register speed without ever consciously parsing the colors.-<ComponentPreview name="chromatic-aberration-wipe" />## Installation@@ -14,15 +15,25 @@ A high-energy transition built for DevTools demos and product reels. Two scenes## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { ChromaticAberrationWipe } from "@/components/remocn/chromatic-aberration-wipe";-<ChromaticAberrationWipe- from={<SceneC />}- to={<SceneB />}- direction="left"- transitionDuration={7}- aberrationOffset={8}-/>+const ChromaticAberrationWipeScene = () => (+ <ChromaticAberrationWipe+ from={<SceneC />+);++export const RemotionRoot = () => (+ <Composition+ id="ChromaticAberrationWipe"+ component={ChromaticAberrationWipeScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/transitions/device-mockup-zoom.mdx b/content/docs/transitions/device-mockup-zoom.mdxindex fcbefc5a..f8f19525 100644--- a/content/docs/transitions/device-mockup-zoom.mdx+++ b/content/docs/transitions/device-mockup-zoom.mdx@@ -3,9 +3,10 @@ title: Device Mockup Zoomdescription: Pull back from a UI to reveal it inside a device frame.---+<ComponentPreview name="device-mockup-zoom" />+A transition that starts zoomed into a UI screen and animates `transform: scale()` from 2 down to 1, revealing an inline SVG laptop or phone frame around it. No external assets — the device chrome is rendered with plain divs.-<ComponentPreview name="device-mockup-zoom" />## Installation@@ -14,11 +15,24 @@ A transition that starts zoomed into a UI screen and animates `transform: scale(## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { DeviceMockupZoom } from "@/components/remocn/device-mockup-zoom";-<DeviceMockupZoom device="laptop">+const DeviceMockupZoomScene = () => (<YourAppScreen />-</DeviceMockupZoom>+);++export const RemotionRoot = () => (+ <Composition+ id="DeviceMockupZoom"+ component={DeviceMockupZoomScene}+ durationInFrames={120}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/transitions/directional-wipe.mdx b/content/docs/transitions/directional-wipe.mdxindex 82b3efa1..b88347c3 100644--- a/content/docs/transitions/directional-wipe.mdx+++ b/content/docs/transitions/directional-wipe.mdx@@ -3,9 +3,10 @@ title: Directional Wipedescription: Slide one scene in while pushing the other out.---+<ComponentPreview name="directional-wipe" />+A transition primitive that animates two scenes with `transform: translateX/Y`. The outgoing scene slides off in one direction while the incoming scene slides in from the opposite side. Uses `transform` (not `left`/`top`) so the browser doesn't trigger a layout reflow per frame.-<ComponentPreview name="directional-wipe" />## Installation@@ -14,14 +15,25 @@ A transition primitive that animates two scenes with `transform: translateX/Y`.## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { DirectionalWipe } from "@/components/remocn/directional-wipe";-<DirectionalWipe- from={<SceneA />}- to={<SceneB />}- direction="left"- transitionDuration={20}-/>+const DirectionalWipeScene = () => (+ <DirectionalWipe+ from={<SceneA />+);++export const RemotionRoot = () => (+ <Composition+ id="DirectionalWipe"+ component={DirectionalWipeScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/transitions/frosted-glass-wipe.mdx b/content/docs/transitions/frosted-glass-wipe.mdxindex 147f907a..e723e347 100644--- a/content/docs/transitions/frosted-glass-wipe.mdx+++ b/content/docs/transitions/frosted-glass-wipe.mdx@@ -3,9 +3,10 @@ title: Frosted Glass Wipedescription: Elegant scene transition through a sliding pane of frosted glass.---+<ComponentPreview name="frosted-glass-wipe" />+A transition primitive that slides a pane of frosted glass across the screen between two scenes. The outgoing scene blurs beneath the glass; once the pane crosses the midpoint, the incoming scene is revealed in its place. Uses `backdrop-filter` for the glass and `transform: translateX` for movement so the browser stays on the compositor.-<ComponentPreview name="frosted-glass-wipe" />## Installation@@ -14,14 +15,25 @@ A transition primitive that slides a pane of frosted glass across the screen bet## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { FrostedGlassWipe } from "@/components/remocn/frosted-glass-wipe";-<FrostedGlassWipe- from={<SceneA />}- to={<SceneB />}- transitionDuration={30}- glassBlur={24}-/>+const FrostedGlassWipeScene = () => (+ <FrostedGlassWipe+ from={<SceneA />+);++export const RemotionRoot = () => (+ <Composition+ id="FrostedGlassWipe"+ component={FrostedGlassWipeScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/transitions/grid-pixelate-wipe.mdx b/content/docs/transitions/grid-pixelate-wipe.mdxindex 66ee34ef..50465597 100644--- a/content/docs/transitions/grid-pixelate-wipe.mdx+++ b/content/docs/transitions/grid-pixelate-wipe.mdx@@ -3,9 +3,10 @@ title: Grid Pixelate Wipedescription: Dissolve from one scene to the next through a deterministic grid of mask cells.---+<ComponentPreview name="grid-pixelate-wipe" />+The screen is split into a CSS grid of black mask cells covering the outgoing scene. Each cell fades out on its own schedule, computed from a deterministic pattern function (`wave`, `diagonal`, or `spiral`). Because the per-cell delay is pure math over `(x, y)` — no `Math.random` — every frame is reproducible across renders, which is essential for video output.-<ComponentPreview name="grid-pixelate-wipe" />## Installation@@ -14,17 +15,25 @@ The screen is split into a CSS grid of black mask cells covering the outgoing sc## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { GridPixelateWipe } from "@/components/remocn/grid-pixelate-wipe";-<GridPixelateWipe- from={<SceneA />}- to={<SceneB />}- cols={12}- rows={7}- pattern="wave"- transitionDuration={30}- cellFadeFrames={4}-/>+const GridPixelateWipeScene = () => (+ <GridPixelateWipe+ from={<SceneA />+);++export const RemotionRoot = () => (+ <Composition+ id="GridPixelateWipe"+ component={GridPixelateWipeScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/transitions/kinetic-type-mask.mdx b/content/docs/transitions/kinetic-type-mask.mdxindex 2154e9e8..e55b651e 100644--- a/content/docs/transitions/kinetic-type-mask.mdx+++ b/content/docs/transitions/kinetic-type-mask.mdx@@ -3,9 +3,10 @@ title: Kinetic Type Maskdescription: Use giant typography as a window into the next scene.---+<ComponentPreview name="kinetic-type-mask" />+A transition primitive that turns a giant headline into a window into the next scene. The text is rendered as an SVG `<clipPath>` over the incoming scene, so its interior literally shows what's underneath. After a brief hold, the text scales exponentially until the inside of one letter expands past the screen edges and fully reveals the new scene.-<ComponentPreview name="kinetic-type-mask" />## Installation@@ -14,16 +15,25 @@ A transition primitive that turns a giant headline into a window into the next s## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { KineticTypeMask } from "@/components/remocn/kinetic-type-mask";-<KineticTypeMask- from={<SceneA />}- to={<SceneB />}- text="NEXT"- holdFrames={12}- transitionDuration={24}- maxScale={120}-/>+const KineticTypeMaskScene = () => (+ <KineticTypeMask+ from={<SceneA />+);++export const RemotionRoot = () => (+ <Composition+ id="KineticTypeMask"+ component={KineticTypeMaskScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/transitions/morphing-modal.mdx b/content/docs/transitions/morphing-modal.mdxindex d10e856b..283d4292 100644--- a/content/docs/transitions/morphing-modal.mdx+++ b/content/docs/transitions/morphing-modal.mdx@@ -3,9 +3,10 @@ title: Morphing Modaldescription: A bento card lifts off the grid and blooms into a full-screen modal driven by a single heavy spring.---+<ComponentPreview name="morphing-modal" />+The most expensive transition in the kit. Five properties — `top`, `left`, `width`, `height`, and `borderRadius` — are all driven by **one** spring with high mass and low stiffness so the modal "blooms" instead of jumping. The source card's content fades out in the first third of the morph, the modal's content fades in (with a 20px translateY) only in the last third — that asymmetric handoff is what stops it from feeling like a cheap slideshow. Backdrop dims in lockstep with the spring.-<ComponentPreview name="morphing-modal" />## Installation@@ -14,13 +15,28 @@ The most expensive transition in the kit. Five properties — `top`, `left`, `wi## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { MorphingModal } from "@/components/remocn/morphing-modal";-<MorphingModal- from={{ left: 460, top: 260, width: 360, height: 200 }}- to={{ left: 80, top: 60, width: 1120, height: 600 }}- morphAt={30}-/>+const MorphingModalScene = () => (+ <MorphingModal+ from={{ left: 460, top: 260, width: 360, height: 200 }}+ to={{ left: 80, top: 60, width: 1120, height: 600 }}+ morphAt={30}+ />+);++export const RemotionRoot = () => (+ <Composition+ id="MorphingModal"+ component={MorphingModalScene}+ durationInFrames={180}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/transitions/spatial-push.mdx b/content/docs/transitions/spatial-push.mdxindex f2b68e65..a4d77555 100644--- a/content/docs/transitions/spatial-push.mdx+++ b/content/docs/transitions/spatial-push.mdx@@ -3,9 +3,10 @@ title: Spatial Pushdescription: A new scene physically presses the old one back into the frame.---+<ComponentPreview name="spatial-push" />+A transition primitive with weight. Scene A shrinks, dims, and rounds its corners as if being pushed into the background, while Scene B drops in via a spring with overshoot, carrying a heavy directional drop shadow. The result feels kinetic — as if the incoming scene has real mass pressing against the outgoing one.-<ComponentPreview name="spatial-push" />## Installation@@ -14,14 +15,25 @@ A transition primitive with weight. Scene A shrinks, dims, and rounds its corner## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { SpatialPush } from "@/components/remocn/spatial-push";-<SpatialPush- from={<SceneA />}- to={<SceneB />}- direction="up"- transitionDuration={30}-/>+const SpatialPushScene = () => (+ <SpatialPush+ from={<SceneA />+);++export const RemotionRoot = () => (+ <Composition+ id="SpatialPush"+ component={SpatialPushScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/transitions/zoom-through-transition.mdx b/content/docs/transitions/zoom-through-transition.mdxindex e59318d9..617942ff 100644--- a/content/docs/transitions/zoom-through-transition.mdx+++ b/content/docs/transitions/zoom-through-transition.mdx@@ -3,9 +3,10 @@ title: Zoom Through Transitiondescription: Aggressively scale into the center of an element to fly through it.---+<ComponentPreview name="zoom-through-transition" />+A scene transition that interpolates `transform: scale()` with an exponential easing curve, creating the impression of flying *through* an element. Pair with the next scene rendered behind it for a continuous reveal.-<ComponentPreview name="zoom-through-transition" />## Installation@@ -14,11 +15,24 @@ A scene transition that interpolates `transform: scale()` with an exponential ea## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { ZoomThroughTransition } from "@/components/remocn/zoom-through-transition";-<ZoomThroughTransition targetScale={20}>+const ZoomThroughTransitionScene = () => (<Logo />-</ZoomThroughTransition>+);++export const RemotionRoot = () => (+ <Composition+ id="ZoomThroughTransition"+ component={ZoomThroughTransitionScene}+ durationInFrames={60}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/typography/blur-reveal.mdx b/content/docs/typography/blur-reveal.mdxindex 0b568d75..a4bc36ee 100644--- a/content/docs/typography/blur-reveal.mdx+++ b/content/docs/typography/blur-reveal.mdx@@ -3,9 +3,10 @@ title: Blur Revealdescription: Text fades in from a heavy blur into sharp focus.---+<ComponentPreview name="blur-reveal" />+A typography primitive that animates `opacity` from 0 to 1 and `filter: blur()` from a configurable amount down to 0. Useful for title cards and intro shots.-<ComponentPreview name="blur-reveal" />## Installation@@ -14,9 +15,24 @@ A typography primitive that animates `opacity` from 0 to 1 and `filter: blur()`## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { BlurReveal } from "@/components/remocn/blur-reveal";-<BlurReveal text="Hello, world" blur={12} fontSize={72} />+const BlurRevealScene = () => (+ <BlurReveal text="Hello, world" blur={12} fontSize={72} />+);++export const RemotionRoot = () => (+ <Composition+ id="BlurReveal"+ component={BlurRevealScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/typography/infinite-marquee.mdx b/content/docs/typography/infinite-marquee.mdxindex cf4915ff..36b3e058 100644--- a/content/docs/typography/infinite-marquee.mdx+++ b/content/docs/typography/infinite-marquee.mdx@@ -3,9 +3,10 @@ title: Infinite Marqueedescription: A continuously scrolling horizontal text strip that loops seamlessly.---+<ComponentPreview name="infinite-marquee" />+A typography primitive that translates a row of duplicated text spans on the X axis at a fixed pixel-per-frame rate. The offset is taken `mod` the approximate width of one repetition so the loop is seamless and fully deterministic.-<ComponentPreview name="infinite-marquee" />## Installation@@ -14,9 +15,24 @@ A typography primitive that translates a row of duplicated text spans on the X a## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { InfiniteMarquee } from "@/components/remocn/infinite-marquee";-<InfiniteMarquee text="ship · build · animate · " pixelsPerFrame={4} stroke />+const InfiniteMarqueeScene = () => (+ <InfiniteMarquee text="ship · build · animate · " pixelsPerFrame={4} stroke />+);++export const RemotionRoot = () => (+ <Composition+ id="InfiniteMarquee"+ component={InfiniteMarqueeScene}+ durationInFrames={180}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/typography/inline-highlight.mdx b/content/docs/typography/inline-highlight.mdxindex e9a5cc08..b4f5f413 100644--- a/content/docs/typography/inline-highlight.mdx+++ b/content/docs/typography/inline-highlight.mdx@@ -3,9 +3,10 @@ title: Inline Highlightdescription: Animate one word inside a sentence from a base color to a brand color.---+<ComponentPreview name="inline-highlight" />+A typography primitive that splits a sentence into `before`, `highlight`, and `after` parts and animates the color of the middle word using `interpolateColors` from Remotion.-<ComponentPreview name="inline-highlight" />## Installation@@ -14,14 +15,29 @@ A typography primitive that splits a sentence into `before`, `highlight`, and `a## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { InlineHighlight } from "@/components/remocn/inline-highlight";-<InlineHighlight- before="Ship faster with "- highlight="remocn"- highlightColor="#ff5e3a"- fontSize={72}-/>+const InlineHighlightScene = () => (+ <InlineHighlight+ before="Ship faster with "+ highlight="remocn"+ highlightColor="#ff5e3a"+ fontSize={72}+ />+);++export const RemotionRoot = () => (+ <Composition+ id="InlineHighlight"+ component={InlineHighlightScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/typography/marker-highlight.mdx b/content/docs/typography/marker-highlight.mdxindex 4399b5f4..4c795814 100644--- a/content/docs/typography/marker-highlight.mdx+++ b/content/docs/typography/marker-highlight.mdx@@ -3,9 +3,10 @@ title: Marker Highlightdescription: A colored marker block draws behind a phrase while the text color shifts.---+<ComponentPreview name="marker-highlight" />+A typography primitive that mimics a physical highlighter sweeping behind a word. The colored block grows from left to right via a spring, and the target text color interpolates to a contrast color.-<ComponentPreview name="marker-highlight" />## Installation@@ -14,14 +15,29 @@ A typography primitive that mimics a physical highlighter sweeping behind a word## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { MarkerHighlight } from "@/components/remocn/marker-highlight";-<MarkerHighlight- before="Ship it "- highlight="fast"- after="."- markerColor="#facc15"-/>+const MarkerHighlightScene = () => (+ <MarkerHighlight+ before="Ship it "+ highlight="fast"+ after="."+ markerColor="#facc15"+ />+);++export const RemotionRoot = () => (+ <Composition+ id="MarkerHighlight"+ component={MarkerHighlightScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/typography/masked-slide-reveal.mdx b/content/docs/typography/masked-slide-reveal.mdxindex e92319a4..3eb7c59c 100644--- a/content/docs/typography/masked-slide-reveal.mdx+++ b/content/docs/typography/masked-slide-reveal.mdx@@ -3,9 +3,10 @@ title: Masked Slide Revealdescription: Words rise out of an invisible horizontal mask with a springy motion.---+<ComponentPreview name="masked-slide-reveal" />+A strict, architectural typography primitive: each word is wrapped in a fixed-height container with `overflow: hidden`, and the inner span springs upward from `translateY(100%)` to `0`. The result is text that grows out of an invisible baseline.-<ComponentPreview name="masked-slide-reveal" />## Installation@@ -14,9 +15,24 @@ A strict, architectural typography primitive: each word is wrapped in a fixed-he## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { MaskedSlideReveal } from "@/components/remocn/masked-slide-reveal";-<MaskedSlideReveal text="Built for Remotion" />+const MaskedSlideRevealScene = () => (+ <MaskedSlideReveal text="Built for Remotion" />+);++export const RemotionRoot = () => (+ <Composition+ id="MaskedSlideReveal"+ component={MaskedSlideRevealScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/typography/matrix-decode.mdx b/content/docs/typography/matrix-decode.mdxindex c163b3bb..c6b10a02 100644--- a/content/docs/typography/matrix-decode.mdx+++ b/content/docs/typography/matrix-decode.mdx@@ -3,9 +3,10 @@ title: Matrix Decodedescription: Random scramble resolves left-to-right into target text.---+<ComponentPreview name="matrix-decode" />+A typography primitive that starts as a stream of random symbols and decodes character by character into the target text. Perfect for DevTools, cybersecurity, and AI reveal moments.-<ComponentPreview name="matrix-decode" />## Installation@@ -14,9 +15,24 @@ A typography primitive that starts as a stream of random symbols and decodes cha## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { MatrixDecode } from "@/components/remocn/matrix-decode";-<MatrixDecode text="ACCESS GRANTED" revealDuration={60} />+const MatrixDecodeScene = () => (+ <MatrixDecode text="ACCESS GRANTED" revealDuration={60} />+);++export const RemotionRoot = () => (+ <Composition+ id="MatrixDecode"+ component={MatrixDecodeScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/typography/perspective-marquee.mdx b/content/docs/typography/perspective-marquee.mdxindex b9bf72c7..adbb4d3f 100644--- a/content/docs/typography/perspective-marquee.mdx+++ b/content/docs/typography/perspective-marquee.mdx@@ -3,9 +3,10 @@ title: Perspective Marqueedescription: A 3D-tilted infinite marquee with depth-of-field blur on items rolling toward the horizon.---+<ComponentPreview name="perspective-marquee" />+A typography primitive that takes the seamless modulo-based loop from `InfiniteMarquee` and tilts it in 3D space using CSS `perspective` and `rotateX/Y`. Items further from the viewport center receive progressively heavier `filter: blur()` and lower opacity, mimicking depth of field. Edge vignettes fade the marquee into the background so the loop is invisible.-<ComponentPreview name="perspective-marquee" />## Installation@@ -14,13 +15,28 @@ A typography primitive that takes the seamless modulo-based loop from `InfiniteM## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { PerspectiveMarquee } from "@/components/remocn/perspective-marquee";-<PerspectiveMarquee- items={["Vercel", "Linear", "Stripe", "Figma"]}- rotateY={-28}- pixelsPerFrame={2}-/>+const PerspectiveMarqueeScene = () => (+ <PerspectiveMarquee+ items={["Vercel", "Linear", "Stripe", "Figma"]}+ rotateY={-28}+ pixelsPerFrame={2}+ />+);++export const RemotionRoot = () => (+ <Composition+ id="PerspectiveMarquee"+ component={PerspectiveMarqueeScene}+ durationInFrames={240}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/typography/rgb-glitch-text.mdx b/content/docs/typography/rgb-glitch-text.mdxindex 0e32adb2..1001143c 100644--- a/content/docs/typography/rgb-glitch-text.mdx+++ b/content/docs/typography/rgb-glitch-text.mdx@@ -3,9 +3,10 @@ title: RGB Glitch Textdescription: Three RGB-offset text copies jitter for a few frames to create a chromatic aberration glitch.---+<ComponentPreview name="rgb-glitch-text" />+A typography primitive that stacks red, green, and blue copies of the same text and offsets them on each frame during a short glitch window. Uses `random(seed)` from Remotion so the jitter is fully deterministic across renders.-<ComponentPreview name="rgb-glitch-text" />## Installation@@ -14,9 +15,24 @@ A typography primitive that stacks red, green, and blue copies of the same text## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { RGBGlitchText } from "@/components/remocn/rgb-glitch-text";-<RGBGlitchText text="SYSTEM" glitchAt={20} glitchDuration={8} intensity={6} />+const RGBGlitchTextScene = () => (+ <RGBGlitchText text="SYSTEM" glitchAt={20} glitchDuration={8} intensity={6} />+);++export const RemotionRoot = () => (+ <Composition+ id="RGBGlitchText"+ component={RGBGlitchTextScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/typography/shimmer-sweep.mdx b/content/docs/typography/shimmer-sweep.mdxindex b800cc5e..921efe0e 100644--- a/content/docs/typography/shimmer-sweep.mdx+++ b/content/docs/typography/shimmer-sweep.mdx@@ -3,9 +3,10 @@ title: Shimmer Sweepdescription: A bright shine travels across muted text to draw attention.---+<ComponentPreview name="shimmer-sweep" />+A typography primitive that layers a gradient shine on top of muted base text using `background-clip: text`. The gradient sweeps horizontally across the text, lighting up letters as it passes. Great for AI and generation moments.-<ComponentPreview name="shimmer-sweep" />## Installation@@ -14,9 +15,24 @@ A typography primitive that layers a gradient shine on top of muted base text us## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { ShimmerSweep } from "@/components/remocn/shimmer-sweep";-<ShimmerSweep text="Generating..." fontSize={96} />+const ShimmerSweepScene = () => (+ <ShimmerSweep text="Generating..." fontSize={96} />+);++export const RemotionRoot = () => (+ <Composition+ id="ShimmerSweep"+ component={ShimmerSweepScene}+ durationInFrames={120}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/typography/slot-machine-roll.mdx b/content/docs/typography/slot-machine-roll.mdxindex d42338c5..3ebd5962 100644--- a/content/docs/typography/slot-machine-roll.mdx+++ b/content/docs/typography/slot-machine-roll.mdx@@ -3,9 +3,10 @@ title: Slot Machine Rolldescription: Vertical reel scrolls each character from an old value to a new value.---+<ComponentPreview name="slot-machine-roll" />+A typography primitive that animates changing values (prices, counters, statuses) as a vertical reel. Each character column rolls independently with a staggered spring, giving a slot-machine feel.-<ComponentPreview name="slot-machine-roll" />## Installation@@ -14,9 +15,24 @@ A typography primitive that animates changing values (prices, counters, statuses## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { SlotMachineRoll } from "@/components/remocn/slot-machine-roll";-<SlotMachineRoll from="$99" to="$199" fontSize={120} />+const SlotMachineRollScene = () => (+ <SlotMachineRoll from="$99" to="$199" fontSize={120} />+);++export const RemotionRoot = () => (+ <Composition+ id="SlotMachineRoll"+ component={SlotMachineRollScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/typography/staggered-fade-up.mdx b/content/docs/typography/staggered-fade-up.mdxindex 4064f505..0cdd33da 100644--- a/content/docs/typography/staggered-fade-up.mdx+++ b/content/docs/typography/staggered-fade-up.mdx@@ -3,9 +3,10 @@ title: Staggered Fade Updescription: Words slide up and fade in sequentially with a wave-like cascade.---+<ComponentPreview name="staggered-fade-up" />+A typography primitive that splits text into words and animates each one with a small delay, sliding up from a configurable distance while fading in. Great for hero titles and intro shots.-<ComponentPreview name="staggered-fade-up" />## Installation@@ -14,9 +15,24 @@ A typography primitive that splits text into words and animates each one with a## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { StaggeredFadeUp } from "@/components/remocn/staggered-fade-up";-<StaggeredFadeUp text="Ship videos faster" staggerDelay={4} />+const StaggeredFadeUpScene = () => (+ <StaggeredFadeUp text="Ship videos faster" staggerDelay={4} />+);++export const RemotionRoot = () => (+ <Composition+ id="StaggeredFadeUp"+ component={StaggeredFadeUpScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/typography/text-fade-replace.mdx b/content/docs/typography/text-fade-replace.mdxindex 74442123..79c85f53 100644--- a/content/docs/typography/text-fade-replace.mdx+++ b/content/docs/typography/text-fade-replace.mdx@@ -3,9 +3,10 @@ title: Text Fade Replacedescription: Cross-fade between two strings on the same line without layout shift.---+<ComponentPreview name="text-fade-replace" />+A typography primitive that swaps one string for another in place. Both spans are absolutely positioned in a relative container so they never push each other in the DOM during the fade.-<ComponentPreview name="text-fade-replace" />## Installation@@ -14,9 +15,24 @@ A typography primitive that swaps one string for another in place. Both spans ar## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { TextFadeReplace } from "@/components/remocn/text-fade-replace";-<TextFadeReplace from="Before" to="After" fontSize={72} />+const TextFadeReplaceScene = () => (+ <TextFadeReplace from="Before" to="After" fontSize={72} />+);++export const RemotionRoot = () => (+ <Composition+ id="TextFadeReplace"+ component={TextFadeReplaceScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/typography/tracking-in.mdx b/content/docs/typography/tracking-in.mdxindex e6f3b752..6523bb29 100644--- a/content/docs/typography/tracking-in.mdx+++ b/content/docs/typography/tracking-in.mdx@@ -3,9 +3,10 @@ title: Tracking Indescription: Letter-spacing collapses and blur clears with a springy entrance.---+<ComponentPreview name="tracking-in" />+A typography primitive that starts text with a wide `letter-spacing` and a heavy blur, then springs both back to normal. The result is a tight, premium-feeling title reveal.-<ComponentPreview name="tracking-in" />## Installation@@ -14,9 +15,24 @@ A typography primitive that starts text with a wide `letter-spacing` and a heavy## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { TrackingIn } from "@/components/remocn/tracking-in";-<TrackingIn text="REMOCN" startTracking={0.6} startBlur={14} />+const TrackingInScene = () => (+ <TrackingIn text="REMOCN" startTracking={0.6} startBlur={14} />+);++export const RemotionRoot = () => (+ <Composition+ id="TrackingIn"+ component={TrackingInScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/typography/typewriter.mdx b/content/docs/typography/typewriter.mdxindex e733f84c..0de00a67 100644--- a/content/docs/typography/typewriter.mdx+++ b/content/docs/typography/typewriter.mdx@@ -3,9 +3,10 @@ title: Typewriterdescription: Character-by-character text reveal with a deterministic blinking cursor.---+<ComponentPreview name="typewriter" />+A typography primitive that reveals text one character at a time using `interpolate` and `substring`. The cursor blinks via integer math on the current frame, so it stays consistent across re-renders.-<ComponentPreview name="typewriter" />## Installation@@ -14,9 +15,24 @@ A typography primitive that reveals text one character at a time using `interpol## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { Typewriter } from "@/components/remocn/typewriter";-<Typewriter text="Hello, world" speed={20} fontSize={72} />+const TypewriterScene = () => (+ <Typewriter text="Hello, world" speed={20} fontSize={72} />+);++export const RemotionRoot = () => (+ <Composition+ id="Typewriter"+ component={TypewriterScene}+ durationInFrames={120}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/ui-blocks/animated-bar-chart.mdx b/content/docs/ui-blocks/animated-bar-chart.mdxindex 143dd8d9..1746ef28 100644--- a/content/docs/ui-blocks/animated-bar-chart.mdx+++ b/content/docs/ui-blocks/animated-bar-chart.mdx@@ -3,9 +3,10 @@ title: Animated Bar Chartdescription: Bars spring up from the baseline with a staggered cascade.---+<ComponentPreview name="animated-bar-chart" />+A data-viz primitive that renders SVG `<rect>` bars and animates each one with a `spring()` driven `scaleY` transform. Each bar is offset by `staggerFrames`, producing a clean cascade.-<ComponentPreview name="animated-bar-chart" />## Installation@@ -14,12 +15,27 @@ A data-viz primitive that renders SVG `<rect>` bars and animates each one with a## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { AnimatedBarChart } from "@/components/remocn/animated-bar-chart";-<AnimatedBarChart- data={[35, 60, 45, 80, 55, 70, 90, 65]}- barColor="#0ea5e9"-/>+const AnimatedBarChartScene = () => (+ <AnimatedBarChart+ data={[35, 60, 45, 80, 55, 70, 90, 65]}+ barColor="#0ea5e9"+ />+);++export const RemotionRoot = () => (+ <Composition+ id="AnimatedBarChart"+ component={AnimatedBarChartScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/ui-blocks/animated-line-chart.mdx b/content/docs/ui-blocks/animated-line-chart.mdxindex 5be36196..f2339c8b 100644--- a/content/docs/ui-blocks/animated-line-chart.mdx+++ b/content/docs/ui-blocks/animated-line-chart.mdx@@ -3,9 +3,10 @@ title: Animated Line Chartdescription: A line chart whose path draws on from left to right.---+<ComponentPreview name="animated-line-chart" />+A data-viz primitive built with SVG `<path>`. The full path length is computed analytically (sum of segment distances) and animated via `strokeDasharray` + `strokeDashoffset`. An optional leading dot rides the head of the line as it draws.-<ComponentPreview name="animated-line-chart" />## Installation@@ -14,12 +15,27 @@ A data-viz primitive built with SVG `<path>`. The full path length is computed a## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { AnimatedLineChart } from "@/components/remocn/animated-line-chart";-<AnimatedLineChart- data={[12, 19, 8, 15, 22, 18, 28, 25, 32]}- strokeColor="#22c55e"-/>+const AnimatedLineChartScene = () => (+ <AnimatedLineChart+ data={[12, 19, 8, 15, 22, 18, 28, 25, 32]}+ strokeColor="#22c55e"+ />+);++export const RemotionRoot = () => (+ <Composition+ id="AnimatedLineChart"+ component={AnimatedLineChartScene}+ durationInFrames={90}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/ui-blocks/code-accordion.mdx b/content/docs/ui-blocks/code-accordion.mdxindex 9f41149b..b4c5d52a 100644--- a/content/docs/ui-blocks/code-accordion.mdx+++ b/content/docs/ui-blocks/code-accordion.mdx@@ -3,9 +3,10 @@ title: Code Accordiondescription: A code window that springs a range of lines closed and replaces them with a "N lines collapsed" placeholder.---+<ComponentPreview name="code-accordion" />+A code primitive for fixing camera attention. The window starts fully open, then a single spring drives the height of a wrapped range from `lineCount * lineHeight` down to one line, fading the original code out and the placeholder in. Because both inner content and the bar share the same spring, the bottom of the window snaps up with the same micro-bounce — the accordion feels like it has weight.-<ComponentPreview name="code-accordion" />## Installation@@ -14,13 +15,28 @@ A code primitive for fixing camera attention. The window starts fully open, then## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { CodeAccordion } from "@/components/remocn/code-accordion";-<CodeAccordion- lines={fileContents.split("\n")}- collapseRange={[3, 14]}- collapseAt={30}-/>+const CodeAccordionScene = () => (+ <CodeAccordion+ lines={fileContents.split("\n")}+ collapseRange={[3, 14]}+ collapseAt={30}+ />+);++export const RemotionRoot = () => (+ <Composition+ id="CodeAccordion"+ component={CodeAccordionScene}+ durationInFrames={150}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/ui-blocks/code-diff-wipe.mdx b/content/docs/ui-blocks/code-diff-wipe.mdxindex 6dda5529..a978755c 100644--- a/content/docs/ui-blocks/code-diff-wipe.mdx+++ b/content/docs/ui-blocks/code-diff-wipe.mdx@@ -3,9 +3,10 @@ title: Code Diff Wipedescription: Reveal an "after" code snippet by wiping a "before" snippet away.---+<ComponentPreview name="code-diff-wipe" />+A dev-block that stacks two code panes and animates a vertical wipe from left to right. The top "before" layer is masked with `clip-path: inset(0 X% 0 0)` where `X` interpolates from `0` to `100`, revealing the "after" code beneath. An optional handle marker rides the wipe line.-<ComponentPreview name="code-diff-wipe" />## Installation@@ -14,12 +15,27 @@ A dev-block that stacks two code panes and animates a vertical wipe from left to## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { CodeDiffWipe } from "@/components/remocn/code-diff-wipe";-<CodeDiffWipe- before={"function get() { /* old */ }"}- after={"const get = async () => { /* new */ }"}-/>+const CodeDiffWipeScene = () => (+ <CodeDiffWipe+ before={"function get() { /* old */ }"}+ after={"const get = async () => { /* new */ }"}+ />+);++export const RemotionRoot = () => (+ <Composition+ id="CodeDiffWipe"+ component={CodeDiffWipeScene}+ durationInFrames={120}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/ui-blocks/data-flow-pipes.mdx b/content/docs/ui-blocks/data-flow-pipes.mdxindex 5940bed3..90f1ae1c 100644--- a/content/docs/ui-blocks/data-flow-pipes.mdx+++ b/content/docs/ui-blocks/data-flow-pipes.mdx@@ -3,9 +3,10 @@ title: Data Flow Pipesdescription: Glowing data packets travel along SVG bezier pipes between system nodes, leaving fading trails.---+<ComponentPreview name="data-flow-pipes" />+A diagramming primitive for showing data moving through a system. Nodes are positioned absolutely; edges become SVG cubic-bezier paths with horizontally-pulled handles so the routes look like API/DB diagrams instead of straight wires. Each pulse is rendered as a bright dash that animates along the path via `strokeDashoffset`, with three faded ghost copies offset behind it to fake motion blur. Path arc length is sampled numerically (no DOM `getTotalLength`), so the math is fully render-deterministic.-<ComponentPreview name="data-flow-pipes" />## Installation@@ -14,19 +15,34 @@ A diagramming primitive for showing data moving through a system. Nodes are posi## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { DataFlowPipes } from "@/components/remocn/data-flow-pipes";-<DataFlowPipes- nodes={[- { id: "client", x: 140, y: 360, label: "Client" },- { id: "api", x: 460, y: 200, label: "API" },- { id: "db", x: 820, y: 360, label: "Database" },- ]}- edges={[- { from: "client", to: "api", startFrame: 0 },- { from: "api", to: "db", startFrame: 18 },- ]}-/>+const DataFlowPipesScene = () => (+ <DataFlowPipes+ nodes={[+ { id: "client", x: 140, y: 360, label: "Client" },+ { id: "api", x: 460, y: 200, label: "API" },+ { id: "db", x: 820, y: 360, label: "Database" },+ ]}+ edges={[+ { from: "client", to: "api", startFrame: 0 },+ { from: "api", to: "db", startFrame: 18 },+ ]}+ />+);++export const RemotionRoot = () => (+ <Composition+ id="DataFlowPipes"+ component={DataFlowPipesScene}+ durationInFrames={180}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/ui-blocks/drag-and-drop-flow.mdx b/content/docs/ui-blocks/drag-and-drop-flow.mdxindex f48fa671..1f5f8920 100644--- a/content/docs/ui-blocks/drag-and-drop-flow.mdx+++ b/content/docs/ui-blocks/drag-and-drop-flow.mdx@@ -3,9 +3,10 @@ title: Drag And Drop Flowdescription: Simulates dragging a file into a drop zone, then a progress bar fills.---+<ComponentPreview name="drag-and-drop-flow" />+A micro-interaction composition: a file icon is dragged across the frame into a dashed dropzone. The dropzone border highlights via `interpolateColors`, the file fades, and a progress bar grows from 0 to 100%.-<ComponentPreview name="drag-and-drop-flow" />## Installation@@ -14,13 +15,28 @@ A micro-interaction composition: a file icon is dragged across the frame into a## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { DragAndDropFlow } from "@/components/remocn/drag-and-drop-flow";-<DragAndDropFlow- accent="#0ea5e9"- dropzoneLabel="Drop file to upload"- fileName="design.fig"-/>+const DragAndDropFlowScene = () => (+ <DragAndDropFlow+ accent="#0ea5e9"+ dropzoneLabel="Drop file to upload"+ fileName="design.fig"+ />+);++export const RemotionRoot = () => (+ <Composition+ id="DragAndDropFlow"+ component={DragAndDropFlowScene}+ durationInFrames={150}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/ui-blocks/dynamic-split-screen.mdx b/content/docs/ui-blocks/dynamic-split-screen.mdxindex 551bceb0..825a1dab 100644--- a/content/docs/ui-blocks/dynamic-split-screen.mdx+++ b/content/docs/ui-blocks/dynamic-split-screen.mdx@@ -3,9 +3,10 @@ title: Dynamic Split Screendescription: Cinematic two-column split where one panel shrinks and the other expands into view.---+<ComponentPreview name="chat-to-preview-layout" />+A layout block that animates the `flex-basis` of two side-by-side panels — perfect for chat-to-preview handoffs, before/after comparisons, or any moment where one workspace cedes real estate to another. Both panels use `overflow: hidden` so their content doesn't break the layout while the widths animate.-<ComponentPreview name="chat-to-preview-layout" />## Installation@@ -14,14 +15,25 @@ A layout block that animates the `flex-basis` of two side-by-side panels — per## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { ChatToPreviewLayout } from "@/components/remocn/chat-to-preview-layout";-<ChatToPreviewLayout- chat={<MyChat />}- preview={<MyPreview />}- startChatRatio={0.5}- endChatRatio={0.25}-/>+const ChatToPreviewLayoutScene = () => (+ <ChatToPreviewLayout+ chat={<MyChat />+);++export const RemotionRoot = () => (+ <Composition+ id="ChatToPreviewLayout"+ component={ChatToPreviewLayoutScene}+ durationInFrames={120}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/ui-blocks/glass-code-block.mdx b/content/docs/ui-blocks/glass-code-block.mdxindex af8f08a7..495c42f1 100644--- a/content/docs/ui-blocks/glass-code-block.mdx+++ b/content/docs/ui-blocks/glass-code-block.mdx@@ -3,9 +3,10 @@ title: Glass Code Blockdescription: A premium frosted-glass code editor window with a regex tokenizer and line-by-line stagger reveal.---+<ComponentPreview name="glass-code-block" />+A code window primitive that ditches the flat black rectangle look. The card uses `backdrop-filter: blur()` over a slow animated aura for real refraction; a 1px linear-gradient ring fakes a top-edge highlight; macOS-style traffic lights are dimmed to 60% so they don't shout. Lines fade in one after another with a tiny upward slide via `Sequence`. Syntax highlighting is a small built-in regex tokenizer — no `highlight.js` dependency.-<ComponentPreview name="glass-code-block" />## Installation@@ -14,12 +15,27 @@ A code window primitive that ditches the flat black rectangle look. The card use## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { GlassCodeBlock } from "@/components/remocn/glass-code-block";-<GlassCodeBlock- title="hero.tsx"- code={`export function Hero() {\n return <h1>Hello</h1>;\n}`}-/>+const GlassCodeBlockScene = () => (+ <GlassCodeBlock+ title="hero.tsx"+ code={`export function Hero() {\n return <h1>Hello</h1>;\n}`}+ />+);++export const RemotionRoot = () => (+ <Composition+ id="GlassCodeBlock"+ component={GlassCodeBlockScene}+ durationInFrames={180}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/ui-blocks/progress-steps.mdx b/content/docs/ui-blocks/progress-steps.mdxindex 6d940de9..14b3dcd1 100644--- a/content/docs/ui-blocks/progress-steps.mdx+++ b/content/docs/ui-blocks/progress-steps.mdx@@ -3,9 +3,10 @@ title: Progress Stepsdescription: Multi-step pipeline with nodes lighting up sequentially.---+<ComponentPreview name="progress-steps" />+A workflow primitive that visualizes a multi-step process. Each node is staggered through `spring()` scale and `interpolateColors`, while connecting SVG lines fill via `strokeDashoffset`. Switch `orientation` to render as a horizontal pipeline or a vertical timeline.-<ComponentPreview name="progress-steps" />## Installation@@ -14,13 +15,28 @@ A workflow primitive that visualizes a multi-step process. Each node is staggere## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { ProgressSteps } from "@/components/remocn/progress-steps";-<ProgressSteps- steps={[{ label: "Connect" }, { label: "Process" }, { label: "Deploy" }]}- orientation="horizontal"- stepDuration={30}-/>+const ProgressStepsScene = () => (+ <ProgressSteps+ steps={[{ label: "Connect" }, { label: "Process" }, { label: "Deploy" }]}+ orientation="horizontal"+ stepDuration={30}+ />+);++export const RemotionRoot = () => (+ <Composition+ id="ProgressSteps"+ component={ProgressStepsScene}+ durationInFrames={150}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/ui-blocks/staggered-bento-grid.mdx b/content/docs/ui-blocks/staggered-bento-grid.mdxindex 7ece5bb7..9a22c3e2 100644--- a/content/docs/ui-blocks/staggered-bento-grid.mdx+++ b/content/docs/ui-blocks/staggered-bento-grid.mdx@@ -3,9 +3,10 @@ title: Staggered Bento Griddescription: Cards pop into a bento grid one after another with a spring.---+<ComponentPreview name="staggered-bento-grid" />+A composition that maps an array of items into a CSS grid and wraps each card in a `<Sequence>` offset by `staggerDelay` frames. Each card uses `spring()` for its scale and opacity, so its life cycle starts at frame 0 inside the sequence.-<ComponentPreview name="staggered-bento-grid" />## Installation@@ -14,16 +15,31 @@ A composition that maps an array of items into a CSS grid and wraps each card in## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { StaggeredBentoGrid } from "@/components/remocn/staggered-bento-grid";-<StaggeredBentoGrid- staggerDelay={8}- columns={3}- items={[- { title: "Fast", body: "Built on Remotion", span: 2 },- { title: "Animated", body: "Spring physics" },- ]}-/>+const StaggeredBentoGridScene = () => (+ <StaggeredBentoGrid+ staggerDelay={8}+ columns={3}+ items={[+ { title: "Fast", body: "Built on Remotion", span: 2 },+ { title: "Animated", body: "Spring physics" },+ ]}+ />+);++export const RemotionRoot = () => (+ <Composition+ id="StaggeredBentoGrid"+ component={StaggeredBentoGridScene}+ durationInFrames={120}+ fps={30}+ width={1280}+ height={720}+ />+);```## Propsdiff --git a/content/docs/ui-blocks/terminal-simulator.mdx b/content/docs/ui-blocks/terminal-simulator.mdxindex a2813759..664504ce 100644--- a/content/docs/ui-blocks/terminal-simulator.mdx+++ b/content/docs/ui-blocks/terminal-simulator.mdx@@ -3,9 +3,10 @@ title: Terminal Simulatordescription: A console window that types out commands and rolls older lines off the top.---+<ComponentPreview name="terminal-simulator" />+A dev-block that simulates a terminal session. Each line is revealed via `<Sequence>` and typed character-by-character with a substring + `interpolate` pattern. Once the visible line count exceeds the window, the inner container slides up via `translateY` so the latest line is always in view.-<ComponentPreview name="terminal-simulator" />## Installation@@ -14,14 +15,29 @@ A dev-block that simulates a terminal session. Each line is revealed via `<Seque## Usage```tsx+// src/Root.tsx+import { Composition } from "remotion";import { TerminalSimulator } from "@/components/remocn/terminal-simulator";-<TerminalSimulator- lines={[- { text: "npm run build", type: "command" },- { text: "Compiled successfully", type: "success", delay: 14 },- ]}-/>+const TerminalSimulatorScene = () => (+ <TerminalSimulator+ lines={[+ { text: "npm run build", type: "command" },+ { text: "Compiled successfully", type: "success", delay: 14 },+ ]}+ />+);++export const RemotionRoot = () => (+ <Composition+ id="TerminalSimulator"+ component={TerminalSimulatorScene}+ durationInFrames={240}+ fps={30}+ width={1280}+ height={720}+ />+);```## Props