Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: improve animations
dev_wandry0ad569f716d6
diff --git a/app/docs/[[...slug]]/page.tsx b/app/docs/[[...slug]]/page.tsxindex 03a3983f..7925adf2 100644--- a/app/docs/[[...slug]]/page.tsx+++ b/app/docs/[[...slug]]/page.tsx@@ -35,7 +35,7 @@ export default async function Page(props: {<DocsTitle className="text-5xl font-bold tracking-tighter md:text-6xl lg:text-7xl">{data.title}</DocsTitle>- <DocsDescription className="mt-4 max-w-3xl text-balance text-lg text-muted-foreground md:text-xl">+ <DocsDescription className="mt-0 max-w-3xl text-balance text-lg text-muted-foreground md:text-xl">{data.description}</DocsDescription><DocsBody>diff --git a/app/docs/layout.tsx b/app/docs/layout.tsxindex 1c10d9e8..fa6bc64a 100644--- a/app/docs/layout.tsx+++ b/app/docs/layout.tsx@@ -5,7 +5,11 @@ import { source } from "@/source";export default function Layout({ children }: { children: ReactNode }) {return (- <DocsLayout tree={source.pageTree} {...baseOptions()}>+ <DocsLayout+ tree={source.pageTree}+ {...baseOptions()}+ searchToggle={{ enabled: false }}+ >{children}</DocsLayout>);diff --git a/components/docs/component-preview.tsx b/components/docs/component-preview.tsxindex 48d12aad..03669bc1 100644--- a/components/docs/component-preview.tsx+++ b/components/docs/component-preview.tsx@@ -19,11 +19,57 @@ import {getDefaults,} from "@/lib/customizer-config";import { cn } from "@/lib/utils";+import { AnimatedBarChart } from "@/registry/remocn/animated-bar-chart";+import { AnimatedLineChart } from "@/registry/remocn/animated-line-chart";import { BlurReveal } from "@/registry/remocn/blur-reveal";+import { BoundingBoxSelector } from "@/registry/remocn/bounding-box-selector";+import { ChatToPreviewLayout } from "@/registry/remocn/chat-to-preview-layout";+import { CodeDiffWipe } from "@/registry/remocn/code-diff-wipe";+import { DeviceMockupZoom } from "@/registry/remocn/device-mockup-zoom";+import { DirectionalWipe } from "@/registry/remocn/directional-wipe";+import { DragAndDropFlow } from "@/registry/remocn/drag-and-drop-flow";+import { DynamicGrid } from "@/registry/remocn/dynamic-grid";+import { InlineHighlight } from "@/registry/remocn/inline-highlight";+import { MeshGradientBg } from "@/registry/remocn/mesh-gradient-bg";+import { ProgressSteps } from "@/registry/remocn/progress-steps";+import { PulsingIndicator } from "@/registry/remocn/pulsing-indicator";+import { SimulatedCursor } from "@/registry/remocn/simulated-cursor";+import { SpringPopIn } from "@/registry/remocn/spring-pop-in";+import { StaggeredBentoGrid } from "@/registry/remocn/staggered-bento-grid";+import { StrikethroughReplace } from "@/registry/remocn/strikethrough-replace";+import { SuccessConfetti } from "@/registry/remocn/success-confetti";+import { TerminalSimulator } from "@/registry/remocn/terminal-simulator";+import { TextFadeReplace } from "@/registry/remocn/text-fade-replace";+import { ToastNotification } from "@/registry/remocn/toast-notification";+import { Typewriter } from "@/registry/remocn/typewriter";+import { ZoomThroughTransition } from "@/registry/remocn/zoom-through-transition";import { ComponentCustomizer } from "./component-customizer";const registry: Record<string, React.ComponentType<any>> = {"blur-reveal": BlurReveal,+ typewriter: Typewriter,+ "inline-highlight": InlineHighlight,+ "text-fade-replace": TextFadeReplace,+ "strikethrough-replace": StrikethroughReplace,+ "mesh-gradient-bg": MeshGradientBg,+ "dynamic-grid": DynamicGrid,+ "spring-pop-in": SpringPopIn,+ "simulated-cursor": SimulatedCursor,+ "pulsing-indicator": PulsingIndicator,+ "directional-wipe": DirectionalWipe,+ "device-mockup-zoom": DeviceMockupZoom,+ "zoom-through-transition": ZoomThroughTransition,+ "staggered-bento-grid": StaggeredBentoGrid,+ "chat-to-preview-layout": ChatToPreviewLayout,+ "bounding-box-selector": BoundingBoxSelector,+ "animated-line-chart": AnimatedLineChart,+ "animated-bar-chart": AnimatedBarChart,+ "terminal-simulator": TerminalSimulator,+ "code-diff-wipe": CodeDiffWipe,+ "toast-notification": ToastNotification,+ "drag-and-drop-flow": DragAndDropFlow,+ "progress-steps": ProgressSteps,+ "success-confetti": SuccessConfetti,};export function ComponentPreview({ name }: { name: string }) {diff --git a/content/docs/backgrounds/dynamic-grid.mdx b/content/docs/backgrounds/dynamic-grid.mdxnew file mode 100644index 00000000..17cba26c--- /dev/null+++ b/content/docs/backgrounds/dynamic-grid.mdx@@ -0,0 +1,74 @@+---+title: Dynamic Grid+description: Subtle moving grid background for tech and dev scenes.+---++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++<InstallBlock name="dynamic-grid" />++## Usage++```tsx+import { DynamicGrid } from "@/components/remocn/dynamic-grid";++<DynamicGrid+ cellSize={40}+ lineColor="#27272a"+ background="#0a0a0a"+ speed={0.5}+ direction="diagonal"+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "cellSize",+ type: "number",+ default: "40",+ description: "Grid cell size in pixels.",+ },+ {+ name: "lineColor",+ type: "string",+ default: "\"#27272a\"",+ description: "Grid line color.",+ },+ {+ name: "background",+ type: "string",+ default: "\"#0a0a0a\"",+ description: "Base background color behind the grid.",+ },+ {+ name: "speed",+ type: "number",+ default: "0.5",+ description: "Pixels moved per frame. Motion wraps at cellSize to loop seamlessly.",+ },+ {+ name: "direction",+ type: "\"diagonal\" | \"horizontal\" | \"vertical\"",+ default: "\"diagonal\"",+ description: "Direction the grid drifts.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the outer container.",+ },+ ]}+/>++## Notes++<Note title="Seamless loop">+ Offset uses modulo `cellSize`, so the grid loops perfectly — ideal as a base layer under intros and outros.+</Note>diff --git a/content/docs/backgrounds/index.mdx b/content/docs/backgrounds/index.mdxindex 6aed2671..ecd37b69 100644--- a/content/docs/backgrounds/index.mdx+++ b/content/docs/backgrounds/index.mdx@@ -9,13 +9,15 @@ Backdrops, gradients, and noise patterns for full-frame compositions. All determitems={[{name: "MeshGradientBg",- description: "Amorphous color blobs animated with @remotion/noise for organic, deterministic motion.",- status: "soon",+ description: "Living gradient with amorphous color blobs slowly drifting across the frame.",+ status: "stable",+ href: "/docs/backgrounds/mesh-gradient-bg",},{name: "DynamicGrid",- description: "Subtle moving grid (or dot pattern) backdrop. Animated via transform translate for cheap rendering.",- status: "soon",+ description: "Subtle moving grid background with configurable cell size and direction.",+ status: "stable",+ href: "/docs/backgrounds/dynamic-grid",},]}/>diff --git a/content/docs/backgrounds/mesh-gradient-bg.mdx b/content/docs/backgrounds/mesh-gradient-bg.mdxnew file mode 100644index 00000000..8ad7d397--- /dev/null+++ b/content/docs/backgrounds/mesh-gradient-bg.mdx@@ -0,0 +1,70 @@+---+title: Mesh Gradient Background+description: Living gradient with amorphous color blobs slowly drifting across the frame.+---++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++<InstallBlock name="mesh-gradient-bg" />++## Usage++```tsx+import { MeshGradientBg } from "@/components/remocn/mesh-gradient-bg";++<MeshGradientBg+ colors={["#ff0080", "#7928ca", "#00d4ff", "#ffb800"]}+ speed={1}+ background="#0a0a0a"+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "colors",+ type: "string[]",+ default: "[\"#ff0080\", \"#7928ca\", \"#00d4ff\", \"#ffb800\"]",+ description: "Colors used for the radial blobs. Any number of CSS colors.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Drift speed multiplier. Higher = faster motion.",+ },+ {+ name: "background",+ type: "string",+ default: "\"#0a0a0a\"",+ description: "Base canvas color. Blend mode is auto-picked (screen on dark, multiply on light).",+ },+ {+ name: "blur",+ type: "number",+ default: "80",+ description: "CSS blur radius (in pixels) applied to each blob.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the outer container.",+ },+ ]}+/>++## Notes++<Note title="Deterministic motion">+ Motion uses `Math.sin(frame)` and `Math.cos(frame)`, so every render produces the same output for the same frame — safe for server-side rendering.+</Note>++<Warning title="Blur performance">+ Large blur radii on big elements are expensive. If you see slow renders, reduce `blur` or the blob size before reaching for shaders.+</Warning>diff --git a/content/docs/compositions/bounding-box-selector.mdx b/content/docs/compositions/bounding-box-selector.mdxnew file mode 100644index 00000000..a0b43b9a--- /dev/null+++ b/content/docs/compositions/bounding-box-selector.mdx@@ -0,0 +1,75 @@+---+title: Bounding Box Selector+description: Figma-style selection rectangle appears around any element.+---++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++<InstallBlock name="bounding-box-selector" />++## Usage++```tsx+import { BoundingBoxSelector } from "@/components/remocn/bounding-box-selector";++<BoundingBoxSelector borderColor="#0ea5e9" appearAt={15}>+ <YourElement />+</BoundingBoxSelector>+```++## Props++<PropsTable+ rows={[+ {+ name: "children",+ type: "ReactNode",+ description: "The element to wrap. Falls back to a placeholder rectangle.",+ },+ {+ name: "borderColor",+ type: "string",+ default: '"#0ea5e9"',+ description: "Color of the selection border.",+ },+ {+ name: "handleColor",+ type: "string",+ default: '"#0ea5e9"',+ description: "Stroke color of the corner/edge handles.",+ },+ {+ name: "borderWidth",+ type: "number",+ default: "2",+ description: "Border width in pixels.",+ },+ {+ name: "appearAt",+ type: "number",+ default: "15",+ description: "Frame at which the selection box appears.",+ },+ {+ name: "background",+ type: "string",+ default: '"#fafafa"',+ description: "Outer background color.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="Sizing">+ This component reads its size from the wrapped child via `display: inline-block`. If you need pixel-perfect placement around dynamic content, pass children with explicit `width`/`height` instead of relying on intrinsic sizing.+</Note>diff --git a/content/docs/compositions/chat-to-preview-layout.mdx b/content/docs/compositions/chat-to-preview-layout.mdxnew file mode 100644index 00000000..8616543f--- /dev/null+++ b/content/docs/compositions/chat-to-preview-layout.mdx@@ -0,0 +1,71 @@+---+title: Chat to Preview Layout+description: Two-column layout where the chat shrinks and the preview expands.+---++A composition that animates the `flex-basis` of two side-by-side panels, simulating a chat interface that hands off real estate to a live preview. Both panels use `overflow: hidden` so their content doesn't break the layout while the widths animate.++<ComponentPreview name="chat-to-preview-layout" />++## Installation++<InstallBlock name="chat-to-preview-layout" />++## Usage++```tsx+import { ChatToPreviewLayout } from "@/components/remocn/chat-to-preview-layout";++<ChatToPreviewLayout+ chat={<MyChat />}+ preview={<MyPreview />}+ startChatRatio={0.5}+ endChatRatio={0.25}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "chat",+ type: "ReactNode",+ description: "The chat panel. Falls back to a sample chat mockup.",+ },+ {+ name: "preview",+ type: "ReactNode",+ description: "The preview panel. Falls back to a sample landing page mockup.",+ },+ {+ name: "startChatRatio",+ type: "number",+ default: "0.5",+ description: "Initial fraction of width given to the chat panel (0..1).",+ },+ {+ name: "endChatRatio",+ type: "number",+ default: "0.25",+ description: "Final fraction of width given to the chat panel (0..1).",+ },+ {+ name: "background",+ type: "string",+ default: '"#0a0a0a"',+ description: "Outer background color.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="Why flex-basis is OK here">+ Most Remotion animations should stick to `transform`/`opacity`. This component is an exception because the resizing of two panels *is* the effect — there's no way to fake it with `transform`. Keep both child panels' contents inside an `overflow: hidden` wrapper to avoid reflow artifacts.+</Note>diff --git a/content/docs/compositions/index.mdx b/content/docs/compositions/index.mdxindex 99866dc9..9685d4e3 100644--- a/content/docs/compositions/index.mdx+++ b/content/docs/compositions/index.mdx@@ -9,18 +9,21 @@ Higher-level layouts and scene templates that combine multiple primitives into aitems={[{name: "StaggeredBentoGrid",- description: "Cards animate in one after another using <Series> / <Sequence from={index * 15}>.",- status: "soon",+ description: "Cards pop into a bento grid one after another with a spring.",+ status: "stable",+ href: "/docs/compositions/staggered-bento-grid",},{name: "ChatToPreviewLayout",- description: "Split-screen where the chat shrinks while a preview pane expands.",- status: "soon",+ description: "Two-column layout where chat shrinks and preview expands.",+ status: "stable",+ href: "/docs/compositions/chat-to-preview-layout",},{name: "BoundingBoxSelector",- description: "Figma-style selection rectangle around children.",- status: "soon",+ description: "Figma-style selection rectangle appears around any element.",+ status: "stable",+ href: "/docs/compositions/bounding-box-selector",},]}/>diff --git a/content/docs/compositions/staggered-bento-grid.mdx b/content/docs/compositions/staggered-bento-grid.mdxnew file mode 100644index 00000000..7ece5bb7--- /dev/null+++ b/content/docs/compositions/staggered-bento-grid.mdx@@ -0,0 +1,81 @@+---+title: Staggered Bento Grid+description: Cards pop into a bento grid one after another with a spring.+---++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++<InstallBlock name="staggered-bento-grid" />++## Usage++```tsx+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" },+ ]}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "items",+ type: "Array<{ title: string; body?: string; span?: 1 | 2 }>",+ default: "6 sample cards",+ description: "Cards to render in the grid.",+ },+ {+ name: "staggerDelay",+ type: "number",+ default: "8",+ description: "Frames between each card's entrance.",+ },+ {+ name: "columns",+ type: "number",+ default: "3",+ description: "Number of grid columns.",+ },+ {+ name: "background",+ type: "string",+ default: '"#0a0a0a"',+ description: "Outer background color.",+ },+ {+ name: "cardColor",+ type: "string",+ default: '"#1a1a1a"',+ description: "Card background color.",+ },+ {+ name: "textColor",+ type: "string",+ default: '"white"',+ description: "Card text color.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="Sequence per card">+ Wrapping each card in `<Sequence from={index * staggerDelay}>` resets `useCurrentFrame()` to 0 inside that card, so the spring math stays clean and per-item.+</Note>diff --git a/content/docs/data-viz/animated-bar-chart.mdx b/content/docs/data-viz/animated-bar-chart.mdxnew file mode 100644index 00000000..143dd8d9--- /dev/null+++ b/content/docs/data-viz/animated-bar-chart.mdx@@ -0,0 +1,88 @@+---+title: Animated Bar Chart+description: Bars spring up from the baseline with a staggered cascade.+---++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++<InstallBlock name="animated-bar-chart" />++## Usage++```tsx+import { AnimatedBarChart } from "@/components/remocn/animated-bar-chart";++<AnimatedBarChart+ data={[35, 60, 45, 80, 55, 70, 90, 65]}+ barColor="#0ea5e9"+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "data",+ type: "number[]",+ default: "[35, 60, 45, 80, 55, 70, 90, 65]",+ description: "Bar values. Auto-scaled to the available height.",+ },+ {+ name: "labels",+ type: "string[]",+ description: "Optional labels rendered under each bar.",+ },+ {+ name: "width",+ type: "number",+ default: "1000",+ description: "SVG viewBox width.",+ },+ {+ name: "height",+ type: "number",+ default: "500",+ description: "SVG viewBox height.",+ },+ {+ name: "barColor",+ type: "string",+ default: "\"#0ea5e9\"",+ description: "Fill color used for every bar.",+ },+ {+ name: "background",+ type: "string",+ default: "\"#0a0a0a\"",+ description: "Outer background color.",+ },+ {+ name: "gap",+ type: "number",+ default: "16",+ description: "Pixel gap between bars.",+ },+ {+ name: "staggerFrames",+ type: "number",+ default: "6",+ description: "Frame delay applied to each successive bar.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the outer container.",+ },+ ]}+/>++## Notes++<Note title="Transform origin">+ Each bar uses `transformOrigin: bottom` so the spring animation grows from the baseline rather than the center. We rely on `transformBox: fill-box` to scope the origin to the rect's own box.+</Note>diff --git a/content/docs/data-viz/animated-line-chart.mdx b/content/docs/data-viz/animated-line-chart.mdxnew file mode 100644index 00000000..5be36196--- /dev/null+++ b/content/docs/data-viz/animated-line-chart.mdx@@ -0,0 +1,93 @@+---+title: Animated Line Chart+description: A line chart whose path draws on from left to right.+---++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++<InstallBlock name="animated-line-chart" />++## Usage++```tsx+import { AnimatedLineChart } from "@/components/remocn/animated-line-chart";++<AnimatedLineChart+ data={[12, 19, 8, 15, 22, 18, 28, 25, 32]}+ strokeColor="#22c55e"+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "data",+ type: "number[]",+ default: "[12, 19, 8, 15, 22, 18, 28, 25, 32]",+ description: "Y-values of the chart. Auto-scaled to the available height.",+ },+ {+ name: "width",+ type: "number",+ default: "1000",+ description: "SVG viewBox width.",+ },+ {+ name: "height",+ type: "number",+ default: "500",+ description: "SVG viewBox height.",+ },+ {+ name: "strokeColor",+ type: "string",+ default: "\"#22c55e\"",+ description: "Color of the line stroke.",+ },+ {+ name: "strokeWidth",+ type: "number",+ default: "4",+ description: "Line stroke width in pixels.",+ },+ {+ name: "background",+ type: "string",+ default: "\"#0a0a0a\"",+ description: "Outer background color.",+ },+ {+ name: "gridColor",+ type: "string",+ default: "\"#27272a\"",+ description: "Grid and axis line color.",+ },+ {+ name: "showDot",+ type: "boolean",+ default: "true",+ description: "Render a dot at the leading edge of the line as it draws.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the outer container.",+ },+ ]}+/>++## Notes++<Note title="No getTotalLength()">+ The path length is computed analytically by summing distances between consecutive points. This avoids `useEffect` and DOM measurement, so the first frame renders correctly during server-side bundling.+</Note>++<Warning title="Data range">+ The chart auto-scales to the min/max of `data`. If all values are equal, the line is drawn at the top of the chart area.+</Warning>diff --git a/content/docs/data-viz/index.mdx b/content/docs/data-viz/index.mdxindex 8824721b..bd199e3c 100644--- a/content/docs/data-viz/index.mdx+++ b/content/docs/data-viz/index.mdx@@ -9,18 +9,15 @@ Charts that draw themselves on, with proper Remotion-friendly animation primitivitems={[{name: "AnimatedLineChart",- description: "SVG <path> drawn left-to-right via stroke-dashoffset interpolation.",- status: "soon",+ description: "Line chart whose SVG path draws on from left to right with a leading dot.",+ status: "stable",+ href: "/docs/data-viz/animated-line-chart",},{name: "AnimatedBarChart",- description: "Bars springing up from transform-origin: bottom with overshoot.",- status: "soon",- },- {- name: "CountUpNumber",- description: "Tabular-num counter that interpolates from 0 to target value.",- status: "soon",+ description: "Bars spring up from the baseline in a staggered cascade.",+ status: "stable",+ href: "/docs/data-viz/animated-bar-chart",},]}/>diff --git a/content/docs/dev-blocks/code-diff-wipe.mdx b/content/docs/dev-blocks/code-diff-wipe.mdxnew file mode 100644index 00000000..6dda5529--- /dev/null+++ b/content/docs/dev-blocks/code-diff-wipe.mdx@@ -0,0 +1,91 @@+---+title: Code Diff Wipe+description: Reveal an "after" code snippet by wiping a "before" snippet away.+---++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++<InstallBlock name="code-diff-wipe" />++## Usage++```tsx+import { CodeDiffWipe } from "@/components/remocn/code-diff-wipe";++<CodeDiffWipe+ before={"function get() { /* old */ }"}+ after={"const get = async () => { /* new */ }"}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "before",+ type: "string",+ description: "Multi-line code shown on top, wiped away by the animation.",+ },+ {+ name: "after",+ type: "string",+ description: "Multi-line code revealed underneath as the wipe progresses.",+ },+ {+ name: "language",+ type: "string",+ default: "\"tsx\"",+ description: "Language label shown in the pane header.",+ },+ {+ name: "background",+ type: "string",+ default: "\"#0a0a0a\"",+ description: "Editor background color.",+ },+ {+ name: "accent",+ type: "string",+ default: "\"#0ea5e9\"",+ description: "Accent color for the wipe line, handle, and \"after\" label.",+ },+ {+ name: "transitionStart",+ type: "number",+ default: "20",+ description: "Frame at which the wipe begins.",+ },+ {+ name: "transitionDuration",+ type: "number",+ default: "60",+ description: "Number of frames the wipe takes from 0% to 100%.",+ },+ {+ name: "showHandle",+ type: "boolean",+ default: "true",+ description: "Render a circular handle on the wipe line.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the outer container.",+ },+ ]}+/>++## Notes++<Note title="GPU friendly">+ `clip-path` is composited on the GPU in modern browsers, so the wipe stays cheap even with long code blocks.+</Note>++<Warning title="Long lines">+ The pane uses `whiteSpace: pre` and `overflow: hidden`, so very long lines get clipped rather than wrapped. Pre-format your snippets if you need them to fit.+</Warning>diff --git a/content/docs/dev-blocks/index.mdx b/content/docs/dev-blocks/index.mdxindex 8ac6c2a7..4cf630e3 100644--- a/content/docs/dev-blocks/index.mdx+++ b/content/docs/dev-blocks/index.mdx@@ -9,13 +9,15 @@ Terminal output, code diffs, and other dev-flavored blocks for developer-targeteitems={[{name: "TerminalSimulator",- description: "Console window streaming commands and logs, scrolling viewport up as new lines arrive.",- status: "soon",+ description: "Terminal window that types out commands and rolls old lines off the top.",+ status: "stable",+ href: "/docs/dev-blocks/terminal-simulator",},{name: "CodeDiffWipe",- description: "Before / after code reveal with a clip-path slider.",- status: "soon",+ description: "Before/after code reveal via clip-path wipe with a handle marker.",+ status: "stable",+ href: "/docs/dev-blocks/code-diff-wipe",},]}/>diff --git a/content/docs/dev-blocks/terminal-simulator.mdx b/content/docs/dev-blocks/terminal-simulator.mdxnew file mode 100644index 00000000..a2813759--- /dev/null+++ b/content/docs/dev-blocks/terminal-simulator.mdx@@ -0,0 +1,88 @@+---+title: Terminal Simulator+description: A console window that types out commands and rolls older lines off the top.+---++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++<InstallBlock name="terminal-simulator" />++## Usage++```tsx+import { TerminalSimulator } from "@/components/remocn/terminal-simulator";++<TerminalSimulator+ lines={[+ { text: "npm run build", type: "command" },+ { text: "Compiled successfully", type: "success", delay: 14 },+ ]}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "lines",+ type: "Array<{ text: string; type: 'command' | 'log' | 'success' | 'error'; delay?: number }>",+ description: "The lines to render. `delay` is the frame gap before the line starts typing.",+ },+ {+ name: "prompt",+ type: "string",+ default: "\"$\"",+ description: "Prompt prefix shown before `command` lines.",+ },+ {+ name: "title",+ type: "string",+ default: "\"~/projects/remocn\"",+ description: "Title shown in the window chrome bar.",+ },+ {+ name: "background",+ type: "string",+ default: "\"#0a0a0a\"",+ description: "Terminal background color.",+ },+ {+ name: "chromeColor",+ type: "string",+ default: "\"#1a1a1a\"",+ description: "Window chrome bar color.",+ },+ {+ name: "fontSize",+ type: "number",+ default: "18",+ description: "Monospace font size in pixels.",+ },+ {+ name: "charsPerFrame",+ type: "number",+ default: "1",+ description: "Typing speed: how many characters appear per frame.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the outer container.",+ },+ ]}+/>++## Notes++<Note title="Deterministic cursor">+ The blinking cursor uses `Math.floor(frame / 15) % 2 === 0` rather than `setInterval`, so the animation is fully deterministic and renders the same on every machine.+</Note>++<Note title="Auto scroll">+ Once more lines have started than fit in the window, the entire content layer translates upward in `lineHeight` increments, simulating scroll without overflow.+</Note>diff --git a/content/docs/index.mdx b/content/docs/index.mdxindex 0de3794a..3ef99db2 100644--- a/content/docs/index.mdx+++ b/content/docs/index.mdx@@ -13,8 +13,6 @@ description: remocn is a shadcn-style registry of production-ready Remotion comp## Install a component-```bash-npx shadcn@latest add remocn/blur-reveal-```+<InstallBlock name="inline-highlight" />The file is copied into your project. No runtime dependency on remocn — just Remotion and React.diff --git a/content/docs/micro-interactions/drag-and-drop-flow.mdx b/content/docs/micro-interactions/drag-and-drop-flow.mdxnew file mode 100644index 00000000..f48fa671--- /dev/null+++ b/content/docs/micro-interactions/drag-and-drop-flow.mdx@@ -0,0 +1,70 @@+---+title: Drag And Drop Flow+description: Simulates dragging a file into a drop zone, then a progress bar fills.+---++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++<InstallBlock name="drag-and-drop-flow" />++## Usage++```tsx+import { DragAndDropFlow } from "@/components/remocn/drag-and-drop-flow";++<DragAndDropFlow+ accent="#0ea5e9"+ dropzoneLabel="Drop file to upload"+ fileName="design.fig"+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "accent",+ type: "string",+ default: "\"#0ea5e9\"",+ description: "Accent color for the file icon, dropzone highlight, and progress bar.",+ },+ {+ name: "dropzoneLabel",+ type: "string",+ default: "\"Drop file to upload\"",+ description: "Label rendered inside the dropzone.",+ },+ {+ name: "fileName",+ type: "string",+ 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",+ description: "Optional className passed to the outer container.",+ },+ ]}+/>++## Notes++<Note title="Three timed phases">+ The animation splits `durationInFrames` into a drag phase (~45%), a highlight handoff (~10%), and an upload phase (the remainder). All phases derive from `durationInFrames`, so resizing the composition stays in sync.+</Note>++<Warning title="Width is intentional here">+ The progress bar grows by animating `width` instead of `transform: scaleX` so the rounded ends stay crisp at any progress value.+</Warning>diff --git a/content/docs/micro-interactions/index.mdx b/content/docs/micro-interactions/index.mdxindex c3c356b3..344bb3f7 100644--- a/content/docs/micro-interactions/index.mdx+++ b/content/docs/micro-interactions/index.mdx@@ -9,13 +9,15 @@ Tiny moments of delight — perfect for stitching together "look how easy this iitems={[{name: "ToastNotification",- description: "Corner toast that springs in, holds, and fades out.",- status: "soon",+ description: "System-style toast pops in, holds, then slides out.",+ status: "stable",+ href: "/docs/micro-interactions/toast-notification",},{name: "DragAndDropFlow",- description: "Simulated cursor dragging a file into an upload zone with progress bar.",- status: "soon",+ description: "Simulated file drag into a dropzone followed by upload progress.",+ status: "stable",+ href: "/docs/micro-interactions/drag-and-drop-flow",},]}/>diff --git a/content/docs/micro-interactions/toast-notification.mdx b/content/docs/micro-interactions/toast-notification.mdxnew file mode 100644index 00000000..1c1e2b92--- /dev/null+++ b/content/docs/micro-interactions/toast-notification.mdx@@ -0,0 +1,88 @@+---+title: Toast Notification+description: System-style toast that pops in, holds, then slides out.+---++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++<InstallBlock name="toast-notification" />++## Usage++```tsx+import { ToastNotification } from "@/components/remocn/toast-notification";++<ToastNotification+ title="Deployment successful"+ message="Your changes are live at remocn.dev"+ variant="success"+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "title",+ type: "string",+ default: "\"Deployment successful\"",+ description: "Bold headline shown at the top of the toast.",+ },+ {+ name: "message",+ type: "string",+ default: "\"Your changes are live at remocn.dev\"",+ description: "Secondary message shown below the title.",+ },+ {+ name: "variant",+ type: "\"success\" | \"error\" | \"info\" | \"warning\"",+ default: "\"success\"",+ description: "Controls the inline icon and accent color.",+ },+ {+ name: "background",+ type: "string",+ default: "\"#fafafa\"",+ description: "Frame background color.",+ },+ {+ name: "cardColor",+ type: "string",+ default: "\"white\"",+ description: "Toast card background color.",+ },+ {+ name: "textColor",+ type: "string",+ default: "\"#171717\"",+ description: "Color of the toast title.",+ },+ {+ name: "mutedColor",+ type: "string",+ default: "\"#71717a\"",+ description: "Color of the toast message.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the toast card.",+ },+ ]}+/>++## Notes++<Note title="Phase timing is derived from durationInFrames">+ The toast reserves 15 frames for enter and 15 frames for exit, with the rest of the composition serving as the hold phase. Increase `durationInFrames` if you want the toast to linger longer.+</Note>++<Warning title="Anchored absolutely">+ The toast is positioned with `position: absolute` at `right: 32, bottom: 32`. Make sure the parent composition fills the frame so it lands where you expect.+</Warning>diff --git a/content/docs/primitives/blur-reveal.mdx b/content/docs/primitives/blur-reveal.mdxindex b32ed22c..0b568d75 100644--- a/content/docs/primitives/blur-reveal.mdx+++ b/content/docs/primitives/blur-reveal.mdx@@ -11,8 +11,6 @@ A typography primitive that animates `opacity` from 0 to 1 and `filter: blur()`<InstallBlock name="blur-reveal" />-<Dependencies items={["remotion@>=4.0", "@remotion/google-fonts (recommended)"]} />-## Usage```tsxdiff --git a/content/docs/primitives/index.mdx b/content/docs/primitives/index.mdxindex 858f9bc5..51e7c609 100644--- a/content/docs/primitives/index.mdx+++ b/content/docs/primitives/index.mdx@@ -16,17 +16,26 @@ Primitives are small, focused components — one animation, one effect, one purp{name: "Typewriter",description: "Character-by-character text reveal with a deterministic blinking cursor.",- status: "soon",+ status: "stable",+ href: "/docs/primitives/typewriter",},{name: "InlineHighlight",- description: "Animated color sweep across a span inside a sentence.",- status: "soon",+ description: "Animates one word inside a sentence from a base color to a brand color.",+ status: "stable",+ href: "/docs/primitives/inline-highlight",},{name: "TextFadeReplace",- description: "Swap one line of text for another in place with cross-fade.",- status: "soon",+ description: "Cross-fades between two strings on the same line without layout shift.",+ status: "stable",+ href: "/docs/primitives/text-fade-replace",+ },+ {+ name: "StrikethroughReplace",+ description: "Draws a strike line across old text then reveals new text in its place.",+ status: "stable",+ href: "/docs/primitives/strikethrough-replace",},]}/>diff --git a/content/docs/primitives/inline-highlight.mdx b/content/docs/primitives/inline-highlight.mdxnew file mode 100644index 00000000..e9a5cc08--- /dev/null+++ b/content/docs/primitives/inline-highlight.mdx@@ -0,0 +1,85 @@+---+title: Inline Highlight+description: Animate one word inside a sentence from a base color to a brand color.+---++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++<InstallBlock name="inline-highlight" />++## Usage++```tsx+import { InlineHighlight } from "@/components/remocn/inline-highlight";++<InlineHighlight+ before="Ship faster with "+ highlight="remocn"+ highlightColor="#ff5e3a"+ fontSize={72}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "before",+ type: "string",+ required: true,+ description: "Text rendered before the highlighted word.",+ },+ {+ name: "highlight",+ type: "string",+ required: true,+ description: "The word that animates color.",+ },+ {+ name: "after",+ type: "string",+ default: "\"\"",+ description: "Text rendered after the highlighted word.",+ },+ {+ name: "baseColor",+ type: "string",+ default: "\"#171717\"",+ description: "Starting color of the highlighted word and color of the surrounding text.",+ },+ {+ name: "highlightColor",+ type: "string",+ default: "\"#ff5e3a\"",+ description: "Final color of the highlighted word.",+ },+ {+ name: "fontSize",+ type: "number",+ default: "48",+ description: "Font size in pixels.",+ },+ {+ name: "fontWeight",+ type: "number",+ default: "600",+ description: "CSS font-weight.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the underlying span.",+ },+ ]}+/>++## Notes++<Note title="Smooth color blending">+ `interpolateColors` blends in RGB space, so transitions between contrasting hues stay smooth without going through muddy intermediate colors.+</Note>diff --git a/content/docs/primitives/meta.json b/content/docs/primitives/meta.jsonindex e252e50a..c0eb02bb 100644--- a/content/docs/primitives/meta.json+++ b/content/docs/primitives/meta.json@@ -1,4 +1,11 @@{"title": "Primitives",- "pages": ["index", "blur-reveal"]+ "pages": [+ "index",+ "blur-reveal",+ "typewriter",+ "inline-highlight",+ "text-fade-replace",+ "strikethrough-replace"+ ]}diff --git a/content/docs/primitives/strikethrough-replace.mdx b/content/docs/primitives/strikethrough-replace.mdxnew file mode 100644index 00000000..777f3aba--- /dev/null+++ b/content/docs/primitives/strikethrough-replace.mdx@@ -0,0 +1,79 @@+---+title: Strikethrough Replace+description: Draw a strike line across old text, then reveal new text in its place.+---++A typography primitive that animates a strikethrough line growing left-to-right across the `from` text, then cross-fades to the `to` text. Useful for "old way / new way" comparisons.++<ComponentPreview name="strikethrough-replace" />++## Installation++<InstallBlock name="strikethrough-replace" />++## Usage++```tsx+import { StrikethroughReplace } from "@/components/remocn/strikethrough-replace";++<StrikethroughReplace+ from="Slow setup"+ to="Instant setup"+ lineColor="#ff5e3a"+ fontSize={72}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "from",+ type: "string",+ required: true,+ description: "Original text that gets struck through.",+ },+ {+ name: "to",+ type: "string",+ required: true,+ description: "Replacement text that fades in.",+ },+ {+ name: "lineColor",+ type: "string",+ default: "\"#ff5e3a\"",+ description: "Color of the strikethrough bar.",+ },+ {+ name: "fontSize",+ type: "number",+ default: "48",+ description: "Font size in pixels.",+ },+ {+ name: "fontWeight",+ type: "number",+ default: "600",+ description: "CSS font-weight.",+ },+ {+ name: "color",+ type: "string",+ default: "\"#171717\"",+ description: "Text color for both strings.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the underlying spans.",+ },+ ]}+/>++## Notes++<Note title="Three phases">+ The animation runs in three phases tied to `durationInFrames`: draw the strike line (0–40%), cross-fade to the new text (40–60%), then hold (60–100%).+</Note>diff --git a/content/docs/primitives/text-fade-replace.mdx b/content/docs/primitives/text-fade-replace.mdxnew file mode 100644index 00000000..97384520--- /dev/null+++ b/content/docs/primitives/text-fade-replace.mdx@@ -0,0 +1,72 @@+---+title: Text Fade Replace+description: Cross-fade between two strings on the same line without layout shift.+---++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++<InstallBlock name="text-fade-replace" />++## Usage++```tsx+import { TextFadeReplace } from "@/components/remocn/text-fade-replace";++<TextFadeReplace from="Before" to="After" fontSize={72} />+```++## Props++<PropsTable+ rows={[+ {+ name: "from",+ type: "string",+ required: true,+ description: "Initial text shown at the start of the composition.",+ },+ {+ name: "to",+ type: "string",+ required: true,+ description: "Replacement text shown at the end of the composition.",+ },+ {+ name: "fontSize",+ type: "number",+ default: "48",+ description: "Font size in pixels.",+ },+ {+ name: "fontWeight",+ type: "number",+ default: "600",+ description: "CSS font-weight.",+ },+ {+ name: "color",+ type: "string",+ default: "\"#171717\"",+ description: "Text color for both strings.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to both spans.",+ },+ ]}+/>++## Notes++<Note title="Absolute positioning">+ Both texts are `position: absolute` inside a zero-size relative anchor. This guarantees there is no layout reflow during the cross-fade, even when `from` and `to` have different widths.+</Note>++<Warning title="Long strings">+ If your strings are very long, make sure your composition is wide enough — neither span will wrap because they use `whiteSpace: nowrap`.+</Warning>diff --git a/content/docs/primitives/typewriter.mdx b/content/docs/primitives/typewriter.mdxnew file mode 100644index 00000000..e733f84c--- /dev/null+++ b/content/docs/primitives/typewriter.mdx@@ -0,0 +1,84 @@+---+title: Typewriter+description: Character-by-character text reveal with a deterministic blinking cursor.+---++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++<InstallBlock name="typewriter" />++## Usage++```tsx+import { Typewriter } from "@/components/remocn/typewriter";++<Typewriter text="Hello, world" speed={20} fontSize={72} />+```++## Props++<PropsTable+ rows={[+ {+ name: "text",+ type: "string",+ required: true,+ description: "The text to type out.",+ },+ {+ name: "cursor",+ type: "boolean",+ default: "true",+ description: "Whether to render the blinking cursor at the end.",+ },+ {+ name: "speed",+ type: "number",+ default: "20",+ description: "Typing speed in characters per second.",+ },+ {+ name: "fontSize",+ type: "number",+ default: "48",+ description: "Font size in pixels.",+ },+ {+ name: "fontWeight",+ type: "number",+ default: "600",+ description: "CSS font-weight.",+ },+ {+ name: "color",+ type: "string",+ default: "\"#171717\"",+ description: "Text color (any valid CSS color).",+ },+ {+ name: "cursorColor",+ type: "string",+ default: "\"#171717\"",+ description: "Color of the blinking cursor block.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the underlying span.",+ },+ ]}+/>++## Notes++<Note title="Deterministic blink">+ The cursor uses `Math.floor(frame / 15) % 2 === 0` instead of `setInterval` or `Math.random()`. This is required for Remotion: every frame must be a pure function of `frame`, otherwise the rendered video will glitch.+</Note>++<Warning title="Composition length">+ Make sure your composition's `durationInFrames` is long enough to fit `text.length / speed` seconds of typing plus a hold at the end.+</Warning>diff --git a/content/docs/transitions/device-mockup-zoom.mdx b/content/docs/transitions/device-mockup-zoom.mdxnew file mode 100644index 00000000..fcbefc5a--- /dev/null+++ b/content/docs/transitions/device-mockup-zoom.mdx@@ -0,0 +1,69 @@+---+title: Device Mockup Zoom+description: Pull back from a UI to reveal it inside a device frame.+---++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++<InstallBlock name="device-mockup-zoom" />++## Usage++```tsx+import { DeviceMockupZoom } from "@/components/remocn/device-mockup-zoom";++<DeviceMockupZoom device="laptop">+ <YourAppScreen />+</DeviceMockupZoom>+```++## Props++<PropsTable+ rows={[+ {+ name: "children",+ type: "ReactNode",+ description: "Content rendered inside the device screen. Falls back to a sample gradient screen.",+ },+ {+ name: "device",+ type: '"laptop" | "phone"',+ default: '"laptop"',+ description: "Which inline mockup to render.",+ },+ {+ name: "frameColor",+ type: "string",+ default: '"#1f1f1f"',+ description: "Color of the device chrome.",+ },+ {+ name: "screenColor",+ type: "string",+ default: '"#0a0a0a"',+ description: "Background color shown behind the screen content.",+ },+ {+ name: "background",+ type: "string",+ default: '"#fafafa"',+ description: "Outer background color.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="Replace with real mockups">+ The inline SVG/div frame is intentional so the component has zero asset dependencies. If you want a photoreal mockup, swap the frame for an image loaded via `staticFile()` and place your UI underneath it.+</Note>diff --git a/content/docs/transitions/directional-wipe.mdx b/content/docs/transitions/directional-wipe.mdxnew file mode 100644index 00000000..82b3efa1--- /dev/null+++ b/content/docs/transitions/directional-wipe.mdx@@ -0,0 +1,75 @@+---+title: Directional Wipe+description: Slide one scene in while pushing the other out.+---++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++<InstallBlock name="directional-wipe" />++## Usage++```tsx+import { DirectionalWipe } from "@/components/remocn/directional-wipe";++<DirectionalWipe+ from={<SceneA />}+ to={<SceneB />}+ direction="left"+ transitionDuration={20}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "from",+ type: "ReactNode",+ description: "The outgoing scene. Falls back to a labeled colored panel.",+ },+ {+ name: "to",+ type: "ReactNode",+ description: "The incoming scene. Falls back to a labeled colored panel.",+ },+ {+ name: "direction",+ type: '"left" | "right" | "up" | "down"',+ default: '"left"',+ description: "Direction the outgoing scene slides toward.",+ },+ {+ name: "transitionStart",+ type: "number",+ default: "durationInFrames * 0.4",+ description: "Frame at which the wipe begins.",+ },+ {+ name: "transitionDuration",+ type: "number",+ default: "20",+ description: "Length of the wipe in frames.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="Pair with Sequence">+ For multi-scene videos, wrap each scene in `<Sequence>` and overlap their durations so the wipe blends cleanly between them.+</Note>++<Warning title="Use transform, not left/top">+ Animating positional CSS properties triggers layout reflow per frame. Stick to `transform: translateX/Y` for smooth 60fps renders.+</Warning>diff --git a/content/docs/transitions/index.mdx b/content/docs/transitions/index.mdxindex 9c237592..e3358da4 100644--- a/content/docs/transitions/index.mdx+++ b/content/docs/transitions/index.mdx@@ -9,18 +9,21 @@ Wipes, slides, zooms, and camera moves between scenes.items={[{name: "DirectionalWipe",- description: "Classic slide / wipe between scenes using transform translate.",- status: "soon",+ description: "Slide one scene in while pushing the other out.",+ status: "stable",+ href: "/docs/transitions/directional-wipe",},{name: "DeviceMockupZoom",description: "Pull back from a UI to reveal it inside a phone or laptop frame.",- status: "soon",+ status: "stable",+ href: "/docs/transitions/device-mockup-zoom",},{name: "ZoomThroughTransition",description: "Aggressive scale-in 'through' an element to the next scene.",- status: "soon",+ status: "stable",+ href: "/docs/transitions/zoom-through-transition",},]}/>diff --git a/content/docs/transitions/zoom-through-transition.mdx b/content/docs/transitions/zoom-through-transition.mdxnew file mode 100644index 00000000..e59318d9--- /dev/null+++ b/content/docs/transitions/zoom-through-transition.mdx@@ -0,0 +1,67 @@+---+title: Zoom Through Transition+description: Aggressively scale into the center of an element to fly through it.+---++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++<InstallBlock name="zoom-through-transition" />++## Usage++```tsx+import { ZoomThroughTransition } from "@/components/remocn/zoom-through-transition";++<ZoomThroughTransition targetScale={20}>+ <Logo />+</ZoomThroughTransition>+```++## Props++<PropsTable+ rows={[+ {+ name: "children",+ type: "ReactNode",+ description: "The element to zoom through. Falls back to a sample gradient card.",+ },+ {+ name: "targetScale",+ type: "number",+ default: "20",+ description: "Final scale value at the end of the duration.",+ },+ {+ name: "transformOrigin",+ type: "string",+ default: '"center center"',+ description: "CSS transform-origin for the zoom point.",+ },+ {+ name: "background",+ type: "string",+ default: '"white"',+ description: "Background color visible during the zoom.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="Aim the camera">+ `transformOrigin` controls the focal point of the zoom. Set it to the exact pixel of the element you want to fly through (e.g. `"50% 30%"`).+</Note>++<Warning title="Match with the next scene">+ This transition reads as a real fly-through only if the next scene is composited underneath. Use `<Sequence>` to overlap timings.+</Warning>diff --git a/content/docs/ui-elements/index.mdx b/content/docs/ui-elements/index.mdxindex 335df611..2ecd3e29 100644--- a/content/docs/ui-elements/index.mdx+++ b/content/docs/ui-elements/index.mdx@@ -9,18 +9,21 @@ Small interactive UI affordances that show up everywhere in product demos — cuitems={[{name: "SpringPopIn",- description: "Elastic scale-in with overshoot, backed by spring().",- status: "soon",+ description: "Elastic spring-driven scale-in wrapper for any child element.",+ status: "stable",+ href: "/docs/ui-elements/spring-pop-in",},{name: "SimulatedCursor",- description: "Cursor that moves between target points and clicks on cue.",- status: "soon",+ description: "Animated mouse cursor moving between waypoints with click ripple feedback.",+ status: "stable",+ href: "/docs/ui-elements/simulated-cursor",},{name: "PulsingIndicator",- description: "Looping Math.sin()-driven pulse for loading affordances.",- status: "soon",+ description: "Continuous pulsing dot with ping ring for loading or live states.",+ status: "stable",+ href: "/docs/ui-elements/pulsing-indicator",},]}/>diff --git a/content/docs/ui-elements/pulsing-indicator.mdx b/content/docs/ui-elements/pulsing-indicator.mdxnew file mode 100644index 00000000..34cc3aaa--- /dev/null+++ b/content/docs/ui-elements/pulsing-indicator.mdx@@ -0,0 +1,62 @@+---+title: Pulsing Indicator+description: Continuous pulsing dot for loading and "live" states.+---++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++<InstallBlock name="pulsing-indicator" />++## Usage++```tsx+import { PulsingIndicator } from "@/components/remocn/pulsing-indicator";++<PulsingIndicator color="#22c55e" size={16} speed={8} />+```++## Props++<PropsTable+ rows={[+ {+ name: "color",+ type: "string",+ default: "\"#22c55e\"",+ description: "Dot and ring color.",+ },+ {+ name: "size",+ type: "number",+ default: "16",+ description: "Dot diameter in pixels. The ring expands beyond this.",+ },+ {+ name: "speed",+ type: "number",+ default: "8",+ description: "Lower = faster pulse. The value is the frame divisor inside Math.sin.",+ },+ {+ name: "background",+ type: "string",+ default: "\"white\"",+ description: "Background color of the surrounding container.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the outer container.",+ },+ ]}+/>++## Notes++<Note title="Deterministic pulse">+ Animation is driven by `Math.sin(frame / speed)` — no `setInterval`, no randomness, fully frame-accurate on every render.+</Note>diff --git a/content/docs/ui-elements/simulated-cursor.mdx b/content/docs/ui-elements/simulated-cursor.mdxnew file mode 100644index 00000000..49ba4eeb--- /dev/null+++ b/content/docs/ui-elements/simulated-cursor.mdx@@ -0,0 +1,73 @@+---+title: Simulated Cursor+description: Animated mouse cursor that moves between waypoints with optional click feedback.+---++A UI primitive that renders a macOS-style cursor (inline SVG, no external assets) and moves it between a list of points. Each waypoint can hold for a configurable number of frames and optionally trigger a click animation: a brief scale dip plus an expanding SVG ripple.++<ComponentPreview name="simulated-cursor" />++## Installation++<InstallBlock name="simulated-cursor" />++## Usage++```tsx+import { SimulatedCursor } from "@/components/remocn/simulated-cursor";++<SimulatedCursor+ points={[+ { x: 200, y: 150, hold: 20 },+ { x: 800, y: 360, hold: 25, click: true },+ { x: 1050, y: 560, hold: 20 },+ ]}+ color="#ffffff"+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "points",+ type: "Array<{ x: number; y: number; hold?: number; click?: boolean }>",+ default: "3 sample waypoints",+ description: "Cursor waypoints in pixel coordinates. hold = frames to pause at the point, click = trigger click ripple.",+ },+ {+ name: "color",+ type: "string",+ default: "\"#ffffff\"",+ description: "Cursor fill color. The cursor always has a thin black outline for contrast.",+ },+ {+ name: "size",+ type: "number",+ default: "32",+ description: "Cursor size in pixels (SVG width and height).",+ },+ {+ name: "background",+ type: "string",+ default: "\"#0a0a0a\"",+ description: "Background color of the frame the cursor lives in.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the outer container.",+ },+ ]}+/>++## Notes++<Note title="Inline SVG, no assets">+ The cursor is drawn as inline SVG, so you don't need to copy anything into `public/`. Drop the component into any composition and it just works.+</Note>++<Note title="Coordinate space">+ `x` and `y` are in pixels relative to the composition size (e.g. 1280x720). Coordinates larger than the canvas will still render but be clipped by `overflow: hidden`.+</Note>diff --git a/content/docs/ui-elements/spring-pop-in.mdx b/content/docs/ui-elements/spring-pop-in.mdxnew file mode 100644index 00000000..ba9a4d18--- /dev/null+++ b/content/docs/ui-elements/spring-pop-in.mdx@@ -0,0 +1,72 @@+---+title: Spring Pop In+description: Elastic scale-in wrapper for any element.+---++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++<InstallBlock name="spring-pop-in" />++## Usage++```tsx+import { SpringPopIn } from "@/components/remocn/spring-pop-in";++<SpringPopIn damping={12}>+ <div style={{ padding: 24, background: "#111", color: "white" }}>+ Hello+ </div>+</SpringPopIn>+```++## Props++<PropsTable+ rows={[+ {+ name: "children",+ type: "ReactNode",+ required: true,+ description: "Element(s) to animate.",+ },+ {+ name: "damping",+ type: "number",+ default: "12",+ description: "Spring damping. Lower = more bounce.",+ },+ {+ name: "mass",+ type: "number",+ default: "1",+ description: "Spring mass.",+ },+ {+ name: "stiffness",+ type: "number",+ default: "100",+ description: "Spring stiffness.",+ },+ {+ name: "delayInFrames",+ type: "number",+ default: "0",+ description: "Delay before the spring starts, in frames.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the outer container.",+ },+ ]}+/>++## Notes++<Note title="Transform origin">+ The scale is applied with `transform-origin: center`. Override it via `className` if you need corner-anchored growth.+</Note>diff --git a/content/docs/workflows/index.mdx b/content/docs/workflows/index.mdxindex 87cd75e9..ab237260 100644--- a/content/docs/workflows/index.mdx+++ b/content/docs/workflows/index.mdx@@ -9,18 +9,15 @@ Step-by-step visualizations — pipelines, deploys, build processes.items={[{name: "ProgressSteps",- description: "Sequential step indicator, fills the connecting line via stroke-dashoffset.",- status: "soon",- },- {- name: "Timeline",- description: "Vertical timeline with animated dots and connecting lines.",- status: "soon",+ description: "Multi-step pipeline with sequentially activating nodes and filling lines. Supports both horizontal and vertical (Timeline) orientations.",+ status: "stable",+ href: "/docs/workflows/progress-steps",},{name: "SuccessConfetti",- description: "Particle burst rendered to <canvas>, seeded with random() from @remotion/random.",- status: "soon",+ description: "Deterministic seeded confetti burst with optional headline.",+ status: "stable",+ href: "/docs/workflows/success-confetti",},]}/>diff --git a/content/docs/workflows/progress-steps.mdx b/content/docs/workflows/progress-steps.mdxnew file mode 100644index 00000000..6d940de9--- /dev/null+++ b/content/docs/workflows/progress-steps.mdx@@ -0,0 +1,88 @@+---+title: Progress Steps+description: Multi-step pipeline with nodes lighting up sequentially.+---++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++<InstallBlock name="progress-steps" />++## Usage++```tsx+import { ProgressSteps } from "@/components/remocn/progress-steps";++<ProgressSteps+ steps={[{ label: "Connect" }, { label: "Process" }, { label: "Deploy" }]}+ orientation="horizontal"+ stepDuration={30}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "steps",+ type: "Array<{ label: string }>",+ default: "[{label:\"Connect\"},{label:\"Process\"},{label:\"Deploy\"}]",+ description: "Ordered list of steps. The component renders one circular node per entry.",+ },+ {+ name: "orientation",+ type: "\"horizontal\" | \"vertical\"",+ default: "\"horizontal\"",+ description: "Layout direction. Use vertical for timeline-style visuals.",+ },+ {+ name: "activeColor",+ type: "string",+ default: "\"#22c55e\"",+ description: "Fill color used once a step has been activated.",+ },+ {+ name: "inactiveColor",+ type: "string",+ 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",+ default: "\"white\"",+ description: "Color of the step label.",+ },+ {+ name: "stepDuration",+ type: "number",+ default: "30",+ description: "Number of frames between successive step activations.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the outer container.",+ },+ ]}+/>++## Notes++<Note title="Lines fill via strokeDashoffset">+ Connecting lines use `strokeDasharray` set to the segment length and animate `strokeDashoffset` from full length down to zero. This is GPU-friendly and stays crisp at any composition size.+</Note>++<Warning title="Pick a duration that fits all steps">+ Make sure `durationInFrames` is at least `steps.length * stepDuration + 30` so the final node has time to pop into its active state.+</Warning>diff --git a/content/docs/workflows/success-confetti.mdx b/content/docs/workflows/success-confetti.mdxnew file mode 100644index 00000000..d8ceddcf--- /dev/null+++ b/content/docs/workflows/success-confetti.mdx@@ -0,0 +1,106 @@+---+title: Success Confetti+description: Deterministic confetti burst from a focal point with optional headline.+---++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++<InstallBlock name="success-confetti" />++## Usage++```tsx+import { SuccessConfetti } from "@/components/remocn/success-confetti";++<SuccessConfetti+ text="Merged!"+ count={60}+ colors={["#ff5e3a", "#22c55e", "#0ea5e9", "#facc15", "#a855f7"]}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "count",+ type: "number",+ default: "60",+ description: "Number of confetti particles.",+ },+ {+ name: "colors",+ type: "string[]",+ default: "[\"#ff5e3a\",\"#22c55e\",\"#0ea5e9\",\"#facc15\",\"#a855f7\"]",+ description: "Pool of colors that particles are randomly drawn from.",+ },+ {+ name: "originX",+ type: "number",+ default: "0.5",+ description: "Horizontal burst origin as a fraction of the frame width (0..1).",+ },+ {+ name: "originY",+ type: "number",+ default: "0.5",+ description: "Vertical burst origin as a fraction of the frame height (0..1).",+ },+ {+ name: "gravity",+ type: "number",+ default: "0.4",+ description: "Downward acceleration applied per frame squared.",+ },+ {+ name: "velocity",+ type: "number",+ default: "12",+ description: "Base outward speed for each particle in pixels per frame.",+ },+ {+ name: "text",+ type: "string",+ default: "\"Merged!\"",+ description: "Optional headline rendered in the middle of the burst. Pass an empty string to hide.",+ },+ {+ name: "textColor",+ type: "string",+ default: "\"#171717\"",+ description: "Color of the headline.",+ },+ {+ name: "background",+ type: "string",+ default: "\"#fafafa\"",+ description: "Frame background color.",+ },+ {+ name: "seed",+ type: "string",+ default: "\"remocn\"",+ description: "Seed used to generate particle randomness. Change to get a different burst.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the outer container.",+ },+ ]}+/>++## Notes++<Note title="Deterministic randomness">+ Particle properties are derived from `random("seed:i:property")` so the same seed always yields the same burst — critical for chunked video renders.+</Note>++<Warning title="Avoid Math.random">+ Never replace `random()` with `Math.random()` here. It would produce different results on every frame and tear the burst across rendered chunks.+</Warning>diff --git a/lib/customizer-config.ts b/lib/customizer-config.tsindex ca5e818c..51a3ebed 100644--- a/lib/customizer-config.ts+++ b/lib/customizer-config.ts@@ -31,40 +31,414 @@ export interface ComponentConfig {componentName: string;}+const FPS = 30;+const W = 1280;+const H = 720;+const FONT_WEIGHT_OPTIONS = ["400", "500", "600", "700"];+export const componentConfigs: Record<string, ComponentConfig> = {"blur-reveal": {componentName: "BlurReveal",importPath: "@/components/remocn/blur-reveal",controls: {text: { type: "text", default: "BlurReveal", label: "Text" },- blur: {+ blur: { type: "number", default: 10, min: 1, max: 30, step: 1, label: "Blur" },+ fontSize: { type: "number", default: 72, min: 12, max: 160, step: 1, label: "Font size" },+ color: { type: "color", default: "#171717", label: "Color" },+ fontWeight: { type: "select", default: "600", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },+ },+ durationInFrames: 90,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ typewriter: {+ componentName: "Typewriter",+ importPath: "@/components/remocn/typewriter",+ controls: {+ text: { type: "text", default: "console.log('hello, world')", label: "Text" },+ cursor: { type: "boolean", default: true, label: "Show cursor" },+ speed: { type: "number", default: 20, min: 4, max: 60, step: 1, label: "Speed (cps)" },+ fontSize: { type: "number", default: 72, min: 12, max: 160, step: 1, label: "Font size" },+ color: { type: "color", default: "#171717", label: "Color" },+ cursorColor: { type: "color", default: "#171717", label: "Cursor color" },+ fontWeight: { type: "select", default: "600", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },+ },+ durationInFrames: 120,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "inline-highlight": {+ componentName: "InlineHighlight",+ importPath: "@/components/remocn/inline-highlight",+ controls: {+ before: { type: "text", default: "Ship faster with ", label: "Before" },+ highlight: { type: "text", default: "remocn", label: "Highlight" },+ after: { type: "text", default: ".", label: "After" },+ baseColor: { type: "color", default: "#171717", label: "Base color" },+ highlightColor: { type: "color", default: "#ff5e3a", label: "Highlight color" },+ fontSize: { type: "number", default: 72, min: 12, max: 160, step: 1, label: "Font size" },+ fontWeight: { type: "select", default: "600", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },+ },+ durationInFrames: 90,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "text-fade-replace": {+ componentName: "TextFadeReplace",+ importPath: "@/components/remocn/text-fade-replace",+ controls: {+ from: { type: "text", default: "Loading...", label: "From" },+ to: { type: "text", default: "Ready!", label: "To" },+ fontSize: { type: "number", default: 72, min: 12, max: 160, step: 1, label: "Font size" },+ color: { type: "color", default: "#171717", label: "Color" },+ fontWeight: { type: "select", default: "600", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },+ },+ durationInFrames: 90,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "strikethrough-replace": {+ componentName: "StrikethroughReplace",+ importPath: "@/components/remocn/strikethrough-replace",+ controls: {+ from: { type: "text", default: "$49/mo", label: "From" },+ to: { type: "text", default: "Free", label: "To" },+ lineColor: { type: "color", default: "#ff5e3a", label: "Line color" },+ fontSize: { type: "number", default: 96, min: 12, max: 160, step: 1, label: "Font size" },+ color: { type: "color", default: "#171717", label: "Color" },+ fontWeight: { type: "select", default: "700", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },+ },+ durationInFrames: 120,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "mesh-gradient-bg": {+ componentName: "MeshGradientBg",+ importPath: "@/components/remocn/mesh-gradient-bg",+ controls: {+ speed: { type: "number", default: 1, min: 0.1, max: 4, step: 0.1, label: "Speed" },+ blur: { type: "number", default: 80, min: 20, max: 200, step: 4, label: "Blur" },+ background: { type: "color", default: "#0a0a0a", label: "Background" },+ },+ durationInFrames: 150,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "dynamic-grid": {+ componentName: "DynamicGrid",+ importPath: "@/components/remocn/dynamic-grid",+ controls: {+ cellSize: { type: "number", default: 40, min: 8, max: 160, step: 4, label: "Cell size" },+ lineColor: { type: "color", default: "#27272a", label: "Line color" },+ background: { type: "color", default: "#0a0a0a", label: "Background" },+ speed: { type: "number", default: 0.5, min: 0, max: 4, step: 0.1, label: "Speed" },+ direction: {+ type: "select",+ default: "diagonal",+ options: ["diagonal", "horizontal", "vertical"],+ label: "Direction",+ },+ },+ durationInFrames: 150,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "spring-pop-in": {+ componentName: "SpringPopIn",+ importPath: "@/components/remocn/spring-pop-in",+ controls: {+ damping: { type: "number", default: 12, min: 1, max: 40, step: 1, label: "Damping" },+ mass: { type: "number", default: 1, min: 0.1, max: 5, step: 0.1, label: "Mass" },+ stiffness: { type: "number", default: 100, min: 10, max: 400, step: 5, label: "Stiffness" },+ delayInFrames: { type: "number", default: 0, min: 0, max: 60, step: 1, label: "Delay (frames)" },+ },+ durationInFrames: 60,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "simulated-cursor": {+ componentName: "SimulatedCursor",+ importPath: "@/components/remocn/simulated-cursor",+ controls: {+ color: { type: "color", default: "#ffffff", label: "Color" },+ size: { type: "number", default: 32, min: 12, max: 96, step: 1, label: "Size" },+ background: { type: "color", default: "#0a0a0a", label: "Background" },+ },+ durationInFrames: 150,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "pulsing-indicator": {+ componentName: "PulsingIndicator",+ importPath: "@/components/remocn/pulsing-indicator",+ controls: {+ color: { type: "color", default: "#22c55e", label: "Color" },+ size: { type: "number", default: 32, min: 8, max: 120, step: 1, label: "Size" },+ speed: { type: "number", default: 8, min: 1, max: 30, step: 0.5, label: "Speed" },+ background: { type: "color", default: "#ffffff", label: "Background" },+ },+ durationInFrames: 120,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "directional-wipe": {+ componentName: "DirectionalWipe",+ importPath: "@/components/remocn/directional-wipe",+ controls: {+ direction: {+ type: "select",+ default: "left",+ options: ["left", "right", "up", "down"],+ label: "Direction",+ },+ transitionDuration: {type: "number",- default: 10,- min: 1,- max: 30,+ default: 20,+ min: 4,+ max: 60,step: 1,- label: "Blur",+ label: "Transition duration",},- fontSize: {+ },+ durationInFrames: 90,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "device-mockup-zoom": {+ componentName: "DeviceMockupZoom",+ importPath: "@/components/remocn/device-mockup-zoom",+ controls: {+ device: {+ type: "select",+ default: "laptop",+ options: ["laptop", "phone"],+ label: "Device",+ },+ frameColor: { type: "color", default: "#1f1f1f", label: "Frame color" },+ screenColor: { type: "color", default: "#0a0a0a", label: "Screen color" },+ background: { type: "color", default: "#fafafa", label: "Background" },+ },+ durationInFrames: 120,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "zoom-through-transition": {+ componentName: "ZoomThroughTransition",+ importPath: "@/components/remocn/zoom-through-transition",+ controls: {+ targetScale: { type: "number", default: 20, min: 2, max: 60, step: 1, label: "Target scale" },+ background: { type: "color", default: "#ffffff", label: "Background" },+ },+ durationInFrames: 60,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "staggered-bento-grid": {+ componentName: "StaggeredBentoGrid",+ importPath: "@/components/remocn/staggered-bento-grid",+ controls: {+ staggerDelay: { type: "number", default: 8, min: 1, max: 30, step: 1, label: "Stagger delay" },+ columns: { type: "number", default: 3, min: 2, max: 5, step: 1, label: "Columns" },+ background: { type: "color", default: "#0a0a0a", label: "Background" },+ cardColor: { type: "color", default: "#1a1a1a", label: "Card color" },+ textColor: { type: "color", default: "#ffffff", label: "Text color" },+ },+ durationInFrames: 120,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "chat-to-preview-layout": {+ componentName: "ChatToPreviewLayout",+ importPath: "@/components/remocn/chat-to-preview-layout",+ controls: {+ startChatRatio: {type: "number",- default: 72,- min: 12,- max: 120,- step: 1,- label: "Font size",+ default: 0.5,+ min: 0.1,+ max: 0.9,+ step: 0.05,+ label: "Start chat ratio",},- color: { type: "color", default: "#171717", label: "Color" },- fontWeight: {+ endChatRatio: {+ type: "number",+ default: 0.25,+ min: 0.05,+ max: 0.9,+ step: 0.05,+ label: "End chat ratio",+ },+ background: { type: "color", default: "#0a0a0a", label: "Background" },+ },+ durationInFrames: 120,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "bounding-box-selector": {+ componentName: "BoundingBoxSelector",+ importPath: "@/components/remocn/bounding-box-selector",+ controls: {+ borderColor: { type: "color", default: "#0ea5e9", label: "Border color" },+ handleColor: { type: "color", default: "#0ea5e9", label: "Handle color" },+ borderWidth: { type: "number", default: 2, min: 1, max: 8, step: 1, label: "Border width" },+ appearAt: { type: "number", default: 15, min: 0, max: 60, step: 1, label: "Appear at (frame)" },+ background: { type: "color", default: "#fafafa", label: "Background" },+ },+ durationInFrames: 90,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "animated-line-chart": {+ componentName: "AnimatedLineChart",+ importPath: "@/components/remocn/animated-line-chart",+ controls: {+ strokeColor: { type: "color", default: "#22c55e", label: "Stroke color" },+ strokeWidth: { type: "number", default: 4, min: 1, max: 16, step: 1, label: "Stroke width" },+ background: { type: "color", default: "#0a0a0a", label: "Background" },+ gridColor: { type: "color", default: "#27272a", label: "Grid color" },+ showDot: { type: "boolean", default: true, label: "Show leading dot" },+ },+ durationInFrames: 90,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "animated-bar-chart": {+ componentName: "AnimatedBarChart",+ importPath: "@/components/remocn/animated-bar-chart",+ controls: {+ barColor: { type: "color", default: "#0ea5e9", label: "Bar color" },+ background: { type: "color", default: "#0a0a0a", label: "Background" },+ gap: { type: "number", default: 16, min: 0, max: 80, step: 2, label: "Gap" },+ staggerFrames: { type: "number", default: 6, min: 0, max: 30, step: 1, label: "Stagger frames" },+ },+ durationInFrames: 90,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "terminal-simulator": {+ componentName: "TerminalSimulator",+ importPath: "@/components/remocn/terminal-simulator",+ controls: {+ prompt: { type: "text", default: "$", label: "Prompt" },+ title: { type: "text", default: "~/projects/remocn", label: "Title" },+ background: { type: "color", default: "#0a0a0a", label: "Background" },+ chromeColor: { type: "color", default: "#1a1a1a", label: "Chrome color" },+ fontSize: { type: "number", default: 18, min: 10, max: 32, step: 1, label: "Font size" },+ charsPerFrame: { type: "number", default: 1, min: 0.25, max: 6, step: 0.25, label: "Chars / frame" },+ },+ durationInFrames: 240,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "code-diff-wipe": {+ componentName: "CodeDiffWipe",+ importPath: "@/components/remocn/code-diff-wipe",+ controls: {+ language: { type: "text", default: "tsx", label: "Language" },+ background: { type: "color", default: "#0a0a0a", label: "Background" },+ accent: { type: "color", default: "#0ea5e9", label: "Accent" },+ transitionStart: { type: "number", default: 20, min: 0, max: 120, step: 1, label: "Transition start" },+ transitionDuration: { type: "number", default: 60, min: 8, max: 180, step: 1, label: "Transition duration" },+ showHandle: { type: "boolean", default: true, label: "Show handle" },+ },+ durationInFrames: 120,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "toast-notification": {+ componentName: "ToastNotification",+ importPath: "@/components/remocn/toast-notification",+ controls: {+ title: { type: "text", default: "Deployment successful", label: "Title" },+ message: { type: "text", default: "Your changes are live at remocn.dev", label: "Message" },+ variant: {type: "select",- default: "600",- options: ["400", "500", "600", "700"],- label: "Font weight",+ default: "success",+ options: ["success", "error", "info", "warning"],+ label: "Variant",},+ background: { type: "color", default: "#fafafa", label: "Background" },+ cardColor: { type: "color", default: "#ffffff", label: "Card color" },+ textColor: { type: "color", default: "#171717", label: "Text color" },+ mutedColor: { type: "color", default: "#71717a", label: "Muted color" },},durationInFrames: 90,- fps: 30,- compositionWidth: 1280,- compositionHeight: 720,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "drag-and-drop-flow": {+ componentName: "DragAndDropFlow",+ importPath: "@/components/remocn/drag-and-drop-flow",+ controls: {+ accent: { type: "color", default: "#0ea5e9", label: "Accent" },+ dropzoneLabel: { type: "text", default: "Drop file to upload", label: "Dropzone label" },+ fileName: { type: "text", default: "design.fig", label: "File name" },+ background: { type: "color", default: "#fafafa", label: "Background" },+ },+ durationInFrames: 150,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "progress-steps": {+ componentName: "ProgressSteps",+ importPath: "@/components/remocn/progress-steps",+ controls: {+ orientation: {+ type: "select",+ default: "horizontal",+ options: ["horizontal", "vertical"],+ label: "Orientation",+ },+ activeColor: { type: "color", default: "#22c55e", label: "Active color" },+ inactiveColor: { type: "color", default: "#27272a", label: "Inactive color" },+ background: { type: "color", default: "#0a0a0a", label: "Background" },+ textColor: { type: "color", default: "#ffffff", label: "Text color" },+ stepDuration: { type: "number", default: 30, min: 4, max: 120, step: 1, label: "Step duration" },+ },+ durationInFrames: 150,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "success-confetti": {+ componentName: "SuccessConfetti",+ importPath: "@/components/remocn/success-confetti",+ controls: {+ count: { type: "number", default: 60, min: 10, max: 200, step: 5, label: "Particle count" },+ originX: { type: "number", default: 0.5, min: 0, max: 1, step: 0.05, label: "Origin X" },+ originY: { type: "number", default: 0.5, min: 0, max: 1, step: 0.05, label: "Origin Y" },+ gravity: { type: "number", default: 0.4, min: 0, max: 2, step: 0.05, label: "Gravity" },+ velocity: { type: "number", default: 12, min: 1, max: 40, step: 0.5, label: "Velocity" },+ text: { type: "text", default: "Merged!", label: "Text" },+ textColor: { type: "color", default: "#171717", label: "Text color" },+ background: { type: "color", default: "#fafafa", label: "Background" },+ seed: { type: "text", default: "remocn", label: "Seed" },+ },+ durationInFrames: 120,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,},};diff --git a/registry.json b/registry.jsonindex 0b006c05..2f617b7e 100644--- a/registry.json+++ b/registry.json@@ -16,6 +16,328 @@"target": "components/remocn/blur-reveal.tsx"}]+ },+ {+ "name": "typewriter",+ "type": "registry:component",+ "title": "Typewriter",+ "description": "Character-by-character text reveal with a deterministic blinking cursor.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/typewriter.tsx",+ "type": "registry:component",+ "target": "components/remocn/typewriter.tsx"+ }+ ]+ },+ {+ "name": "inline-highlight",+ "type": "registry:component",+ "title": "Inline Highlight",+ "description": "Animates one word inside a sentence from a base color to a brand color.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/inline-highlight.tsx",+ "type": "registry:component",+ "target": "components/remocn/inline-highlight.tsx"+ }+ ]+ },+ {+ "name": "text-fade-replace",+ "type": "registry:component",+ "title": "Text Fade Replace",+ "description": "Cross-fades between two strings on the same line without layout shift.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/text-fade-replace.tsx",+ "type": "registry:component",+ "target": "components/remocn/text-fade-replace.tsx"+ }+ ]+ },+ {+ "name": "strikethrough-replace",+ "type": "registry:component",+ "title": "Strikethrough Replace",+ "description": "Draws a strike line across old text then reveals new text in its place.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/strikethrough-replace.tsx",+ "type": "registry:component",+ "target": "components/remocn/strikethrough-replace.tsx"+ }+ ]+ },+ {+ "name": "mesh-gradient-bg",+ "type": "registry:component",+ "title": "Mesh Gradient Background",+ "description": "Living gradient with amorphous color blobs slowly drifting across the frame.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/mesh-gradient-bg.tsx",+ "type": "registry:component",+ "target": "components/remocn/mesh-gradient-bg.tsx"+ }+ ]+ },+ {+ "name": "dynamic-grid",+ "type": "registry:component",+ "title": "Dynamic Grid",+ "description": "Subtle moving grid background with configurable cell size and direction.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/dynamic-grid.tsx",+ "type": "registry:component",+ "target": "components/remocn/dynamic-grid.tsx"+ }+ ]+ },+ {+ "name": "spring-pop-in",+ "type": "registry:component",+ "title": "Spring Pop In",+ "description": "Elastic spring-driven scale-in wrapper for any child element.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/spring-pop-in.tsx",+ "type": "registry:component",+ "target": "components/remocn/spring-pop-in.tsx"+ }+ ]+ },+ {+ "name": "simulated-cursor",+ "type": "registry:component",+ "title": "Simulated Cursor",+ "description": "Animated mouse cursor moving between waypoints with click ripple feedback.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/simulated-cursor.tsx",+ "type": "registry:component",+ "target": "components/remocn/simulated-cursor.tsx"+ }+ ]+ },+ {+ "name": "pulsing-indicator",+ "type": "registry:component",+ "title": "Pulsing Indicator",+ "description": "Continuous pulsing dot with ping ring for loading or live states.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/pulsing-indicator.tsx",+ "type": "registry:component",+ "target": "components/remocn/pulsing-indicator.tsx"+ }+ ]+ },+ {+ "name": "directional-wipe",+ "type": "registry:component",+ "title": "Directional Wipe",+ "description": "Slide one scene in while pushing the other out.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/directional-wipe.tsx",+ "type": "registry:component",+ "target": "components/remocn/directional-wipe.tsx"+ }+ ]+ },+ {+ "name": "device-mockup-zoom",+ "type": "registry:component",+ "title": "Device Mockup Zoom",+ "description": "Pull back from a UI to reveal it inside a device frame.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/device-mockup-zoom.tsx",+ "type": "registry:component",+ "target": "components/remocn/device-mockup-zoom.tsx"+ }+ ]+ },+ {+ "name": "zoom-through-transition",+ "type": "registry:component",+ "title": "Zoom Through Transition",+ "description": "Aggressively scale into the center of an element.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/zoom-through-transition.tsx",+ "type": "registry:component",+ "target": "components/remocn/zoom-through-transition.tsx"+ }+ ]+ },+ {+ "name": "staggered-bento-grid",+ "type": "registry:component",+ "title": "Staggered Bento Grid",+ "description": "Cards pop into a bento grid one after another with a spring.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/staggered-bento-grid.tsx",+ "type": "registry:component",+ "target": "components/remocn/staggered-bento-grid.tsx"+ }+ ]+ },+ {+ "name": "chat-to-preview-layout",+ "type": "registry:component",+ "title": "Chat to Preview Layout",+ "description": "Two-column layout where chat shrinks and preview expands.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/chat-to-preview-layout.tsx",+ "type": "registry:component",+ "target": "components/remocn/chat-to-preview-layout.tsx"+ }+ ]+ },+ {+ "name": "bounding-box-selector",+ "type": "registry:component",+ "title": "Bounding Box Selector",+ "description": "Figma-style selection rectangle appears around any element.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/bounding-box-selector.tsx",+ "type": "registry:component",+ "target": "components/remocn/bounding-box-selector.tsx"+ }+ ]+ },+ {+ "name": "animated-line-chart",+ "type": "registry:component",+ "title": "Animated Line Chart",+ "description": "Line chart whose SVG path draws on from left to right with a leading dot.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/animated-line-chart.tsx",+ "type": "registry:component",+ "target": "components/remocn/animated-line-chart.tsx"+ }+ ]+ },+ {+ "name": "animated-bar-chart",+ "type": "registry:component",+ "title": "Animated Bar Chart",+ "description": "Bars spring up from the baseline in a staggered cascade.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/animated-bar-chart.tsx",+ "type": "registry:component",+ "target": "components/remocn/animated-bar-chart.tsx"+ }+ ]+ },+ {+ "name": "terminal-simulator",+ "type": "registry:component",+ "title": "Terminal Simulator",+ "description": "Terminal window that types out commands and rolls old lines off the top.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/terminal-simulator.tsx",+ "type": "registry:component",+ "target": "components/remocn/terminal-simulator.tsx"+ }+ ]+ },+ {+ "name": "code-diff-wipe",+ "type": "registry:component",+ "title": "Code Diff Wipe",+ "description": "Before/after code reveal via clip-path wipe with a handle marker.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/code-diff-wipe.tsx",+ "type": "registry:component",+ "target": "components/remocn/code-diff-wipe.tsx"+ }+ ]+ },+ {+ "name": "toast-notification",+ "type": "registry:component",+ "title": "Toast Notification",+ "description": "System-style toast pops in, holds, then slides out.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/toast-notification.tsx",+ "type": "registry:component",+ "target": "components/remocn/toast-notification.tsx"+ }+ ]+ },+ {+ "name": "drag-and-drop-flow",+ "type": "registry:component",+ "title": "Drag and Drop Flow",+ "description": "Simulated file drag into a dropzone followed by upload progress.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/drag-and-drop-flow.tsx",+ "type": "registry:component",+ "target": "components/remocn/drag-and-drop-flow.tsx"+ }+ ]+ },+ {+ "name": "progress-steps",+ "type": "registry:component",+ "title": "Progress Steps",+ "description": "Multi-step pipeline with sequentially activating nodes and filling lines.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/progress-steps.tsx",+ "type": "registry:component",+ "target": "components/remocn/progress-steps.tsx"+ }+ ]+ },+ {+ "name": "success-confetti",+ "type": "registry:component",+ "title": "Success Confetti",+ "description": "Deterministic seeded confetti burst with optional headline.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/success-confetti.tsx",+ "type": "registry:component",+ "target": "components/remocn/success-confetti.tsx"+ }+ ]}]}diff --git a/registry/remocn/animated-bar-chart.tsx b/registry/remocn/animated-bar-chart.tsxnew file mode 100644index 00000000..0c2c7558--- /dev/null+++ b/registry/remocn/animated-bar-chart.tsx@@ -0,0 +1,115 @@+"use client";++import { spring, useCurrentFrame, useVideoConfig } from "remotion";++export interface AnimatedBarChartProps {+ data?: number[];+ labels?: string[];+ width?: number;+ height?: number;+ barColor?: string;+ background?: string;+ gap?: number;+ staggerFrames?: number;+ className?: string;+}++export function AnimatedBarChart({+ data = [35, 60, 45, 80, 55, 70, 90, 65],+ labels,+ width = 1000,+ height = 500,+ barColor = "#0ea5e9",+ background = "#0a0a0a",+ gap = 16,+ staggerFrames = 6,+ className,+}: AnimatedBarChartProps) {+ const frame = useCurrentFrame();+ const { fps } = useVideoConfig();++ const padding = 60;+ const labelSpace = labels ? 40 : 0;+ const innerWidth = width - padding * 2;+ const innerHeight = height - padding * 2 - labelSpace;+ const max = Math.max(...data);+ const barWidth = (innerWidth - gap * (data.length - 1)) / data.length;+ const baseY = padding + innerHeight;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background,+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ }}+ >+ <svg width={width} height={height} viewBox={`0 0 ${width} ${height}`}>+ {/* Baseline */}+ <line+ x1={padding}+ x2={padding + innerWidth}+ y1={baseY}+ y2={baseY}+ stroke="#27272a"+ strokeWidth={2}+ />++ {data.map((value, index) => {+ const targetHeight = (value / max) * innerHeight;+ const x = padding + index * (barWidth + gap);+ const y = baseY - targetHeight;++ const scaleY = spring({+ frame: frame - index * staggerFrames,+ fps,+ config: { damping: 12, stiffness: 100, mass: 0.8 },+ from: 0,+ to: 1,+ });++ return (+ <g key={index}>+ <rect+ x={x}+ y={y}+ width={barWidth}+ height={targetHeight}+ rx={6}+ fill={barColor}+ style={{+ transform: `scaleY(${scaleY})`,+ transformOrigin: `${x + barWidth / 2}px ${baseY}px`,+ transformBox: "fill-box",+ filter: `drop-shadow(0 4px 16px ${barColor}55)`,+ }}+ />+ {labels && labels[index] && (+ <text+ x={x + barWidth / 2}+ y={baseY + 28}+ fill="#a1a1aa"+ fontSize={16}+ textAnchor="middle"+ style={{+ opacity: scaleY,+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ }}+ >+ {labels[index]}+ </text>+ )}+ </g>+ );+ })}+ </svg>+ </div>+ );+}diff --git a/registry/remocn/animated-line-chart.tsx b/registry/remocn/animated-line-chart.tsxnew file mode 100644index 00000000..be478dde--- /dev/null+++ b/registry/remocn/animated-line-chart.tsx@@ -0,0 +1,188 @@+"use client";++import { spring, useCurrentFrame, useVideoConfig } from "remotion";++export interface AnimatedLineChartProps {+ data?: number[];+ width?: number;+ height?: number;+ strokeColor?: string;+ strokeWidth?: number;+ background?: string;+ gridColor?: string;+ showDot?: boolean;+ className?: string;+}++export function AnimatedLineChart({+ data = [12, 19, 8, 15, 22, 18, 28, 25, 32],+ width = 1000,+ height = 500,+ strokeColor = "#22c55e",+ strokeWidth = 4,+ background = "#0a0a0a",+ gridColor = "#27272a",+ showDot = true,+ className,+}: AnimatedLineChartProps) {+ const frame = useCurrentFrame();+ const { fps, durationInFrames } = useVideoConfig();++ const padding = 60;+ const innerWidth = width - padding * 2;+ const innerHeight = height - padding * 2;++ const min = Math.min(...data);+ const max = Math.max(...data);+ const range = max - min || 1;++ const points = data.map((value, index) => {+ const x = padding + (index / (data.length - 1)) * innerWidth;+ const y = padding + innerHeight - ((value - min) / range) * innerHeight;+ return { x, y };+ });++ // Analytical path length: sum of segment distances+ let pathLength = 0;+ for (let i = 1; i < points.length; i++) {+ const dx = points[i].x - points[i - 1].x;+ const dy = points[i].y - points[i - 1].y;+ pathLength += Math.sqrt(dx * dx + dy * dy);+ }++ const d = points+ .map((p, i) => `${i === 0 ? "M" : "L"}${p.x.toFixed(2)},${p.y.toFixed(2)}`)+ .join(" ");++ // Spring-driven progress: smooth, no bounce. Matches the "smooth" preset+ // from remotion-best-practices/timing.md.+ const progress = spring({+ frame,+ fps,+ durationInFrames: Math.round(durationInFrames * 0.85),+ config: { damping: 200 },+ });++ const dashOffset = pathLength * (1 - progress);++ // Find dot position along the path at current progress+ const targetLen = pathLength * progress;+ let traveled = 0;+ let dotX = points[0].x;+ let dotY = points[0].y;+ for (let i = 1; i < points.length; i++) {+ const dx = points[i].x - points[i - 1].x;+ const dy = points[i].y - points[i - 1].y;+ const segLen = Math.sqrt(dx * dx + dy * dy);+ if (traveled + segLen >= targetLen) {+ const t = (targetLen - traveled) / segLen;+ dotX = points[i - 1].x + dx * t;+ dotY = points[i - 1].y + dy * t;+ break;+ }+ traveled += segLen;+ dotX = points[i].x;+ dotY = points[i].y;+ }++ const gridRows = 4;+ const gridCols = data.length - 1;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background,+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ }}+ >+ <svg+ width={width}+ height={height}+ viewBox={`0 0 ${width} ${height}`}+ style={{ overflow: "visible" }}+ >+ {/* Horizontal grid */}+ {Array.from({ length: gridRows + 1 }).map((_, i) => {+ const y = padding + (i / gridRows) * innerHeight;+ return (+ <line+ key={`h-${i}`}+ x1={padding}+ x2={padding + innerWidth}+ y1={y}+ y2={y}+ stroke={gridColor}+ strokeWidth={1}+ />+ );+ })}+ {/* Vertical grid */}+ {Array.from({ length: gridCols + 1 }).map((_, i) => {+ const x = padding + (i / gridCols) * innerWidth;+ return (+ <line+ key={`v-${i}`}+ x1={x}+ x2={x}+ y1={padding}+ y2={padding + innerHeight}+ stroke={gridColor}+ strokeWidth={1}+ />+ );+ })}+ {/* Axis */}+ <line+ x1={padding}+ x2={padding}+ y1={padding}+ y2={padding + innerHeight}+ stroke={gridColor}+ strokeWidth={2}+ />+ <line+ x1={padding}+ x2={padding + innerWidth}+ y1={padding + innerHeight}+ y2={padding + innerHeight}+ stroke={gridColor}+ strokeWidth={2}+ />++ {/* Animated line */}+ <path+ d={d}+ fill="none"+ stroke={strokeColor}+ strokeWidth={strokeWidth}+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeDasharray={pathLength}+ strokeDashoffset={dashOffset}+ style={{+ filter: `drop-shadow(0 0 12px ${strokeColor}55)`,+ }}+ />++ {showDot && progress > 0 && progress < 1 && (+ <circle+ cx={dotX}+ cy={dotY}+ r={strokeWidth * 2}+ fill={strokeColor}+ style={{+ filter: `drop-shadow(0 0 8px ${strokeColor})`,+ }}+ />+ )}+ </svg>+ </div>+ );+}diff --git a/registry/remocn/bounding-box-selector.tsx b/registry/remocn/bounding-box-selector.tsxnew file mode 100644index 00000000..964a3fa6--- /dev/null+++ b/registry/remocn/bounding-box-selector.tsx@@ -0,0 +1,139 @@+"use client";++import type { ReactNode } from "react";+import { spring, useCurrentFrame, useVideoConfig } from "remotion";++export interface BoundingBoxSelectorProps {+ children?: ReactNode;+ borderColor?: string;+ handleColor?: string;+ borderWidth?: number;+ appearAt?: number;+ background?: string;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++function DefaultPlaceholder() {+ return (+ <div+ style={{+ width: 480,+ height: 280,+ background: "white",+ borderRadius: 16,+ boxShadow: "0 12px 40px rgba(0,0,0,0.08)",+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ color: "#71717a",+ fontFamily: FONT_FAMILY,+ fontSize: 24,+ fontWeight: 600,+ letterSpacing: "-0.02em",+ }}+ >+ Selected element+ </div>+ );+}++function Handle({+ color,+ style,+}: {+ color: string;+ style: React.CSSProperties;+}) {+ return (+ <div+ style={{+ position: "absolute",+ width: 10,+ height: 10,+ background: "white",+ border: `2px solid ${color}`,+ borderRadius: 2,+ ...style,+ }}+ />+ );+}++export function BoundingBoxSelector({+ children,+ borderColor = "#0ea5e9",+ handleColor = "#0ea5e9",+ borderWidth = 2,+ appearAt = 15,+ background = "#fafafa",+ className,+}: BoundingBoxSelectorProps) {+ const frame = useCurrentFrame();+ const { fps } = useVideoConfig();++ const progress = spring({+ frame: frame - appearAt,+ fps,+ config: { damping: 16, stiffness: 140, mass: 0.7 },+ });++ const opacity = progress;+ const scale = 0.96 + progress * 0.04;++ const content = children ?? <DefaultPlaceholder />;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ }}+ >+ <div style={{ position: "relative", display: "inline-block" }}>+ {content}+ <div+ style={{+ position: "absolute",+ inset: -8,+ border: `${borderWidth}px solid ${borderColor}`,+ borderRadius: 4,+ opacity,+ transform: `scale(${scale})`,+ transformOrigin: "center center",+ pointerEvents: "none",+ willChange: "transform, opacity",+ }}+ >+ <Handle color={handleColor} style={{ top: -6, left: -6 }} />+ <Handle color={handleColor} style={{ top: -6, right: -6 }} />+ <Handle color={handleColor} style={{ bottom: -6, left: -6 }} />+ <Handle color={handleColor} style={{ bottom: -6, right: -6 }} />+ <Handle+ color={handleColor}+ style={{ top: -6, left: "50%", marginLeft: -5 }}+ />+ <Handle+ color={handleColor}+ style={{ bottom: -6, left: "50%", marginLeft: -5 }}+ />+ <Handle+ color={handleColor}+ style={{ left: -6, top: "50%", marginTop: -5 }}+ />+ <Handle+ color={handleColor}+ style={{ right: -6, top: "50%", marginTop: -5 }}+ />+ </div>+ </div>+ </div>+ );+}diff --git a/registry/remocn/chat-to-preview-layout.tsx b/registry/remocn/chat-to-preview-layout.tsxnew file mode 100644index 00000000..0aea0aa8--- /dev/null+++ b/registry/remocn/chat-to-preview-layout.tsx@@ -0,0 +1,225 @@+"use client";++import type { ReactNode } from "react";+import { Easing, interpolate, useCurrentFrame, useVideoConfig } from "remotion";++export interface ChatToPreviewLayoutProps {+ chat?: ReactNode;+ preview?: ReactNode;+ startChatRatio?: number;+ endChatRatio?: number;+ background?: string;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++function DefaultChat() {+ const messages = [+ { from: "user", text: "Build me a landing page" },+ { from: "ai", text: "Sure — what should it feature?" },+ { from: "user", text: "Hero, pricing, footer." },+ { from: "ai", text: "On it. Generating now..." },+ ];+ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ padding: 24,+ display: "flex",+ flexDirection: "column",+ gap: 12,+ fontFamily: FONT_FAMILY,+ background: "#111",+ }}+ >+ <div+ style={{+ color: "#888",+ fontSize: 12,+ fontWeight: 600,+ letterSpacing: "0.08em",+ textTransform: "uppercase",+ marginBottom: 8,+ }}+ >+ Chat+ </div>+ {messages.map((m, i) => (+ <div+ key={i}+ style={{+ alignSelf: m.from === "user" ? "flex-end" : "flex-start",+ background: m.from === "user" ? "#0ea5e9" : "#262626",+ color: "white",+ padding: "10px 14px",+ borderRadius: 14,+ fontSize: 14,+ maxWidth: "85%",+ }}+ >+ {m.text}+ </div>+ ))}+ </div>+ );+}++function DefaultPreview() {+ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ background: "white",+ display: "flex",+ flexDirection: "column",+ fontFamily: FONT_FAMILY,+ }}+ >+ <div+ style={{+ height: 36,+ background: "#f4f4f5",+ borderBottom: "1px solid #e4e4e7",+ display: "flex",+ alignItems: "center",+ gap: 6,+ padding: "0 12px",+ }}+ >+ <div+ style={{+ width: 10,+ height: 10,+ borderRadius: 999,+ background: "#ef4444",+ }}+ />+ <div+ style={{+ width: 10,+ height: 10,+ borderRadius: 999,+ background: "#f59e0b",+ }}+ />+ <div+ style={{+ width: 10,+ height: 10,+ borderRadius: 999,+ background: "#22c55e",+ }}+ />+ </div>+ <div+ style={{+ flex: 1,+ padding: 32,+ display: "flex",+ flexDirection: "column",+ gap: 16,+ }}+ >+ <div+ style={{+ fontSize: 36,+ fontWeight: 700,+ letterSpacing: "-0.03em",+ color: "#0a0a0a",+ }}+ >+ Ship faster.+ </div>+ <div style={{ fontSize: 16, color: "#71717a", maxWidth: 360 }}>+ The fastest way to launch your idea. Built with Remotion.+ </div>+ <div+ style={{+ marginTop: 12,+ display: "inline-flex",+ background: "#0a0a0a",+ color: "white",+ padding: "10px 18px",+ borderRadius: 10,+ alignSelf: "flex-start",+ fontSize: 14,+ fontWeight: 600,+ }}+ >+ Get started+ </div>+ </div>+ </div>+ );+}++export function ChatToPreviewLayout({+ chat,+ preview,+ startChatRatio = 0.5,+ endChatRatio = 0.25,+ background = "#0a0a0a",+ className,+}: ChatToPreviewLayoutProps) {+ const frame = useCurrentFrame();+ const { durationInFrames } = useVideoConfig();++ const ratio = interpolate(+ frame,+ [durationInFrames * 0.1, durationInFrames * 0.7],+ [startChatRatio, endChatRatio],+ {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.bezier(0.65, 0, 0.35, 1),+ },+ );++ const chatBasis = `${ratio * 100}%`;+ const previewBasis = `${(1 - ratio) * 100}%`;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background,+ padding: 32,+ display: "flex",+ gap: 16,+ }}+ >+ <div+ style={{+ flexBasis: chatBasis,+ flexGrow: 0,+ flexShrink: 0,+ position: "relative",+ overflow: "hidden",+ borderRadius: 16,+ border: "1px solid rgba(255,255,255,0.08)",+ }}+ >+ {chat ?? <DefaultChat />}+ </div>+ <div+ style={{+ flexBasis: previewBasis,+ flexGrow: 0,+ flexShrink: 0,+ position: "relative",+ overflow: "hidden",+ borderRadius: 16,+ border: "1px solid rgba(255,255,255,0.08)",+ }}+ >+ {preview ?? <DefaultPreview />}+ </div>+ </div>+ );+}diff --git a/registry/remocn/code-diff-wipe.tsx b/registry/remocn/code-diff-wipe.tsxnew file mode 100644index 00000000..77b684bc--- /dev/null+++ b/registry/remocn/code-diff-wipe.tsx@@ -0,0 +1,256 @@+"use client";++import { Easing, interpolate, useCurrentFrame } from "remotion";++export interface CodeDiffWipeProps {+ before?: string;+ after?: string;+ language?: string;+ background?: string;+ accent?: string;+ transitionStart?: number;+ transitionDuration?: number;+ showHandle?: boolean;+ className?: string;+}++const DEFAULT_BEFORE = `function getUser(id) {+ return fetch('/api/user/' + id)+ .then(function (res) {+ return res.json();+ })+ .then(function (data) {+ if (data.error) {+ throw new Error(data.error);+ }+ return data.user;+ });+}`;++const DEFAULT_AFTER = `async function getUser(id: string) {+ const res = await fetch(\`/api/user/\${id}\`);+ const { user, error } = await res.json();+ if (error) throw new Error(error);+ return user;+}`;++export function CodeDiffWipe({+ before = DEFAULT_BEFORE,+ after = DEFAULT_AFTER,+ language = "tsx",+ background = "#0a0a0a",+ accent = "#0ea5e9",+ transitionStart = 20,+ transitionDuration = 60,+ showHandle = true,+ className,+}: CodeDiffWipeProps) {+ const frame = useCurrentFrame();++ const progress = interpolate(+ frame,+ [transitionStart, transitionStart + transitionDuration],+ [0, 1],+ {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.cubic),+ },+ );++ const wipePercent = progress * 100;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background: "#050505",+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ }}+ >+ <div+ style={{+ position: "relative",+ width: 980,+ height: 560,+ borderRadius: 14,+ overflow: "hidden",+ background,+ boxShadow:+ "0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06)",+ }}+ >+ {/* AFTER (bottom layer) */}+ <CodePane+ code={after}+ background={background}+ label="AFTER"+ labelColor={accent}+ language={language}+ />++ {/* BEFORE (top layer, clipped) */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ clipPath: `inset(0 ${wipePercent}% 0 0)`,+ }}+ >+ <CodePane+ code={before}+ background={background}+ label="BEFORE"+ labelColor="#ef4444"+ language={language}+ dimmed+ />+ </div>++ {/* Handle */}+ {showHandle && wipePercent > 0 && wipePercent < 100 && (+ <div+ style={{+ position: "absolute",+ top: 0,+ bottom: 0,+ left: `${wipePercent}%`,+ width: 2,+ background: accent,+ transform: "translateX(-1px)",+ boxShadow: `0 0 24px ${accent}`,+ }}+ >+ <div+ style={{+ position: "absolute",+ top: "50%",+ left: "50%",+ transform: "translate(-50%, -50%)",+ width: 40,+ height: 40,+ borderRadius: "50%",+ background: accent,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ color: "#0a0a0a",+ fontSize: 18,+ fontWeight: 700,+ boxShadow: `0 0 32px ${accent}aa`,+ }}+ >+ {"<>"}+ </div>+ </div>+ )}+ </div>+ </div>+ );+}++function CodePane({+ code,+ background,+ label,+ labelColor,+ language,+ dimmed,+}: {+ code: string;+ background: string;+ label: string;+ labelColor: string;+ language: string;+ dimmed?: boolean;+}) {+ const lines = code.split("\n");+ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ background,+ display: "flex",+ flexDirection: "column",+ }}+ >+ {/* Header */}+ <div+ style={{+ height: 44,+ padding: "0 18px",+ display: "flex",+ alignItems: "center",+ justifyContent: "space-between",+ borderBottom: "1px solid rgba(255,255,255,0.06)",+ background: "rgba(255,255,255,0.02)",+ }}+ >+ <div+ style={{+ color: "#71717a",+ fontSize: 13,+ fontFamily:+ "var(--font-geist-mono), ui-monospace, SFMono-Regular, monospace",+ }}+ >+ {language}+ </div>+ <div+ style={{+ fontSize: 11,+ fontWeight: 700,+ letterSpacing: "0.12em",+ color: labelColor,+ padding: "4px 10px",+ borderRadius: 999,+ background: `${labelColor}1a`,+ border: `1px solid ${labelColor}55`,+ }}+ >+ {label}+ </div>+ </div>++ {/* Code */}+ <pre+ style={{+ flex: 1,+ margin: 0,+ padding: 24,+ color: dimmed ? "#71717a" : "#e4e4e7",+ fontSize: 16,+ lineHeight: 1.6,+ fontFamily:+ "var(--font-geist-mono), ui-monospace, SFMono-Regular, monospace",+ overflow: "hidden",+ whiteSpace: "pre",+ }}+ >+ {lines.map((line, i) => (+ <div key={i} style={{ display: "flex" }}>+ <span+ style={{+ width: 32,+ textAlign: "right",+ marginRight: 16,+ color: "#3f3f46",+ userSelect: "none",+ }}+ >+ {i + 1}+ </span>+ <span>{line || " "}</span>+ </div>+ ))}+ </pre>+ </div>+ );+}diff --git a/registry/remocn/device-mockup-zoom.tsx b/registry/remocn/device-mockup-zoom.tsxnew file mode 100644index 00000000..c462280f--- /dev/null+++ b/registry/remocn/device-mockup-zoom.tsx@@ -0,0 +1,171 @@+"use client";++import type { ReactNode } from "react";+import { Easing, interpolate, useCurrentFrame, useVideoConfig } from "remotion";++export interface DeviceMockupZoomProps {+ children?: ReactNode;+ device?: "laptop" | "phone";+ frameColor?: string;+ screenColor?: string;+ background?: string;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++function DefaultScreen() {+ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ background: "linear-gradient(135deg, #0ea5e9 0%, #9333ea 100%)",+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ color: "white",+ fontFamily: FONT_FAMILY,+ fontSize: 32,+ fontWeight: 700,+ letterSpacing: "-0.03em",+ }}+ >+ Your UI+ </div>+ );+}++export function DeviceMockupZoom({+ children,+ device = "laptop",+ frameColor = "#1f1f1f",+ screenColor = "#0a0a0a",+ background = "#fafafa",+ className,+}: DeviceMockupZoomProps) {+ const frame = useCurrentFrame();+ const { durationInFrames } = useVideoConfig();++ const scale = interpolate(frame, [0, durationInFrames], [2, 1], {+ extrapolateRight: "clamp",+ easing: Easing.bezier(0.22, 1, 0.36, 1),+ });++ const screen = children ?? <DefaultScreen />;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ overflow: "hidden",+ }}+ >+ <div+ style={{+ transform: `scale(${scale})`,+ transformOrigin: "center center",+ willChange: "transform",+ }}+ >+ {device === "laptop" ? (+ <div style={{ position: "relative" }}>+ {/* Screen body */}+ <div+ style={{+ width: 720,+ height: 440,+ background: frameColor,+ borderRadius: 16,+ padding: 16,+ boxShadow: "0 30px 80px rgba(0,0,0,0.25)",+ }}+ >+ <div+ style={{+ position: "relative",+ width: "100%",+ height: "100%",+ background: screenColor,+ borderRadius: 6,+ overflow: "hidden",+ }}+ >+ {screen}+ </div>+ </div>+ {/* Base */}+ <div+ style={{+ width: 820,+ height: 18,+ background: frameColor,+ borderBottomLeftRadius: 14,+ borderBottomRightRadius: 14,+ marginLeft: -50,+ marginTop: -2,+ boxShadow: "0 10px 24px rgba(0,0,0,0.18)",+ }}+ />+ <div+ style={{+ width: 120,+ height: 6,+ background: "#0a0a0a",+ marginLeft: "auto",+ marginRight: "auto",+ borderBottomLeftRadius: 8,+ borderBottomRightRadius: 8,+ marginTop: -1,+ }}+ />+ </div>+ ) : (+ <div+ style={{+ width: 280,+ height: 560,+ background: frameColor,+ borderRadius: 44,+ padding: 14,+ boxShadow: "0 30px 80px rgba(0,0,0,0.25)",+ position: "relative",+ }}+ >+ <div+ style={{+ position: "relative",+ width: "100%",+ height: "100%",+ background: screenColor,+ borderRadius: 32,+ overflow: "hidden",+ }}+ >+ {screen}+ </div>+ <div+ style={{+ position: "absolute",+ top: 22,+ left: "50%",+ transform: "translateX(-50%)",+ width: 90,+ height: 22,+ background: "#0a0a0a",+ borderRadius: 14,+ }}+ />+ </div>+ )}+ </div>+ </div>+ );+}diff --git a/registry/remocn/directional-wipe.tsx b/registry/remocn/directional-wipe.tsxnew file mode 100644index 00000000..4666bfeb--- /dev/null+++ b/registry/remocn/directional-wipe.tsx@@ -0,0 +1,114 @@+"use client";++import type { ReactNode } from "react";+import { Easing, interpolate, useCurrentFrame, useVideoConfig } from "remotion";++export interface DirectionalWipeProps {+ from?: ReactNode;+ to?: ReactNode;+ direction?: "left" | "right" | "up" | "down";+ transitionStart?: number;+ transitionDuration?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++function DefaultPanel({ label, color }: { label: string; color: string }) {+ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ background: color,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ color: "white",+ fontFamily: FONT_FAMILY,+ fontSize: 96,+ fontWeight: 700,+ letterSpacing: "-0.05em",+ }}+ >+ {label}+ </div>+ );+}++export function DirectionalWipe({+ from,+ to,+ direction = "left",+ transitionStart,+ transitionDuration = 20,+ className,+}: DirectionalWipeProps) {+ const frame = useCurrentFrame();+ const { durationInFrames } = useVideoConfig();++ const start =+ typeof transitionStart === "number"+ ? transitionStart+ : Math.floor(durationInFrames * 0.4);++ const progress = interpolate(+ frame,+ [start, start + transitionDuration],+ [0, 1],+ {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.bezier(0.65, 0, 0.35, 1),+ },+ );++ const axis: "x" | "y" =+ direction === "left" || direction === "right" ? "x" : "y";+ const sign = direction === "left" || direction === "up" ? -1 : 1;++ const fromOffset = progress * 100 * sign;+ const toOffset = (1 - progress) * 100 * -sign;++ const transformFor = (offset: number) =>+ axis === "x"+ ? `translateX(${offset}%)`+ : `translateY(${offset}%)`;++ const fromContent = from ?? <DefaultPanel label="Scene A" color="#0ea5e9" />;+ const toContent = to ?? <DefaultPanel label="Scene B" color="#9333ea" />;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ overflow: "hidden",+ background: "black",+ }}+ >+ <div+ style={{+ position: "absolute",+ inset: 0,+ transform: transformFor(fromOffset),+ willChange: "transform",+ }}+ >+ {fromContent}+ </div>+ <div+ style={{+ position: "absolute",+ inset: 0,+ transform: transformFor(toOffset),+ willChange: "transform",+ }}+ >+ {toContent}+ </div>+ </div>+ );+}diff --git a/registry/remocn/drag-and-drop-flow.tsx b/registry/remocn/drag-and-drop-flow.tsxnew file mode 100644index 00000000..6ab0631d--- /dev/null+++ b/registry/remocn/drag-and-drop-flow.tsx@@ -0,0 +1,199 @@+"use client";++import {+ Easing,+ interpolate,+ interpolateColors,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";++export interface DragAndDropFlowProps {+ accent?: string;+ dropzoneLabel?: string;+ fileName?: string;+ background?: string;+ className?: string;+}++function FileIcon({ color }: { color: string }) {+ return (+ <svg width="44" height="56" viewBox="0 0 44 56" fill="none">+ <path+ d="M6 4a4 4 0 014-4h18l12 12v40a4 4 0 01-4 4H10a4 4 0 01-4-4V4z"+ fill="white"+ stroke={color}+ strokeWidth="2"+ />+ <path d="M28 0v8a4 4 0 004 4h8" stroke={color} strokeWidth="2" fill="none" />+ <rect x="12" y="22" width="20" height="2" rx="1" fill={color} opacity="0.5" />+ <rect x="12" y="28" width="16" height="2" rx="1" fill={color} opacity="0.5" />+ <rect x="12" y="34" width="18" height="2" rx="1" fill={color} opacity="0.5" />+ </svg>+ );+}++export function DragAndDropFlow({+ accent = "#0ea5e9",+ dropzoneLabel = "Drop file to upload",+ fileName = "design.fig",+ background = "#fafafa",+ className,+}: DragAndDropFlowProps) {+ const frame = useCurrentFrame();+ const { durationInFrames } = useVideoConfig();++ // Phase split+ const dragEnd = Math.round(durationInFrames * 0.45);+ const highlightEnd = Math.round(durationInFrames * 0.55);+ const progressEnd = durationInFrames;++ // Phase 1: file moves from start to center of dropzone+ const dragProgress = interpolate(frame, [0, dragEnd], [0, 1], {+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.cubic),+ });++ const startX = -220;+ const startY = -120;+ const fileX = interpolate(dragProgress, [0, 1], [startX, 0]);+ const fileY = interpolate(dragProgress, [0, 1], [startY, 0]);++ // Phase 2: dropzone border highlights as file approaches+ const borderColor = interpolateColors(+ frame,+ [dragEnd - 10, highlightEnd],+ ["#d4d4d8", accent],+ );++ // Phase 3: file fades, progress bar grows+ const fileOpacity = interpolate(+ frame,+ [highlightEnd - 4, highlightEnd + 8],+ [1, 0],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );++ const progressOpacity = interpolate(+ frame,+ [highlightEnd, highlightEnd + 6],+ [0, 1],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );++ const progress = interpolate(+ frame,+ [highlightEnd, progressEnd - 4],+ [0, 100],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );++ const dropzoneWidth = 420;+ const dropzoneHeight = 260;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ }}+ >+ <div+ style={{+ position: "relative",+ width: dropzoneWidth,+ height: dropzoneHeight,+ borderRadius: 18,+ border: `2.5px dashed ${borderColor}`,+ background: "white",+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ flexDirection: "column",+ gap: 14,+ color: "#71717a",+ fontSize: 16,+ fontWeight: 500,+ transition: "none",+ }}+ >+ <svg width="36" height="36" viewBox="0 0 24 24" fill="none">+ <path+ d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"+ stroke={borderColor}+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ <span>{dropzoneLabel}</span>++ {/* Progress bar (after drop) */}+ <div+ style={{+ position: "absolute",+ left: 32,+ right: 32,+ bottom: 32,+ opacity: progressOpacity,+ display: "flex",+ flexDirection: "column",+ gap: 8,+ }}+ >+ <div+ style={{+ display: "flex",+ justifyContent: "space-between",+ fontSize: 13,+ color: "#52525b",+ }}+ >+ <span>{fileName}</span>+ <span>{Math.round(progress)}%</span>+ </div>+ <div+ style={{+ height: 6,+ borderRadius: 999,+ background: "#e4e4e7",+ overflow: "hidden",+ }}+ >+ <div+ style={{+ width: `${progress}%`,+ height: "100%",+ background: accent,+ borderRadius: 999,+ }}+ />+ </div>+ </div>+ </div>++ {/* Animated file icon that moves into the dropzone */}+ <div+ style={{+ position: "absolute",+ left: "50%",+ top: "50%",+ marginLeft: -22,+ marginTop: -28,+ transform: `translate(${fileX}px, ${fileY}px)`,+ opacity: fileOpacity,+ filter: "drop-shadow(0 8px 16px rgba(0,0,0,0.15))",+ }}+ >+ <FileIcon color={accent} />+ </div>+ </div>+ );+}diff --git a/registry/remocn/dynamic-grid.tsx b/registry/remocn/dynamic-grid.tsxnew file mode 100644index 00000000..548f0d39--- /dev/null+++ b/registry/remocn/dynamic-grid.tsx@@ -0,0 +1,62 @@+"use client";++import { useCurrentFrame } from "remotion";++export interface DynamicGridProps {+ cellSize?: number;+ lineColor?: string;+ background?: string;+ speed?: number;+ direction?: "diagonal" | "horizontal" | "vertical";+ className?: string;+}++export function DynamicGrid({+ cellSize = 40,+ lineColor = "#27272a",+ background = "#0a0a0a",+ speed = 0.5,+ direction = "diagonal",+ className,+}: DynamicGridProps) {+ const frame = useCurrentFrame();++ const offset = (frame * speed) % cellSize;++ let tx = 0;+ let ty = 0;+ if (direction === "horizontal") {+ tx = offset;+ } else if (direction === "vertical") {+ ty = offset;+ } else {+ tx = offset;+ ty = offset;+ }++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background,+ overflow: "hidden",+ }}+ >+ <div+ style={{+ position: "absolute",+ inset: `-${cellSize}px`,+ backgroundImage: `+ linear-gradient(to right, ${lineColor} 1px, transparent 1px),+ linear-gradient(to bottom, ${lineColor} 1px, transparent 1px)+ `,+ backgroundSize: `${cellSize}px ${cellSize}px`,+ transform: `translate(${tx}px, ${ty}px)`,+ willChange: "transform",+ }}+ />+ </div>+ );+}diff --git a/registry/remocn/inline-highlight.tsx b/registry/remocn/inline-highlight.tsxnew file mode 100644index 00000000..1d812045--- /dev/null+++ b/registry/remocn/inline-highlight.tsx@@ -0,0 +1,71 @@+"use client";++import {+ interpolate,+ interpolateColors,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";++export interface InlineHighlightProps {+ before: string;+ highlight: string;+ after?: string;+ baseColor?: string;+ highlightColor?: string;+ fontSize?: number;+ fontWeight?: number;+ className?: string;+}++export function InlineHighlight({+ before,+ highlight,+ after = "",+ baseColor = "#171717",+ highlightColor = "#ff5e3a",+ fontSize = 48,+ fontWeight = 600,+ className,+}: InlineHighlightProps) {+ const frame = useCurrentFrame();+ const { durationInFrames } = useVideoConfig();++ const progress = interpolate(+ frame,+ [durationInFrames * 0.2, durationInFrames * 0.7],+ [0, 1],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );++ const color = interpolateColors(progress, [0, 1], [baseColor, highlightColor]);++ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background: "white",+ }}+ >+ <span+ className={className}+ style={{+ fontSize,+ fontWeight,+ color: baseColor,+ letterSpacing: "-0.03em",+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ }}+ >+ {before}+ <span style={{ color }}>{highlight}</span>+ {after}+ </span>+ </div>+ );+}diff --git a/registry/remocn/mesh-gradient-bg.tsx b/registry/remocn/mesh-gradient-bg.tsxnew file mode 100644index 00000000..ba45ebb2--- /dev/null+++ b/registry/remocn/mesh-gradient-bg.tsx@@ -0,0 +1,89 @@+"use client";++import { useCurrentFrame, useVideoConfig } from "remotion";++export interface MeshGradientBgProps {+ colors?: string[];+ speed?: number;+ background?: string;+ blur?: number;+ className?: string;+}++export function MeshGradientBg({+ colors = ["#ff0080", "#7928ca", "#00d4ff", "#ffb800"],+ speed = 1,+ background = "#0a0a0a",+ blur = 80,+ className,+}: MeshGradientBgProps) {+ const frame = useCurrentFrame();+ const { fps } = useVideoConfig();++ const isDark = isColorDark(background);+ const blendMode: "screen" | "multiply" = isDark ? "screen" : "multiply";++ // One full cycle every (2 / speed) seconds — fps-independent.+ const t = (frame / fps) * speed;++ const blobs = colors.map((color, i) => {+ const phase = i * 1.7;+ const sx = Math.sin(t * Math.PI + phase);+ const cy = Math.cos(t * Math.PI * 1.3 + phase);+ const sx2 = Math.sin(t * Math.PI * 0.7 * (2 / 3) + phase * 0.5);++ const left = 50 + sx * 25;+ const top = 50 + cy * 25;+ const scale = 1 + sx2 * 0.2;++ return { color, left, top, scale, key: `blob-${i}` };+ });++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background,+ overflow: "hidden",+ }}+ >+ {blobs.map((b) => (+ <div+ key={b.key}+ style={{+ position: "absolute",+ left: `${b.left}%`,+ top: `${b.top}%`,+ width: "55%",+ height: "55%",+ borderRadius: "50%",+ background: `radial-gradient(circle, ${b.color} 0%, ${b.color}00 70%)`,+ filter: `blur(${blur}px)`,+ mixBlendMode: blendMode,+ transform: `translate(-50%, -50%) scale(${b.scale})`,+ willChange: "transform",+ }}+ />+ ))}+ </div>+ );+}++function isColorDark(hex: string): boolean {+ const m = hex.replace("#", "");+ if (m.length !== 6 && m.length !== 3) return true;+ const full =+ m.length === 3+ ? m+ .split("")+ .map((c) => c + c)+ .join("")+ : m;+ const r = parseInt(full.slice(0, 2), 16);+ const g = parseInt(full.slice(2, 4), 16);+ const b = parseInt(full.slice(4, 6), 16);+ const luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255;+ return luminance < 0.5;+}diff --git a/registry/remocn/progress-steps.tsx b/registry/remocn/progress-steps.tsxnew file mode 100644index 00000000..be64ce96--- /dev/null+++ b/registry/remocn/progress-steps.tsx@@ -0,0 +1,207 @@+"use client";++import {+ interpolate,+ interpolateColors,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";++export interface ProgressStepsProps {+ steps?: Array<{ label: string }>;+ orientation?: "horizontal" | "vertical";+ activeColor?: string;+ inactiveColor?: string;+ background?: string;+ textColor?: string;+ stepDuration?: number;+ className?: string;+}++export function ProgressSteps({+ steps = [{ label: "Connect" }, { label: "Process" }, { label: "Deploy" }],+ orientation = "horizontal",+ activeColor = "#22c55e",+ inactiveColor = "#27272a",+ background = "#0a0a0a",+ textColor = "white",+ stepDuration = 30,+ className,+}: ProgressStepsProps) {+ const frame = useCurrentFrame();+ const { fps } = useVideoConfig();++ const isHorizontal = orientation === "horizontal";+ const trackLength = isHorizontal ? 920 : 520;+ const segmentLength = trackLength / Math.max(steps.length - 1, 1);+ const nodeRadius = 22;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ }}+ >+ <div+ style={{+ position: "relative",+ display: "flex",+ flexDirection: isHorizontal ? "row" : "column",+ alignItems: "center",+ justifyContent: "center",+ gap: 0,+ }}+ >+ {/* SVG layer for connecting lines */}+ <svg+ style={{+ position: "absolute",+ left: isHorizontal ? nodeRadius : "50%",+ top: isHorizontal ? "50%" : nodeRadius,+ transform: isHorizontal+ ? "translateY(-50%)"+ : "translateX(-50%)",+ overflow: "visible",+ pointerEvents: "none",+ }}+ width={isHorizontal ? trackLength : 4}+ height={isHorizontal ? 4 : trackLength}+ >+ {steps.slice(0, -1).map((_, i) => {+ const lineStart = (i + 1) * stepDuration;+ const fillProgress = interpolate(+ frame,+ [lineStart, lineStart + stepDuration],+ [segmentLength, 0],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );+ return (+ <line+ key={i}+ x1={isHorizontal ? i * segmentLength : 2}+ y1={isHorizontal ? 2 : i * segmentLength}+ x2={isHorizontal ? (i + 1) * segmentLength : 2}+ y2={isHorizontal ? 2 : (i + 1) * segmentLength}+ stroke={activeColor}+ strokeWidth={4}+ strokeLinecap="round"+ strokeDasharray={segmentLength}+ strokeDashoffset={fillProgress}+ />+ );+ })}+ {/* Background track */}+ {steps.slice(0, -1).map((_, i) => (+ <line+ key={`bg-${i}`}+ x1={isHorizontal ? i * segmentLength : 2}+ y1={isHorizontal ? 2 : i * segmentLength}+ x2={isHorizontal ? (i + 1) * segmentLength : 2}+ y2={isHorizontal ? 2 : (i + 1) * segmentLength}+ stroke={inactiveColor}+ strokeWidth={4}+ strokeLinecap="round"+ style={{ opacity: 0.6 }}+ />+ ))}+ </svg>++ {steps.map((step, i) => {+ const activateAt = i * stepDuration;+ const localFrame = frame - activateAt;+ const popScale = spring({+ frame: localFrame,+ fps,+ config: { damping: 10, stiffness: 180, mass: 0.6 },+ });+ const scale = interpolate(popScale, [0, 1], [0.8, 1]);+ const fill = interpolateColors(+ frame,+ [activateAt, activateAt + 8],+ [inactiveColor, activeColor],+ );+ const showCheck = interpolate(+ frame,+ [activateAt + 6, activateAt + 14],+ [0, 1],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );++ return (+ <div+ key={i}+ style={{+ position: "relative",+ display: "flex",+ flexDirection: isHorizontal ? "column" : "row",+ alignItems: "center",+ gap: 14,+ width: isHorizontal ? segmentLength : "auto",+ height: isHorizontal ? "auto" : segmentLength,+ marginRight:+ isHorizontal && i === steps.length - 1 ? 0 : -segmentLength,+ marginBottom:+ !isHorizontal && i === steps.length - 1 ? 0 : -segmentLength,+ zIndex: 2,+ }}+ >+ <div+ style={{+ width: nodeRadius * 2,+ height: nodeRadius * 2,+ borderRadius: 999,+ background: fill,+ border: `2px solid ${activeColor}`,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ transform: `scale(${scale})`,+ transformOrigin: "center",+ boxShadow: `0 0 0 6px ${activeColor}1a`,+ }}+ >+ <svg+ width="20"+ height="20"+ viewBox="0 0 24 24"+ fill="none"+ style={{ opacity: showCheck }}+ >+ <path+ d="M5 12.5l4.5 4.5L19 7"+ stroke="white"+ strokeWidth="3"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ </div>+ <span+ style={{+ fontSize: 15,+ fontWeight: 500,+ color: textColor,+ letterSpacing: "-0.01em",+ whiteSpace: "nowrap",+ position: isHorizontal ? "absolute" : "static",+ top: isHorizontal ? nodeRadius * 2 + 14 : undefined,+ }}+ >+ {step.label}+ </span>+ </div>+ );+ })}+ </div>+ </div>+ );+}diff --git a/registry/remocn/pulsing-indicator.tsx b/registry/remocn/pulsing-indicator.tsxnew file mode 100644index 00000000..390cc60e--- /dev/null+++ b/registry/remocn/pulsing-indicator.tsx@@ -0,0 +1,81 @@+"use client";++import { useCurrentFrame } from "remotion";++export interface PulsingIndicatorProps {+ color?: string;+ size?: number;+ speed?: number;+ background?: string;+ className?: string;+}++export function PulsingIndicator({+ color = "#22c55e",+ size = 16,+ speed = 8,+ background = "white",+ className,+}: PulsingIndicatorProps) {+ const frame = useCurrentFrame();++ // Inner dot pulse: 0..1 normalized+ const wave = Math.sin(frame / speed) * 0.5 + 0.5;+ const dotScale = 0.9 + wave * 0.2;+ const dotOpacity = 0.6 + wave * 0.4;++ // Outer ring "ping": phase from 0..1 looping+ const period = speed * Math.PI * 2;+ const phase = (frame % period) / period;+ const ringScale = 1 + phase * 1.6;+ const ringOpacity = (1 - phase) * 0.7;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background,+ }}+ >+ <div+ style={{+ position: "relative",+ width: size,+ height: size,+ }}+ >+ {/* Ping ring */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ borderRadius: "50%",+ background: color,+ opacity: ringOpacity,+ transform: `scale(${ringScale})`,+ transformOrigin: "center",+ willChange: "transform, opacity",+ }}+ />+ {/* Solid dot */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ borderRadius: "50%",+ background: color,+ opacity: dotOpacity,+ transform: `scale(${dotScale})`,+ transformOrigin: "center",+ willChange: "transform, opacity",+ }}+ />+ </div>+ </div>+ );+}diff --git a/registry/remocn/simulated-cursor.tsx b/registry/remocn/simulated-cursor.tsxnew file mode 100644index 00000000..9fc60ce8--- /dev/null+++ b/registry/remocn/simulated-cursor.tsx@@ -0,0 +1,190 @@+"use client";++import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";++export interface CursorPoint {+ x: number;+ y: number;+ hold?: number;+ click?: boolean;+}++export interface SimulatedCursorProps {+ points?: CursorPoint[];+ color?: string;+ size?: number;+ background?: string;+ className?: string;+}++const DEFAULT_POINTS: CursorPoint[] = [+ { x: 200, y: 150, hold: 20 },+ { x: 800, y: 360, hold: 25, click: true },+ { x: 1050, y: 560, hold: 20 },+];++export function SimulatedCursor({+ points = DEFAULT_POINTS,+ color = "#ffffff",+ size = 32,+ background = "#0a0a0a",+ className,+}: SimulatedCursorProps) {+ const frame = useCurrentFrame();+ const { fps, durationInFrames } = useVideoConfig();++ const travelPerLeg = 24;+ const segments: Array<{+ start: number;+ end: number;+ holdEnd: number;+ from: CursorPoint;+ to: CursorPoint;+ }> = [];++ let cursor = 0;+ for (let i = 0; i < points.length - 1; i++) {+ const from = points[i];+ const to = points[i + 1];+ const start = cursor;+ const end = start + travelPerLeg;+ const holdEnd = end + (to.hold ?? 15);+ segments.push({ start, end, holdEnd, from, to });+ cursor = holdEnd;+ }++ // Find current segment+ let x = points[0].x;+ let y = points[0].y;+ let activeClickFrame: number | null = null;+ let clickTarget: CursorPoint | null = null;++ if (segments.length === 0) {+ x = points[0].x;+ y = points[0].y;+ } else if (frame < segments[0].start + (points[0].hold ?? 0)) {+ x = points[0].x;+ y = points[0].y;+ } else {+ for (const seg of segments) {+ if (frame >= seg.start && frame < seg.holdEnd) {+ if (frame < seg.end) {+ // travelling+ x = interpolate(frame, [seg.start, seg.end], [seg.from.x, seg.to.x], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ y = interpolate(frame, [seg.start, seg.end], [seg.from.y, seg.to.y], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ } else {+ x = seg.to.x;+ y = seg.to.y;+ if (seg.to.click) {+ activeClickFrame = frame - seg.end;+ clickTarget = seg.to;+ }+ }+ break;+ }+ if (frame >= seg.holdEnd) {+ x = seg.to.x;+ y = seg.to.y;+ }+ }+ }++ // Click feedback+ let clickScale = 1;+ let rippleRadius = 0;+ let rippleOpacity = 0;+ if (activeClickFrame !== null && clickTarget) {+ const dip = spring({+ fps,+ frame: activeClickFrame,+ config: { damping: 10, stiffness: 200, mass: 0.6 },+ durationInFrames: 14,+ });+ clickScale = 1 - dip * 0.18;+ rippleRadius = interpolate(activeClickFrame, [0, 24], [4, 60], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ rippleOpacity = interpolate(activeClickFrame, [0, 24], [0.6, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ }++ // Suppress unused warning when durationInFrames not used directly+ void durationInFrames;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background,+ overflow: "hidden",+ }}+ >+ {/* Click ripple */}+ {rippleOpacity > 0 && (+ <svg+ style={{+ position: "absolute",+ left: x - 80,+ top: y - 80,+ width: 160,+ height: 160,+ pointerEvents: "none",+ }}+ >+ <circle+ cx={80}+ cy={80}+ r={rippleRadius}+ fill="none"+ stroke={color}+ strokeWidth={2}+ opacity={rippleOpacity}+ />+ </svg>+ )}++ {/* Cursor */}+ <div+ style={{+ position: "absolute",+ left: x,+ top: y,+ width: size,+ height: size,+ transform: `scale(${clickScale})`,+ transformOrigin: "top left",+ zIndex: 2147483647,+ pointerEvents: "none",+ willChange: "transform, left, top",+ }}+ >+ <svg+ width={size}+ height={size}+ viewBox="0 0 24 24"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ d="M5 3L5 19L9.5 14.5L12.5 21L15 20L12 13.5L18.5 13.5L5 3Z"+ fill={color}+ stroke="#000000"+ strokeWidth={1.2}+ strokeLinejoin="round"+ />+ </svg>+ </div>+ </div>+ );+}diff --git a/registry/remocn/spring-pop-in.tsx b/registry/remocn/spring-pop-in.tsxnew file mode 100644index 00000000..ad7491ff--- /dev/null+++ b/registry/remocn/spring-pop-in.tsx@@ -0,0 +1,86 @@+"use client";++import type { ReactNode } from "react";+import { spring, useCurrentFrame, useVideoConfig } from "remotion";++export interface SpringPopInProps {+ children?: ReactNode;+ damping?: number;+ mass?: number;+ stiffness?: number;+ delayInFrames?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++function DefaultChild() {+ return (+ <div+ style={{+ width: 280,+ height: 280,+ borderRadius: 32,+ background: "linear-gradient(135deg, #0ea5e9 0%, #9333ea 100%)",+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ color: "white",+ fontFamily: FONT_FAMILY,+ fontSize: 56,+ fontWeight: 700,+ letterSpacing: "-0.04em",+ boxShadow: "0 30px 80px rgba(14,165,233,0.35)",+ }}+ >+ Pop!+ </div>+ );+}++export function SpringPopIn({+ children,+ damping = 12,+ mass = 1,+ stiffness = 100,+ delayInFrames = 0,+ className,+}: SpringPopInProps) {+ const frame = useCurrentFrame();+ const { fps } = useVideoConfig();++ const scale = spring({+ fps,+ frame: frame - delayInFrames,+ config: {+ damping,+ mass,+ stiffness,+ },+ });++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background: "white",+ }}+ >+ <div+ style={{+ transform: `scale(${scale})`,+ transformOrigin: "center",+ willChange: "transform",+ }}+ >+ {children ?? <DefaultChild />}+ </div>+ </div>+ );+}diff --git a/registry/remocn/staggered-bento-grid.tsx b/registry/remocn/staggered-bento-grid.tsxnew file mode 100644index 00000000..6a08b71d--- /dev/null+++ b/registry/remocn/staggered-bento-grid.tsx@@ -0,0 +1,146 @@+"use client";++import {+ Sequence,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";++export interface BentoItem {+ title: string;+ body?: string;+ span?: 1 | 2;+}++export interface StaggeredBentoGridProps {+ items?: BentoItem[];+ staggerDelay?: number;+ columns?: number;+ background?: string;+ cardColor?: string;+ textColor?: string;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++const DEFAULT_ITEMS: BentoItem[] = [+ { title: "Fast", body: "Built on Remotion", span: 2 },+ { title: "Animated", body: "Spring physics" },+ { title: "Composable", body: "Drop-in blocks" },+ { title: "Themed", body: "Tailwind ready" },+ { title: "Open", body: "MIT licensed", span: 2 },+];++function Card({+ item,+ cardColor,+ textColor,+}: {+ item: BentoItem;+ cardColor: string;+ textColor: string;+}) {+ const frame = useCurrentFrame();+ const { fps } = useVideoConfig();++ const progress = spring({+ frame,+ fps,+ durationInFrames: Math.round(0.6 * fps),+ config: { damping: 12 },+ });++ return (+ <div+ style={{+ gridColumn: `span ${item.span ?? 1}`,+ background: cardColor,+ borderRadius: 16,+ padding: 24,+ opacity: progress,+ transform: `scale(${0.85 + progress * 0.15})`,+ transformOrigin: "center center",+ willChange: "transform, opacity",+ display: "flex",+ flexDirection: "column",+ justifyContent: "flex-end",+ minHeight: 140,+ border: "1px solid rgba(255,255,255,0.08)",+ }}+ >+ <div+ style={{+ color: textColor,+ fontFamily: FONT_FAMILY,+ fontSize: 28,+ fontWeight: 700,+ letterSpacing: "-0.03em",+ marginBottom: 4,+ }}+ >+ {item.title}+ </div>+ {item.body ? (+ <div+ style={{+ color: textColor,+ opacity: 0.6,+ fontFamily: FONT_FAMILY,+ fontSize: 16,+ fontWeight: 400,+ }}+ >+ {item.body}+ </div>+ ) : null}+ </div>+ );+}++export function StaggeredBentoGrid({+ items = DEFAULT_ITEMS,+ staggerDelay = 8,+ columns = 3,+ background = "#0a0a0a",+ cardColor = "#1a1a1a",+ textColor = "white",+ className,+}: StaggeredBentoGridProps) {+ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background,+ padding: 64,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ }}+ >+ <div+ style={{+ display: "grid",+ gridTemplateColumns: `repeat(${columns}, 1fr)`,+ gap: 20,+ width: "100%",+ maxWidth: 1100,+ }}+ >+ {items.map((item, index) => (+ <Sequence+ key={index}+ from={index * staggerDelay}+ layout="none"+ >+ <Card item={item} cardColor={cardColor} textColor={textColor} />+ </Sequence>+ ))}+ </div>+ </div>+ );+}diff --git a/registry/remocn/strikethrough-replace.tsx b/registry/remocn/strikethrough-replace.tsxnew file mode 100644index 00000000..6440492e--- /dev/null+++ b/registry/remocn/strikethrough-replace.tsx@@ -0,0 +1,122 @@+"use client";++import { interpolate, useCurrentFrame, useVideoConfig } from "remotion";++export interface StrikethroughReplaceProps {+ from: string;+ to: string;+ lineColor?: string;+ fontSize?: number;+ color?: string;+ fontWeight?: number;+ className?: string;+}++export function StrikethroughReplace({+ from,+ to,+ lineColor = "#ff5e3a",+ fontSize = 48,+ color = "#171717",+ fontWeight = 600,+ className,+}: StrikethroughReplaceProps) {+ const frame = useCurrentFrame();+ const { durationInFrames } = useVideoConfig();++ // Phases:+ // 0 .. 40% -> draw strikethrough across `from`+ // 40% .. 60% -> fade out `from`, fade in `to`+ // 60% .. 100% -> hold+ const strikeEnd = durationInFrames * 0.4;+ const fadeStart = durationInFrames * 0.4;+ const fadeEnd = durationInFrames * 0.6;++ const linePct = interpolate(frame, [0, strikeEnd], [0, 100], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ const fromOpacity = interpolate(frame, [fadeStart, fadeEnd], [1, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ const toOpacity = interpolate(frame, [fadeStart, fadeEnd], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const toY = interpolate(frame, [fadeStart, fadeEnd], [8, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ const textStyle: React.CSSProperties = {+ fontSize,+ fontWeight,+ color,+ letterSpacing: "-0.03em",+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ whiteSpace: "nowrap",+ };++ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background: "white",+ }}+ >+ <div+ style={{+ position: "relative",+ display: "inline-flex",+ alignItems: "center",+ justifyContent: "center",+ }}+ >+ {/* from text with strikethrough line */}+ <span+ className={className}+ style={{+ ...textStyle,+ position: "absolute",+ opacity: fromOpacity,+ }}+ >+ {from}+ <span+ aria-hidden+ style={{+ position: "absolute",+ left: 0,+ top: "50%",+ height: Math.max(2, Math.round(fontSize * 0.08)),+ width: `${linePct}%`,+ background: lineColor,+ transform: "translateY(-50%)",+ borderRadius: 2,+ }}+ />+ </span>++ {/* to text */}+ <span+ className={className}+ style={{+ ...textStyle,+ opacity: toOpacity,+ transform: `translateY(${toY}px)`,+ }}+ >+ {to}+ </span>+ </div>+ </div>+ );+}diff --git a/registry/remocn/success-confetti.tsx b/registry/remocn/success-confetti.tsxnew file mode 100644index 00000000..67e58d39--- /dev/null+++ b/registry/remocn/success-confetti.tsx@@ -0,0 +1,174 @@+"use client";++import {+ interpolate,+ random,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";++export interface SuccessConfettiProps {+ count?: number;+ colors?: string[];+ originX?: number;+ originY?: number;+ gravity?: number;+ velocity?: number;+ text?: string;+ textColor?: string;+ background?: string;+ seed?: string;+ className?: string;+}++export function SuccessConfetti({+ count = 60,+ colors = ["#ff5e3a", "#22c55e", "#0ea5e9", "#facc15", "#a855f7"],+ originX = 0.5,+ originY = 0.5,+ gravity = 0.4,+ velocity = 12,+ text = "Merged!",+ textColor = "#171717",+ background = "#fafafa",+ seed = "remocn",+ className,+}: SuccessConfettiProps) {+ const frame = useCurrentFrame();+ const { fps, durationInFrames } = useVideoConfig();++ const width = 1280;+ const height = 720;+ const cx = width * originX;+ const cy = height * originY;++ const textPop = spring({+ frame: frame - 4,+ fps,+ config: { damping: 9, stiffness: 160, mass: 0.7 },+ });+ const textScale = interpolate(textPop, [0, 1], [0.6, 1]);+ const textOpacity = interpolate(frame, [4, 14], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const textExit = interpolate(+ frame,+ [durationInFrames - 12, durationInFrames],+ [1, 0],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );++ const particles = Array.from({ length: count }, (_, i) => {+ const seedKey = `${seed}:${i}`;+ const angle =+ random(`${seedKey}:angle`) * Math.PI * 2; // 0..2pi for full burst+ const speed = velocity * (0.6 + random(`${seedKey}:speed`) * 0.8);+ const colorIndex = Math.floor(+ random(`${seedKey}:color`) * colors.length,+ );+ const color = colors[colorIndex] ?? colors[0];+ const size = 6 + random(`${seedKey}:size`) * 8;+ const rotationSpeed = (random(`${seedKey}:rot`) - 0.5) * 16;+ const initialRotation = random(`${seedKey}:irot`) * 360;+ const isCircle = random(`${seedKey}:shape`) > 0.6;+ const lifeOffset = Math.floor(random(`${seedKey}:delay`) * 4);++ const f = Math.max(0, frame - lifeOffset);+ const x = cx + Math.cos(angle) * speed * f;+ const y =+ cy + Math.sin(angle) * speed * f + 0.5 * gravity * f * f;+ const rotation = initialRotation + rotationSpeed * f;++ const opacity = interpolate(+ frame,+ [0, 4, durationInFrames - 20, durationInFrames],+ [0, 1, 1, 0],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );++ return {+ x,+ y,+ rotation,+ color,+ size,+ isCircle,+ opacity,+ key: i,+ };+ });++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background,+ overflow: "hidden",+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ }}+ >+ <svg+ width={width}+ height={height}+ viewBox={`0 0 ${width} ${height}`}+ style={{ position: "absolute", inset: 0 }}+ >+ {particles.map((p) =>+ p.isCircle ? (+ <circle+ key={p.key}+ cx={p.x}+ cy={p.y}+ r={p.size / 2}+ fill={p.color}+ opacity={p.opacity}+ />+ ) : (+ <rect+ key={p.key}+ x={-p.size / 2}+ y={-p.size / 2}+ width={p.size}+ height={p.size * 0.5}+ rx={1}+ fill={p.color}+ opacity={p.opacity}+ transform={`translate(${p.x} ${p.y}) rotate(${p.rotation})`}+ />+ ),+ )}+ </svg>++ {text ? (+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ pointerEvents: "none",+ }}+ >+ <span+ style={{+ fontSize: 96,+ fontWeight: 700,+ letterSpacing: "-0.04em",+ color: textColor,+ transform: `scale(${textScale})`,+ opacity: Math.min(textOpacity, textExit),+ }}+ >+ {text}+ </span>+ </div>+ ) : null}+ </div>+ );+}diff --git a/registry/remocn/terminal-simulator.tsx b/registry/remocn/terminal-simulator.tsxnew file mode 100644index 00000000..628c0849--- /dev/null+++ b/registry/remocn/terminal-simulator.tsx@@ -0,0 +1,267 @@+"use client";++import {+ Easing,+ interpolate,+ Sequence,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";++export type TerminalLineType = "command" | "log" | "success" | "error";++export interface TerminalLine {+ text: string;+ type: TerminalLineType;+ delay?: number;+}++export interface TerminalSimulatorProps {+ lines?: TerminalLine[];+ prompt?: string;+ title?: string;+ background?: string;+ chromeColor?: string;+ fontSize?: number;+ charsPerFrame?: number;+ className?: string;+}++const DEFAULT_LINES: TerminalLine[] = [+ { text: "npm run build", type: "command", delay: 0 },+ { text: "> [email protected] build", type: "log", delay: 8 },+ { text: "> next build", type: "log", delay: 4 },+ { text: "Compiled successfully in 4.2s", type: "success", delay: 18 },+ { text: "Generating static pages (24/24)", type: "log", delay: 12 },+ { text: "Build completed without errors", type: "success", delay: 14 },+];++const TYPE_COLORS: Record<TerminalLineType, string> = {+ command: "#fafafa",+ log: "#a1a1aa",+ success: "#22c55e",+ error: "#ef4444",+};++export function TerminalSimulator({+ lines = DEFAULT_LINES,+ prompt = "$",+ title = "~/projects/remocn",+ background = "#0a0a0a",+ chromeColor = "#1a1a1a",+ fontSize = 18,+ charsPerFrame = 1,+ className,+}: TerminalSimulatorProps) {+ const frame = useCurrentFrame();+ const { fps } = useVideoConfig();++ const lineHeight = Math.round(fontSize * 1.6);+ const visibleLines = 8;+ const windowWidth = 900;+ const windowHeight = 480;+ const contentHeight = windowHeight - 60;++ // Compute cumulative start frames for each line+ const starts: number[] = [];+ let acc = 10;+ for (let i = 0; i < lines.length; i++) {+ const delay = lines[i].delay ?? 8;+ acc += delay;+ starts.push(acc);+ // Approximate typing duration so next line offsets after typing+ acc += Math.ceil(lines[i].text.length / charsPerFrame);+ }++ // Smooth scroll: each overflowing line eases the buffer up by one line over+ // ~0.25s, instead of snapping. Deterministic — pure function of frame.+ const scrollDuration = Math.max(1, Math.round(0.25 * fps));+ let translateY = 0;+ for (let i = visibleLines; i < lines.length; i++) {+ const t = interpolate(+ frame,+ [starts[i], starts[i] + scrollDuration],+ [0, 1],+ {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.cubic),+ },+ );+ translateY -= t * lineHeight;+ }++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background: "#050505",+ }}+ >+ <div+ style={{+ width: windowWidth,+ height: windowHeight,+ background,+ borderRadius: 12,+ overflow: "hidden",+ boxShadow:+ "0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06)",+ display: "flex",+ flexDirection: "column",+ fontFamily:+ "var(--font-geist-mono), ui-monospace, SFMono-Regular, monospace",+ }}+ >+ {/* Chrome */}+ <div+ style={{+ height: 40,+ background: chromeColor,+ display: "flex",+ alignItems: "center",+ padding: "0 16px",+ gap: 8,+ borderBottom: "1px solid rgba(255,255,255,0.06)",+ }}+ >+ <div+ style={{+ width: 12,+ height: 12,+ borderRadius: "50%",+ background: "#ff5f57",+ }}+ />+ <div+ style={{+ width: 12,+ height: 12,+ borderRadius: "50%",+ background: "#febc2e",+ }}+ />+ <div+ style={{+ width: 12,+ height: 12,+ borderRadius: "50%",+ background: "#28c840",+ }}+ />+ <div+ style={{+ flex: 1,+ textAlign: "center",+ color: "#71717a",+ fontSize: 13,+ }}+ >+ {title}+ </div>+ </div>++ {/* Content */}+ <div+ style={{+ flex: 1,+ padding: 20,+ overflow: "hidden",+ position: "relative",+ }}+ >+ <div+ style={{+ position: "absolute",+ left: 20,+ right: 20,+ top: 20,+ transform: `translateY(${translateY}px)`,+ transition: "none",+ }}+ >+ {lines.map((line, index) => (+ <Sequence+ key={index}+ from={starts[index]}+ layout="none"+ >+ <TerminalLineRow+ line={line}+ prompt={prompt}+ fontSize={fontSize}+ lineHeight={lineHeight}+ charsPerFrame={charsPerFrame}+ fps={fps}+ />+ </Sequence>+ ))}+ </div>+ </div>+ </div>+ </div>+ );+}++function TerminalLineRow({+ line,+ prompt,+ fontSize,+ lineHeight,+ charsPerFrame,+ fps,+}: {+ line: TerminalLine;+ prompt: string;+ fontSize: number;+ lineHeight: number;+ charsPerFrame: number;+ fps: number;+}) {+ const localFrame = useCurrentFrame();+ const totalChars = line.text.length;+ const revealed = Math.floor(+ interpolate(localFrame, [0, totalChars / charsPerFrame], [0, totalChars], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ }),+ );+ const visible = line.text.substring(0, revealed);+ const typingDone = revealed >= totalChars;+ // 2 Hz blink at any framerate.+ const cursorVisible = Math.floor((localFrame / fps) * 2) % 2 === 0;++ return (+ <div+ style={{+ height: lineHeight,+ fontSize,+ color: TYPE_COLORS[line.type],+ display: "flex",+ alignItems: "center",+ whiteSpace: "pre",+ }}+ >+ {line.type === "command" && (+ <span style={{ color: "#22c55e", marginRight: 8 }}>{prompt}</span>+ )}+ <span>{visible}</span>+ {!typingDone && cursorVisible && (+ <span+ style={{+ display: "inline-block",+ width: fontSize * 0.55,+ height: fontSize,+ background: TYPE_COLORS[line.type],+ marginLeft: 2,+ }}+ />+ )}+ </div>+ );+}diff --git a/registry/remocn/text-fade-replace.tsx b/registry/remocn/text-fade-replace.tsxnew file mode 100644index 00000000..13979dc5--- /dev/null+++ b/registry/remocn/text-fade-replace.tsx@@ -0,0 +1,98 @@+"use client";++import { interpolate, useCurrentFrame, useVideoConfig } from "remotion";++export interface TextFadeReplaceProps {+ from: string;+ to: string;+ fontSize?: number;+ color?: string;+ fontWeight?: number;+ className?: string;+}++export function TextFadeReplace({+ from,+ to,+ fontSize = 48,+ color = "#171717",+ fontWeight = 600,+ className,+}: TextFadeReplaceProps) {+ const frame = useCurrentFrame();+ const { durationInFrames } = useVideoConfig();++ const stops = [+ 0,+ durationInFrames * 0.4,+ durationInFrames * 0.6,+ durationInFrames,+ ];++ const fromOpacity = interpolate(frame, stops, [1, 1, 0, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const fromY = interpolate(frame, stops, [0, 0, -12, -12], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ const toOpacity = interpolate(frame, stops, [0, 0, 1, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const toY = interpolate(frame, stops, [12, 12, 0, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ const baseSpanStyle: React.CSSProperties = {+ position: "absolute",+ left: "50%",+ top: "50%",+ fontSize,+ fontWeight,+ color,+ letterSpacing: "-0.03em",+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ whiteSpace: "nowrap",+ };++ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background: "white",+ }}+ >+ <div style={{ position: "relative", width: 0, height: 0 }}>+ <span+ className={className}+ style={{+ ...baseSpanStyle,+ opacity: fromOpacity,+ transform: `translate(-50%, calc(-50% + ${fromY}px))`,+ }}+ >+ {from}+ </span>+ <span+ className={className}+ style={{+ ...baseSpanStyle,+ opacity: toOpacity,+ transform: `translate(-50%, calc(-50% + ${toY}px))`,+ }}+ >+ {to}+ </span>+ </div>+ </div>+ );+}diff --git a/registry/remocn/toast-notification.tsx b/registry/remocn/toast-notification.tsxnew file mode 100644index 00000000..04a3dfa9--- /dev/null+++ b/registry/remocn/toast-notification.tsx@@ -0,0 +1,184 @@+"use client";++import {+ interpolate,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";++export type ToastVariant = "success" | "error" | "info" | "warning";++export interface ToastNotificationProps {+ title?: string;+ message?: string;+ variant?: ToastVariant;+ background?: string;+ cardColor?: string;+ textColor?: string;+ mutedColor?: string;+ className?: string;+}++const VARIANT_COLORS: Record<ToastVariant, string> = {+ success: "#22c55e",+ error: "#ef4444",+ info: "#0ea5e9",+ warning: "#f59e0b",+};++function VariantIcon({ variant, color }: { variant: ToastVariant; color: string }) {+ const common = {+ width: 22,+ height: 22,+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: color,+ strokeWidth: 2.4,+ strokeLinecap: "round" as const,+ strokeLinejoin: "round" as const,+ };++ if (variant === "success") {+ return (+ <svg {...common}>+ <circle cx="12" cy="12" r="10" />+ <path d="M8 12.5l2.8 2.8L16 9.8" />+ </svg>+ );+ }+ if (variant === "error") {+ return (+ <svg {...common}>+ <circle cx="12" cy="12" r="10" />+ <path d="M15 9l-6 6M9 9l6 6" />+ </svg>+ );+ }+ if (variant === "warning") {+ return (+ <svg {...common}>+ <path d="M12 3l10 18H2L12 3z" />+ <path d="M12 10v5M12 18v.01" />+ </svg>+ );+ }+ return (+ <svg {...common}>+ <circle cx="12" cy="12" r="10" />+ <path d="M12 8v.01M12 12v5" />+ </svg>+ );+}++export function ToastNotification({+ title = "Deployment successful",+ message = "Your changes are live at remocn.dev",+ variant = "success",+ background = "#fafafa",+ cardColor = "white",+ textColor = "#171717",+ mutedColor = "#71717a",+ className,+}: ToastNotificationProps) {+ const frame = useCurrentFrame();+ const { fps, durationInFrames } = useVideoConfig();++ const enterFrames = 15;+ const exitFrames = 15;+ const exitStart = Math.max(enterFrames, durationInFrames - exitFrames);++ const enterProgress = spring({+ frame,+ fps,+ config: { damping: 14, stiffness: 140, mass: 0.7 },+ durationInFrames: enterFrames,+ });++ const enterTranslate = interpolate(enterProgress, [0, 1], [40, 0]);+ const enterOpacity = interpolate(enterProgress, [0, 1], [0, 1], {+ extrapolateRight: "clamp",+ });++ const exitTranslate = interpolate(+ frame,+ [exitStart, exitStart + exitFrames],+ [0, 40],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );+ const exitOpacity = interpolate(+ frame,+ [exitStart, exitStart + exitFrames],+ [1, 0],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );++ const translateY = enterTranslate + exitTranslate;+ const opacity = Math.min(enterOpacity, exitOpacity);++ const accent = VARIANT_COLORS[variant];++ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ background,+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ }}+ >+ <div+ className={className}+ style={{+ position: "absolute",+ right: 32,+ bottom: 32,+ transform: `translateY(${translateY}px)`,+ opacity,+ display: "flex",+ alignItems: "flex-start",+ gap: 14,+ padding: "16px 20px",+ minWidth: 320,+ maxWidth: 420,+ background: cardColor,+ borderRadius: 14,+ boxShadow:+ "0 10px 30px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06)",+ border: "1px solid rgba(0,0,0,0.06)",+ }}+ >+ <div+ style={{+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ width: 36,+ height: 36,+ borderRadius: 999,+ background: `${accent}1f`,+ flexShrink: 0,+ }}+ >+ <VariantIcon variant={variant} color={accent} />+ </div>+ <div style={{ display: "flex", flexDirection: "column", gap: 2 }}>+ <span+ style={{+ fontSize: 16,+ fontWeight: 600,+ color: textColor,+ letterSpacing: "-0.01em",+ }}+ >+ {title}+ </span>+ <span style={{ fontSize: 14, color: mutedColor, lineHeight: 1.4 }}>+ {message}+ </span>+ </div>+ </div>+ </div>+ );+}diff --git a/registry/remocn/typewriter.tsx b/registry/remocn/typewriter.tsxnew file mode 100644index 00000000..bfdeafe1--- /dev/null+++ b/registry/remocn/typewriter.tsx@@ -0,0 +1,81 @@+"use client";++import { interpolate, useCurrentFrame, useVideoConfig } from "remotion";++export interface TypewriterProps {+ text: string;+ cursor?: boolean;+ speed?: number;+ fontSize?: number;+ color?: string;+ cursorColor?: string;+ fontWeight?: number;+ className?: string;+}++export function Typewriter({+ text,+ cursor = true,+ speed = 20,+ fontSize = 48,+ color = "#171717",+ cursorColor = "#171717",+ fontWeight = 600,+ className,+}: TypewriterProps) {+ const frame = useCurrentFrame();+ const { fps } = useVideoConfig();++ const charsToRevealOver = (text.length / speed) * fps;++ const revealed = Math.floor(+ interpolate(frame, [0, charsToRevealOver], [0, text.length], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ }),+ );++ const visibleText = text.substring(0, revealed);+ const isCursorVisible = Math.floor((frame / fps) * 2) % 2 === 0;++ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background: "white",+ }}+ >+ <span+ className={className}+ style={{+ fontSize,+ fontWeight,+ color,+ letterSpacing: "-0.03em",+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ whiteSpace: "pre",+ }}+ >+ {visibleText}+ {cursor && (+ <span+ style={{+ display: "inline-block",+ width: "0.08em",+ height: "1em",+ marginLeft: "0.04em",+ verticalAlign: "text-bottom",+ background: cursorColor,+ opacity: isCursorVisible ? 1 : 0,+ }}+ />+ )}+ </span>+ </div>+ );+}diff --git a/registry/remocn/zoom-through-transition.tsx b/registry/remocn/zoom-through-transition.tsxnew file mode 100644index 00000000..378b5be6--- /dev/null+++ b/registry/remocn/zoom-through-transition.tsx@@ -0,0 +1,95 @@+"use client";++import type { ReactNode } from "react";+import { Easing, interpolate, useCurrentFrame, useVideoConfig } from "remotion";++export interface ZoomThroughTransitionProps {+ children?: ReactNode;+ targetScale?: number;+ transformOrigin?: string;+ background?: string;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++function DefaultContent() {+ return (+ <div+ style={{+ width: 320,+ height: 200,+ borderRadius: 24,+ background: "linear-gradient(135deg, #0ea5e9 0%, #9333ea 100%)",+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ color: "white",+ fontFamily: FONT_FAMILY,+ fontSize: 48,+ fontWeight: 700,+ letterSpacing: "-0.03em",+ boxShadow: "0 20px 60px rgba(14,165,233,0.35)",+ }}+ >+ Zoom+ </div>+ );+}++export function ZoomThroughTransition({+ children,+ targetScale = 20,+ transformOrigin = "center center",+ background = "white",+ className,+}: ZoomThroughTransitionProps) {+ const frame = useCurrentFrame();+ const { durationInFrames } = useVideoConfig();++ const scale = interpolate(+ frame,+ [0, durationInFrames],+ [1, targetScale],+ {+ extrapolateRight: "clamp",+ easing: Easing.bezier(0.7, 0, 0.84, 0),+ },+ );++ const opacity = interpolate(+ frame,+ [0, durationInFrames * 0.7, durationInFrames],+ [1, 1, 0],+ { extrapolateRight: "clamp" },+ );++ const content = children ?? <DefaultContent />;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ overflow: "hidden",+ }}+ >+ <div+ style={{+ transform: `scale(${scale})`,+ transformOrigin,+ opacity,+ willChange: "transform, opacity",+ }}+ >+ {content}+ </div>+ </div>+ );+}