Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: docs

dev_wandry8f5059d4e942
diff --git a/content/docs/compositions/browser-flow.mdx b/content/docs/compositions/browser-flow.mdx
index 48da2d2a..688c768a 100644
--- a/content/docs/compositions/browser-flow.mdx
+++ b/content/docs/compositions/browser-flow.mdx
@@ -32,6 +32,19 @@ export const RemotionRoot = () => (
);
```
+### With Backdrop
+
+Renders transparent — supply the background via `Backdrop`:
+
+```tsx
+import { Backdrop } from "@/components/remocn/backdrop";
+import { BrowserFlow } from "@/components/remocn/browser-flow";
+
+<Backdrop fill={{ type: "gradient", value: "radial-gradient(ellipse at center, #11141c 0%, #050505 75%)" }}>
+ <BrowserFlow url="remocn.dev" />
+</Backdrop>
+```
+
## Props
<PropsTable
diff --git a/content/docs/environment/spotlight-card.mdx b/content/docs/environment/spotlight-card.mdx
index f02a5e85..dbcb251a 100644
--- a/content/docs/environment/spotlight-card.mdx
+++ b/content/docs/environment/spotlight-card.mdx
@@ -32,6 +32,19 @@ export const RemotionRoot = () => (
);
```
+### With Backdrop
+
+Renders transparent — supply the background via `Backdrop`:
+
+```tsx
+import { Backdrop } from "@/components/remocn/backdrop";
+import { SpotlightCard } from "@/components/remocn/spotlight-card";
+
+<Backdrop fill={{ type: "color", value: "#050505" }}>
+ <SpotlightCard title="Your feature" body="Two-line description goes here." />
+</Backdrop>
+```
+
## Props
<PropsTable
@@ -72,12 +85,6 @@ export const RemotionRoot = () => (
default: "0.08",
description: "Maximum alpha of the surface glow. Keep this low to stay lunar.",
},
- {
- name: "background",
- type: "string",
- default: "\"#050505\"",
- description: "Page background color around the card",
- },
{
name: "cardColor",
type: "string",
diff --git a/content/docs/typography/infinite-marquee.mdx b/content/docs/typography/infinite-marquee.mdx
index c99ded60..eab58203 100644
--- a/content/docs/typography/infinite-marquee.mdx
+++ b/content/docs/typography/infinite-marquee.mdx
@@ -32,6 +32,19 @@ export const RemotionRoot = () => (
);
```
+### With Backdrop
+
+Renders transparent — supply the background via `Backdrop`:
+
+```tsx
+import { Backdrop } from "@/components/remocn/backdrop";
+import { InfiniteMarquee } from "@/components/remocn/infinite-marquee";
+
+<Backdrop fill={{ type: "color", value: "#fafafa" }}>
+ <InfiniteMarquee text="ship · build · animate · " pixelsPerFrame={4} stroke />
+</Backdrop>
+```
+
## Props
<PropsTable
@@ -78,12 +91,6 @@ export const RemotionRoot = () => (
default: "\"#171717\"",
description: "Stroke color used when `stroke` is true",
},
- {
- name: "background",
- type: "string",
- default: "\"#fafafa\"",
- description: "Background color of the root container",
- },
{
name: "speed",
type: "number",
diff --git a/content/docs/typography/perspective-marquee.mdx b/content/docs/typography/perspective-marquee.mdx
index a513b3f5..d28309d8 100644
--- a/content/docs/typography/perspective-marquee.mdx
+++ b/content/docs/typography/perspective-marquee.mdx
@@ -36,6 +36,19 @@ export const RemotionRoot = () => (
);
```
+### With Backdrop
+
+Renders transparent — supply the background via `Backdrop`:
+
+```tsx
+import { Backdrop } from "@/components/remocn/backdrop";
+import { PerspectiveMarquee } from "@/components/remocn/perspective-marquee";
+
+<Backdrop fill={{ type: "color", value: "#050505" }}>
+ <PerspectiveMarquee items={["Vercel", "Linear", "Stripe", "Figma"]} rotateY={-28} pixelsPerFrame={2} />
+</Backdrop>
+```
+
## Props
<PropsTable
@@ -94,12 +107,6 @@ export const RemotionRoot = () => (
default: "\"#050505\"",
description: "Color used in the edge vignette gradients",
},
- {
- name: "background",
- type: "string",
- default: "\"#050505\"",
- description: "Root container background color",
- },
{
name: "speed",
type: "number",
diff --git a/content/docs/ui-blocks/animated-bar-chart.mdx b/content/docs/ui-blocks/animated-bar-chart.mdx
index 02dff9ea..97eb40f9 100644
--- a/content/docs/ui-blocks/animated-bar-chart.mdx
+++ b/content/docs/ui-blocks/animated-bar-chart.mdx
@@ -35,6 +35,19 @@ export const RemotionRoot = () => (
);
```
+### With Backdrop
+
+Renders transparent — supply the background via `Backdrop`:
+
+```tsx
+import { Backdrop } from "@/components/remocn/backdrop";
+import { AnimatedBarChart } from "@/components/remocn/animated-bar-chart";
+
+<Backdrop fill={{ type: "color", value: "#0a0a0a" }}>
+ <AnimatedBarChart data={[35, 60, 45, 80, 55, 70, 90, 65]} barColor="#0ea5e9" />
+</Backdrop>
+```
+
## Props
<PropsTable
@@ -68,12 +81,6 @@ export const RemotionRoot = () => (
default: "\"#0ea5e9\"",
description: "Fill color used for every bar",
},
- {
- name: "background",
- type: "string",
- default: "\"#0a0a0a\"",
- description: "Outer background color",
- },
{
name: "gap",
type: "number",
diff --git a/content/docs/ui-blocks/animated-line-chart.mdx b/content/docs/ui-blocks/animated-line-chart.mdx
index 051d2664..94257b96 100644
--- a/content/docs/ui-blocks/animated-line-chart.mdx
+++ b/content/docs/ui-blocks/animated-line-chart.mdx
@@ -35,6 +35,19 @@ export const RemotionRoot = () => (
);
```
+### With Backdrop
+
+Renders transparent — supply the background via `Backdrop`:
+
+```tsx
+import { Backdrop } from "@/components/remocn/backdrop";
+import { AnimatedLineChart } from "@/components/remocn/animated-line-chart";
+
+<Backdrop fill={{ type: "color", value: "#0a0a0a" }}>
+ <AnimatedLineChart data={[12, 19, 8, 15, 22, 18, 28, 25, 32]} strokeColor="#22c55e" />
+</Backdrop>
+```
+
## Props
<PropsTable
@@ -69,12 +82,6 @@ export const RemotionRoot = () => (
default: "4",
description: "Line stroke width in pixels",
},
- {
- name: "background",
- type: "string",
- default: "\"#0a0a0a\"",
- description: "Outer background color",
- },
{
name: "gridColor",
type: "string",
diff --git a/content/docs/ui-blocks/code-accordion.mdx b/content/docs/ui-blocks/code-accordion.mdx
index fde5fac5..49332845 100644
--- a/content/docs/ui-blocks/code-accordion.mdx
+++ b/content/docs/ui-blocks/code-accordion.mdx
@@ -36,6 +36,19 @@ export const RemotionRoot = () => (
);
```
+### With Backdrop
+
+Renders transparent — supply the background via `Backdrop`:
+
+```tsx
+import { Backdrop } from "@/components/remocn/backdrop";
+import { CodeAccordion } from "@/components/remocn/code-accordion";
+
+<Backdrop fill={{ type: "color", value: "#050505" }}>
+ <CodeAccordion lines={fileContents.split("\n")} collapseRange={[3, 14]} collapseAt={30} />
+</Backdrop>
+```
+
## Props
<PropsTable
@@ -75,12 +88,6 @@ export const RemotionRoot = () => (
default: "720",
description: "Window width in pixels",
},
- {
- name: "background",
- type: "string",
- default: "\"#050505\"",
- description: "Page background color",
- },
{
name: "cardColor",
type: "string",
diff --git a/content/docs/ui-blocks/data-flow-pipes.mdx b/content/docs/ui-blocks/data-flow-pipes.mdx
index 1a078dfa..baa38a64 100644
--- a/content/docs/ui-blocks/data-flow-pipes.mdx
+++ b/content/docs/ui-blocks/data-flow-pipes.mdx
@@ -42,6 +42,29 @@ export const RemotionRoot = () => (
);
```
+### With Backdrop
+
+Renders transparent — supply the background via `Backdrop`:
+
+```tsx
+import { Backdrop } from "@/components/remocn/backdrop";
+import { DataFlowPipes } from "@/components/remocn/data-flow-pipes";
+
+<Backdrop fill={{ type: "color", value: "#050505" }}>
+ <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 },
+ ]}
+ />
+</Backdrop>
+```
+
## Props
<PropsTable
@@ -80,12 +103,6 @@ export const RemotionRoot = () => (
default: "36",
description: "Frames a single pulse takes to traverse its edge",
},
- {
- name: "background",
- type: "string",
- default: "\"#050505\"",
- description: "Page background color",
- },
{
name: "nodeColor",
type: "string",
diff --git a/content/docs/ui-blocks/drag-and-drop-flow.mdx b/content/docs/ui-blocks/drag-and-drop-flow.mdx
index f39639cc..a63bdcb8 100644
--- a/content/docs/ui-blocks/drag-and-drop-flow.mdx
+++ b/content/docs/ui-blocks/drag-and-drop-flow.mdx
@@ -36,6 +36,19 @@ export const RemotionRoot = () => (
);
```
+### With Backdrop
+
+Renders transparent — supply the background via `Backdrop`:
+
+```tsx
+import { Backdrop } from "@/components/remocn/backdrop";
+import { DragAndDropFlow } from "@/components/remocn/drag-and-drop-flow";
+
+<Backdrop fill={{ type: "color", value: "#fafafa" }}>
+ <DragAndDropFlow accent="#0ea5e9" dropzoneLabel="Drop file to upload" fileName="design.fig" />
+</Backdrop>
+```
+
## Props
<PropsTable
@@ -58,12 +71,6 @@ export const RemotionRoot = () => (
default: "\"design.fig\"",
description: "File name shown above the progress bar",
},
- {
- name: "background",
- type: "string",
- default: "\"#fafafa\"",
- description: "Frame background color",
- },
{
name: "className",
type: "string",
diff --git a/content/docs/ui-blocks/glass-code-block.mdx b/content/docs/ui-blocks/glass-code-block.mdx
index a4c138cb..ce2ce7ed 100644
--- a/content/docs/ui-blocks/glass-code-block.mdx
+++ b/content/docs/ui-blocks/glass-code-block.mdx
@@ -35,6 +35,19 @@ export const RemotionRoot = () => (
);
```
+### With Backdrop
+
+Renders transparent — supply the background via `Backdrop`:
+
+```tsx
+import { Backdrop } from "@/components/remocn/backdrop";
+import { GlassCodeBlock } from "@/components/remocn/glass-code-block";
+
+<Backdrop fill={{ type: "color", value: "#0a0a0a" }}>
+ <GlassCodeBlock title="hero.tsx" code={`export function Hero() {\n return <h1>Hello</h1>;\n}`} />
+</Backdrop>
+```
+
## Props
<PropsTable
@@ -68,12 +81,6 @@ export const RemotionRoot = () => (
default: "16",
description: "Code font size in pixels",
},
- {
- name: "background",
- type: "string",
- default: "\"#0a0a0a\"",
- description: "Background color around the window",
- },
{
name: "glassColor",
type: "string",
diff --git a/content/docs/ui-blocks/progress-steps.mdx b/content/docs/ui-blocks/progress-steps.mdx
index ec5534de..46bfdf91 100644
--- a/content/docs/ui-blocks/progress-steps.mdx
+++ b/content/docs/ui-blocks/progress-steps.mdx
@@ -36,6 +36,23 @@ export const RemotionRoot = () => (
);
```
+### With Backdrop
+
+Renders transparent — supply the background via `Backdrop`:
+
+```tsx
+import { Backdrop } from "@/components/remocn/backdrop";
+import { ProgressSteps } from "@/components/remocn/progress-steps";
+
+<Backdrop fill={{ type: "color", value: "#0a0a0a" }}>
+ <ProgressSteps
+ steps={[{ label: "Connect" }, { label: "Process" }, { label: "Deploy" }]}
+ orientation="horizontal"
+ stepDuration={30}
+ />
+</Backdrop>
+```
+
## Props
<PropsTable
@@ -64,12 +81,6 @@ export const RemotionRoot = () => (
default: "\"#27272a\"",
description: "Fill color used before a step is activated",
},
- {
- name: "background",
- type: "string",
- default: "\"#0a0a0a\"",
- description: "Frame background color",
- },
{
name: "textColor",
type: "string",
diff --git a/content/docs/ui-blocks/tool-menu-slide-in.mdx b/content/docs/ui-blocks/tool-menu-slide-in.mdx
index fbd19c58..2b993a6a 100644
--- a/content/docs/ui-blocks/tool-menu-slide-in.mdx
+++ b/content/docs/ui-blocks/tool-menu-slide-in.mdx
@@ -37,6 +37,19 @@ export const RemotionRoot = () => (
);
```
+### With Backdrop
+
+Renders transparent — supply the background via `Backdrop`:
+
+```tsx
+import { Backdrop } from "@/components/remocn/backdrop";
+import { ToolMenuSlideIn } from "@/components/remocn/tool-menu-slide-in";
+
+<Backdrop fill={{ type: "color", value: "#070708" }}>
+ <ToolMenuSlideIn panelStartFrame={18} iconStagger={4} iconCount={5} accent="#a78bfa" />
+</Backdrop>
+```
+
## Props
<PropsTable
@@ -71,12 +84,6 @@ export const RemotionRoot = () => (
default: "\"rgba(18, 18, 22, 0.72)\"",
description: "Frosted-glass fill of the menu pill",
},
- {
- name: "background",
- type: "string",
- default: "\"#070708\"",
- description: "Background color of the editor canvas",
- },
{
name: "iconBg",
type: "string",