Skip to content

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

feat: landing v1

dev_wandry1e0d1f908c14
diff --git a/app/(home)/layout.tsx b/app/(home)/layout.tsx
index 9f7ad512..7c0096da 100644
--- a/app/(home)/layout.tsx
+++ b/app/(home)/layout.tsx
@@ -1,7 +1,5 @@
-import { HomeLayout } from "fumadocs-ui/layouts/home";
import type { ReactNode } from "react";
-import { baseOptions } from "@/lib/layout.shared";
export default function Layout({ children }: { children: ReactNode }) {
- return <HomeLayout {...baseOptions()}>{children}</HomeLayout>;
+ return <>{children}</>;
}
diff --git a/app/(home)/page.tsx b/app/(home)/page.tsx
index 3f36f7c5..b0e66301 100644
--- a/app/(home)/page.tsx
+++ b/app/(home)/page.tsx
@@ -1,64 +1,754 @@
-import Image from "next/image";
+"use client";
-export default function Home() {
+import { Player, type PlayerRef } from "@remotion/player";
+import { DynamicCodeBlock } from "fumadocs-ui/components/dynamic-codeblock";
+import { ArrowRight, Check, Copy } from "lucide-react";
+import Link from "next/link";
+import {
+ type CSSProperties,
+ type ReactNode,
+ useEffect,
+ useRef,
+ useState,
+} from "react";
+import registry from "@/registry/__index__";
+
+/* -------------------------------------------------------------------------- */
+/* Reusable utilities */
+/* -------------------------------------------------------------------------- */
+
+const APPLE_EASE = "cubic-bezier(0.16, 1, 0.3, 1)";
+
+function useInViewReveal<T extends HTMLElement>(threshold = 0.15) {
+ const ref = useRef<T>(null);
+ const [shown, setShown] = useState(false);
+ useEffect(() => {
+ const node = ref.current;
+ if (!node) return;
+ const io = new IntersectionObserver(
+ (entries) => {
+ for (const e of entries) {
+ if (e.isIntersecting) {
+ setShown(true);
+ io.disconnect();
+ break;
+ }
+ }
+ },
+ { threshold },
+ );
+ io.observe(node);
+ return () => io.disconnect();
+ }, [threshold]);
+ return { ref, shown };
+}
+
+function Reveal({
+ children,
+ delay = 0,
+ className = "",
+}: {
+ children: ReactNode;
+ delay?: number;
+ className?: string;
+}) {
+ const { ref, shown } = useInViewReveal<HTMLDivElement>();
return (
- <div className="flex flex-col flex-1 items-center justify-center bg-zinc-50 font-sans dark:bg-black">
- <main className="flex flex-1 w-full max-w-3xl flex-col items-center justify-between py-32 px-16 bg-white dark:bg-black sm:items-start">
- <Image
- className="dark:invert"
- src="/next.svg"
- alt="Next.js logo"
- width={100}
- height={20}
- priority
- />
- <div className="flex flex-col items-center gap-6 text-center sm:items-start sm:text-left">
- <h1 className="max-w-xs text-3xl font-semibold leading-10 tracking-tight text-black dark:text-zinc-50">
- To get started, edit the page.tsx file.
- </h1>
- <p className="max-w-md text-lg leading-8 text-zinc-600 dark:text-zinc-400">
- Looking for a starting point or more instructions? Head over to{" "}
- <a
- href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
- className="font-medium text-zinc-950 dark:text-zinc-50"
- >
- Templates
- </a>{" "}
- or the{" "}
- <a
- href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
- className="font-medium text-zinc-950 dark:text-zinc-50"
- >
- Learning
- </a>{" "}
- center.
- </p>
- </div>
- <div className="flex flex-col gap-4 text-base font-medium sm:flex-row">
- <a
- className="flex h-12 w-full items-center justify-center gap-2 rounded-full bg-foreground px-5 text-background transition-colors hover:bg-[#383838] dark:hover:bg-[#ccc] md:w-[158px]"
- href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
+ <div
+ ref={ref}
+ className={className}
+ style={{
+ opacity: shown ? 1 : 0,
+ transform: shown ? "translateY(0)" : "translateY(20px)",
+ transition: `opacity 800ms ${APPLE_EASE} ${delay}ms, transform 800ms ${APPLE_EASE} ${delay}ms`,
+ }}
+ >
+ {children}
+ </div>
+ );
+}
+
+function MacWindow({
+ children,
+ className = "",
+ style,
+}: {
+ children: ReactNode;
+ className?: string;
+ style?: CSSProperties;
+}) {
+ return (
+ <div
+ className={`relative overflow-hidden rounded-xl bg-[#0A0A0A] shadow-[0_40px_120px_-20px_rgba(0,0,0,0.9),0_0_0_1px_rgba(255,255,255,0.06)_inset] ${className}`}
+ style={style}
+ >
+ <div className="flex h-9 items-center gap-1.5 border-b border-white/5 bg-[#0A0A0A] px-4">
+ <span className="size-2.5 rounded-full bg-[#ff5f57]/60" />
+ <span className="size-2.5 rounded-full bg-[#febc2e]/60" />
+ <span className="size-2.5 rounded-full bg-[#28c840]/60" />
+ </div>
+ {children}
+ </div>
+ );
+}
+
+function NoiseOverlay() {
+ // Inline SVG turbulence — kills color banding on the void-black background.
+ const svg = `<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>`;
+ const url = `url("data:image/svg+xml;utf8,${svg}")`;
+ return (
+ <div
+ aria-hidden
+ className="pointer-events-none fixed inset-0 z-50"
+ style={{
+ backgroundImage: url,
+ opacity: 0.035,
+ mixBlendMode: "overlay",
+ }}
+ />
+ );
+}
+
+/* -------------------------------------------------------------------------- */
+/* Sections */
+/* -------------------------------------------------------------------------- */
+
+function Header() {
+ return (
+ <header className="fixed inset-x-0 top-0 z-40">
+ <div
+ className="absolute inset-x-0 bottom-0 h-px bg-white/10"
+ style={{
+ maskImage:
+ "linear-gradient(to right, transparent, black 20%, black 80%, transparent)",
+ WebkitMaskImage:
+ "linear-gradient(to right, transparent, black 20%, black 80%, transparent)",
+ }}
+ />
+ <div className="mx-auto flex h-14 max-w-6xl items-center justify-between px-6 backdrop-blur-md">
+ <Link
+ href="/"
+ className="font-semibold tracking-[-0.02em] text-[#EDEDED]"
+ >
+ remocn
+ </Link>
+ <nav className="flex items-center gap-6 text-sm text-[#888]">
+ <Link
+ href="/docs"
+ className="transition-colors duration-75 hover:text-white"
+ >
+ Docs
+ </Link>
+ <Link
+ href="https://github.com/remocn/remocn"
target="_blank"
- rel="noopener noreferrer"
+ rel="noreferrer"
+ className="flex items-center gap-1.5 transition-colors duration-75 hover:text-white"
>
- <Image
- className="dark:invert"
- src="/vercel.svg"
- alt="Vercel logomark"
- width={16}
- height={16}
- />
- Deploy Now
- </a>
+ <svg
+ viewBox="0 0 24 24"
+ className="size-4"
+ fill="currentColor"
+ role="img"
+ aria-label="GitHub"
+ >
+ <title>GitHub</title>
+ <path d="M12 .5C5.65.5.5 5.65.5 12c0 5.08 3.29 9.39 7.86 10.91.58.11.79-.25.79-.56 0-.27-.01-1-.02-1.96-3.2.69-3.87-1.54-3.87-1.54-.52-1.33-1.28-1.69-1.28-1.69-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.03 1.77 2.7 1.26 3.36.96.1-.75.4-1.26.73-1.55-2.55-.29-5.24-1.28-5.24-5.71 0-1.26.45-2.29 1.19-3.1-.12-.29-.52-1.47.11-3.06 0 0 .97-.31 3.18 1.18a11 11 0 0 1 5.79 0c2.21-1.49 3.18-1.18 3.18-1.18.63 1.59.23 2.77.11 3.06.74.81 1.19 1.84 1.19 3.1 0 4.44-2.7 5.41-5.27 5.7.41.36.78 1.06.78 2.14 0 1.55-.01 2.8-.01 3.18 0 .31.21.68.8.56C20.21 21.39 23.5 17.08 23.5 12 23.5 5.65 18.35.5 12 .5Z" />
+ </svg>
+ GitHub
+ </Link>
+ </nav>
+ </div>
+ </header>
+ );
+}
+
+function Hero() {
+ const heroEntry = registry["hero-device-assemble"];
+ const [copied, setCopied] = useState(false);
+ const cmd = "npx shadcn add remocn/hero-device-assemble";
+
+ const copy = () => {
+ navigator.clipboard?.writeText(cmd);
+ setCopied(true);
+ setTimeout(() => setCopied(false), 1500);
+ };
+
+ return (
+ <section className="relative px-6 pt-40 pb-24">
+ <div className="mx-auto flex max-w-5xl flex-col items-center text-center">
+ <Reveal>
<a
- className="flex h-12 w-full items-center justify-center rounded-full border border-solid border-black/[.08] px-5 transition-colors hover:border-transparent hover:bg-black/[.04] dark:border-white/[.145] dark:hover:bg-[#1a1a1a] md:w-[158px]"
- href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
- target="_blank"
- rel="noopener noreferrer"
+ href="/docs"
+ className="inline-flex items-center gap-2 rounded-full border border-white/10 bg-white/[0.02] px-3 py-1 font-mono text-xs text-[#888] shadow-[0_0_24px_rgba(94,106,210,0.15)_inset] transition-colors hover:text-white"
>
- Documentation
+ <span className="size-1.5 rounded-full bg-[#5E6AD2] shadow-[0_0_8px_#5E6AD2]" />
+ v1.0 is live
+ <ArrowRight className="size-3" />
</a>
+ </Reveal>
+
+ <Reveal delay={80}>
+ <h1 className="mt-8 max-w-4xl text-balance text-5xl font-semibold leading-[1.05] tracking-[-0.04em] text-[#EDEDED] md:text-7xl">
+ Cinematic{" "}
+ <span className="bg-gradient-to-b from-white to-white/50 bg-clip-text text-transparent">
+ video components
+ </span>{" "}
+ for React developers.
+ </h1>
+ </Reveal>
+
+ <Reveal delay={160}>
+ <p className="mt-6 max-w-2xl text-balance text-lg font-light leading-relaxed text-[#888]">
+ Build launch videos, changelogs, and product demos using code. Copy,
+ paste, and render in Remotion. Free &amp; open source.
+ </p>
+ </Reveal>
+
+ <Reveal delay={240}>
+ <div className="mt-10 flex flex-col items-center gap-3 sm:flex-row">
+ <Link
+ href="/docs"
+ className="inline-flex h-11 items-center gap-2 rounded-full bg-white px-5 text-sm font-medium text-black transition-transform duration-75 hover:scale-[1.02] active:scale-[0.99]"
+ >
+ Browse components
+ <ArrowRight className="size-4" />
+ </Link>
+ <button
+ type="button"
+ onClick={copy}
+ className="group inline-flex h-11 items-center gap-3 rounded-full border border-white/10 bg-white/[0.02] px-4 font-mono text-sm text-[#888] transition-colors duration-75 hover:border-white/20 hover:text-white"
+ >
+ <span className="text-[#5E6AD2]">$</span>
+ <span>{cmd}</span>
+ {copied ? (
+ <Check className="size-3.5 text-emerald-400" />
+ ) : (
+ <Copy className="size-3.5 opacity-60 group-hover:opacity-100" />
+ )}
+ </button>
+ </div>
+ </Reveal>
+
+ <Reveal delay={320} className="w-full">
+ <div className="relative mt-20 w-full">
+ <div
+ aria-hidden
+ className="absolute inset-0 -z-0"
+ style={{
+ background:
+ "radial-gradient(circle at center, rgba(94,106,210,0.18) 0%, rgba(157,78,221,0.06) 30%, transparent 60%)",
+ filter: "blur(10px)",
+ }}
+ />
+ <MacWindow className="relative mx-auto max-w-4xl">
+ <div className="aspect-video w-full bg-black">
+ {heroEntry ? (
+ <Player
+ component={heroEntry.Component}
+ inputProps={{ accentColor: "#5E6AD2" }}
+ durationInFrames={heroEntry.config.durationInFrames}
+ fps={heroEntry.config.fps}
+ compositionWidth={heroEntry.config.compositionWidth}
+ compositionHeight={heroEntry.config.compositionHeight}
+ style={{ width: "100%", height: "100%" }}
+ autoPlay
+ loop
+ acknowledgeRemotionLicense
+ />
+ ) : null}
+ </div>
+ </MacWindow>
+ </div>
+ </Reveal>
+ </div>
+ </section>
+ );
+}
+
+function DXShowcase() {
+ const sample = `import { StaggeredFadeUp } from "@/components/remocn/staggered-fade-up";
+import { AbsoluteFill } from "remotion";
+
+export default function Scene() {
+ return (
+ <AbsoluteFill style={{ background: "#0A0A0A" }}>
+ <StaggeredFadeUp
+ text="Ship faster with remocn"
+ fontSize={88}
+ color="#EDEDED"
+ staggerDelay={4}
+ />
+ </AbsoluteFill>
+ );
+}`;
+
+ const entry = registry["staggered-fade-up"];
+
+ return (
+ <section className="relative border-t border-white/[0.04] px-6 py-32">
+ <div className="mx-auto max-w-6xl">
+ <Reveal>
+ <div className="mb-16 max-w-2xl">
+ <h2 className="text-4xl font-semibold tracking-[-0.03em] text-[#EDEDED] md:text-5xl">
+ Code on the left.
+ <br />
+ <span className="text-[#666]">Pixels on the right.</span>
+ </h2>
+ <p className="mt-4 text-[#888]">
+ Every component is just React. No timeline editor. No magic.
+ </p>
+ </div>
+ </Reveal>
+
+ <Reveal delay={120}>
+ <div className="relative grid overflow-hidden rounded-2xl border border-white/[0.08] bg-[#0A0A0A] lg:grid-cols-2">
+ {/* Code side */}
+ <div className="relative">
+ <div className="flex items-center gap-1 border-b border-white/[0.06] px-4 py-2">
+ <span className="rounded-md bg-white/[0.04] px-2.5 py-1 font-mono text-[11px] text-[#EDEDED]">
+ page.tsx
+ </span>
+ <span className="rounded-md px-2.5 py-1 font-mono text-[11px] text-[#666]">
+ Terminal
+ </span>
+ </div>
+ <div className="not-prose [&_pre]:!m-0 [&_pre]:!rounded-none [&_pre]:!border-0 [&_pre]:!bg-transparent [&_pre]:!p-6 [&_pre]:!text-[13px]">
+ <DynamicCodeBlock lang="tsx" code={sample} />
+ </div>
+ </div>
+
+ {/* Vertical laser-cut divider */}
+ <div
+ aria-hidden
+ className="pointer-events-none absolute inset-y-0 left-1/2 hidden w-px lg:block"
+ style={{
+ background:
+ "linear-gradient(to bottom, transparent, rgba(255,255,255,0.12) 20%, rgba(255,255,255,0.12) 80%, transparent)",
+ }}
+ />
+
+ {/* Preview side */}
+ <div className="flex items-center justify-center border-t border-white/[0.06] bg-black p-6 lg:border-l-0 lg:border-t-0">
+ <div className="aspect-video w-full overflow-hidden rounded-lg">
+ {entry ? (
+ <Player
+ component={entry.Component}
+ inputProps={{
+ text: "Ship faster with remocn",
+ fontSize: 88,
+ color: "#EDEDED",
+ staggerDelay: 4,
+ distance: 20,
+ fontWeight: "600",
+ }}
+ durationInFrames={entry.config.durationInFrames}
+ fps={entry.config.fps}
+ compositionWidth={entry.config.compositionWidth}
+ compositionHeight={entry.config.compositionHeight}
+ style={{ width: "100%", height: "100%" }}
+ autoPlay
+ loop
+ acknowledgeRemotionLicense
+ />
+ ) : null}
+ </div>
+ </div>
+ </div>
+ </Reveal>
+ </div>
+ </section>
+ );
+}
+
+function BentoCard({
+ name,
+ title,
+ description,
+ className = "",
+ inputProps,
+}: {
+ name: string;
+ title: string;
+ description: string;
+ className?: string;
+ inputProps?: Record<string, unknown>;
+}) {
+ const entry = registry[name];
+ const playerRef = useRef<PlayerRef>(null);
+
+ const handleEnter = () => {
+ playerRef.current?.play();
+ };
+ const handleLeave = () => {
+ playerRef.current?.pause();
+ };
+
+ return (
+ // biome-ignore lint/a11y/noStaticElementInteractions: hover-to-play is decorative video preview, no semantic action
+ <div
+ onMouseEnter={handleEnter}
+ onMouseLeave={handleLeave}
+ className={`group relative overflow-hidden rounded-2xl border border-white/[0.08] bg-[#0A0A0A] ${className}`}
+ >
+ {/* Spotlight overlay (driven by parent --mx/--my) */}
+ <div
+ aria-hidden
+ className="pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100"
+ style={{
+ background:
+ "radial-gradient(600px circle at var(--mx) var(--my), rgba(255,255,255,0.08), transparent 40%)",
+ }}
+ />
+ {/* Border highlight */}
+ <div
+ aria-hidden
+ className="pointer-events-none absolute inset-0 rounded-2xl"
+ style={{
+ background:
+ "radial-gradient(400px circle at var(--mx) var(--my), rgba(94,106,210,0.4), transparent 50%)",
+ WebkitMask:
+ "linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",
+ WebkitMaskComposite: "xor",
+ mask: "linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",
+ maskComposite: "exclude",
+ padding: 1,
+ }}
+ />
+
+ <div className="relative aspect-[16/9] w-full overflow-hidden bg-black">
+ {entry ? (
+ <Player
+ ref={playerRef}
+ component={entry.Component}
+ inputProps={inputProps ?? {}}
+ durationInFrames={entry.config.durationInFrames}
+ fps={entry.config.fps}
+ compositionWidth={entry.config.compositionWidth}
+ compositionHeight={entry.config.compositionHeight}
+ style={{ width: "100%", height: "100%" }}
+ loop
+ acknowledgeRemotionLicense
+ />
+ ) : null}
+ </div>
+ <div className="relative p-6">
+ <h3 className="text-base font-medium text-[#EDEDED]">{title}</h3>
+ <p className="mt-1 text-sm text-[#888]">{description}</p>
+ </div>
+ </div>
+ );
+}
+
+function BentoRegistry() {
+ const gridRef = useRef<HTMLDivElement>(null);
+
+ const handleMove = (e: React.MouseEvent<HTMLDivElement>) => {
+ const rect = gridRef.current?.getBoundingClientRect();
+ if (!rect) return;
+ gridRef.current?.style.setProperty("--mx", `${e.clientX - rect.left}px`);
+ gridRef.current?.style.setProperty("--my", `${e.clientY - rect.top}px`);
+ };
+
+ return (
+ <section className="relative px-6 py-32">
+ <div className="mx-auto max-w-6xl">
+ <Reveal>
+ <div className="mb-16 max-w-2xl">
+ <h2 className="text-4xl font-semibold tracking-[-0.03em] text-[#EDEDED] md:text-5xl">
+ A registry of motion.
+ </h2>
+ <p className="mt-4 text-[#888]">
+ Transitions, primitives, text reveals — production-ready and
+ hover-to-play.
+ </p>
+ </div>
+ </Reveal>
+
+ <Reveal delay={120}>
+ {/* biome-ignore lint/a11y/noStaticElementInteractions: spotlight cursor tracking is purely visual */}
+ <div
+ ref={gridRef}
+ onMouseMove={handleMove}
+ className="grid gap-4 md:grid-cols-3 md:grid-rows-2"
+ style={
+ {
+ "--mx": "50%",
+ "--my": "50%",
+ } as CSSProperties
+ }
+ >
+ <BentoCard
+ name="ai-generation-canvas"
+ title="AI Generation Canvas"
+ description="From prompt to UI in a single composition."
+ className="md:col-span-2 md:row-span-2"
+ />
+ <BentoCard
+ name="shimmer-sweep"
+ title="Shimmer Sweep"
+ description="Light pass across text for AI accents."
+ inputProps={{ text: "Generating..." }}
+ />
+ <BentoCard
+ name="ecosystem-constellation"
+ title="Ecosystem Constellation"
+ description="Orbits of integration logos around your brand."
+ />
+ </div>
+ </Reveal>
+
+ <Reveal delay={200}>
+ <div className="mt-4 grid gap-4 md:grid-cols-2">
+ <BentoCard
+ name="kinetic-type-mask"
+ title="Kinetic Type Mask"
+ description="Use giant type as a window into the next scene."
+ />
+ <BentoCard
+ name="frosted-glass-wipe"
+ title="Frosted Glass Wipe"
+ description="An elegant transition through a sheet of glass."
+ />
+ </div>
+ </Reveal>
+ </div>
+ </section>
+ );
+}
+
+function UseCases() {
+ const cases = [
+ {
+ title: "Launch videos",
+ copy: "Ship to Product Hunt with a masterpiece. Wire components, render once, post.",
+ glow: "rgba(59, 130, 246, 0.18)",
+ hint: (
+ <svg
+ viewBox="0 0 200 80"
+ className="h-20 w-48 text-blue-400/40"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="1.5"
+ role="img"
+ aria-label="Trend chart"
+ >
+ <title>Trend chart</title>
+ <path d="M0 60 L40 40 L80 50 L120 20 L160 35 L200 10" />
+ <circle cx="120" cy="20" r="3" fill="currentColor" />
+ </svg>
+ ),
+ },
+ {
+ title: "Changelogs",
+ copy: "Turn boring release notes into viral tweets. One commit, one composition.",
+ glow: "rgba(16, 185, 129, 0.18)",
+ hint: (
+ <div className="flex flex-col items-end gap-1.5 font-mono text-[10px] text-emerald-400/40">
+ <div className="rounded border border-current px-2 py-0.5">
+ v1.4.0
+ </div>
+ <div className="rounded border border-current/60 px-2 py-0.5">
+ v1.3.2
+ </div>
+ <div className="rounded border border-current/40 px-2 py-0.5">
+ v1.3.1
+ </div>
+ </div>
+ ),
+ },
+ {
+ title: "Documentation",
+ copy: "Explain complex workflows visually. A 12-second clip beats a thousand words.",
+ glow: "rgba(239, 68, 68, 0.18)",
+ hint: (
+ <svg
+ viewBox="0 0 160 80"
+ className="h-20 w-44 text-red-400/40"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="1.5"
+ role="img"
+ aria-label="Workflow diagram"
+ >
+ <title>Workflow diagram</title>
+ <rect x="2" y="20" width="40" height="40" rx="4" />
+ <rect x="60" y="20" width="40" height="40" rx="4" />
+ <rect x="118" y="20" width="40" height="40" rx="4" />
+ <path d="M42 40 L60 40 M100 40 L118 40" />
+ </svg>
+ ),
+ },
+ ];
+
+ return (
+ <section className="relative border-t border-white/[0.04] px-6 py-32">
+ <div className="mx-auto max-w-5xl">
+ <Reveal>
+ <div className="mb-16 max-w-2xl">
+ <h2 className="text-4xl font-semibold tracking-[-0.03em] text-[#EDEDED] md:text-5xl">
+ Use cases.
+ </h2>
+ <p className="mt-4 text-[#888]">Three jobs remocn was built for.</p>
+ </div>
+ </Reveal>
+
+ <div className="flex flex-col gap-4">
+ {cases.map((c, i) => (
+ <Reveal key={c.title} delay={i * 80}>
+ <article
+ className="group relative flex items-center justify-between overflow-hidden rounded-2xl border border-white/[0.08] bg-[#0A0A0A] p-10"
+ style={{
+ boxShadow: `inset -240px 0 220px -120px ${c.glow}`,
+ }}
+ >
+ <div className="max-w-md">
+ <h3 className="text-2xl font-semibold tracking-[-0.02em] text-[#EDEDED]">
+ {c.title}
+ </h3>
+ <p className="mt-2 text-[#888]">{c.copy}</p>
+ </div>
+ <div className="hidden md:block">{c.hint}</div>
+ </article>
+ </Reveal>
+ ))}
+ </div>
+ </div>
+ </section>
+ );
+}
+
+const STACK_ITEMS = [
+ "Remotion",
+ "React",
+ "Next.js",
+ "Tailwind",
+ "TypeScript",
+ "shadcn/ui",
+ "Framer Motion",
+ "Vercel",
+];
+
+function TechStack() {
+ return (
+ <section className="relative border-t border-white/[0.04] py-24">
+ <Reveal>
+ <p className="text-center font-mono text-xs uppercase tracking-[0.2em] text-[#666]">
+ Powered by the best
+ </p>
+ </Reveal>
+
+ <div
+ className="relative mt-10 overflow-hidden"
+ style={{
+ maskImage:
+ "linear-gradient(to right, transparent, black 15%, black 85%, transparent)",
+ WebkitMaskImage:
+ "linear-gradient(to right, transparent, black 15%, black 85%, transparent)",
+ }}
+ >
+ <div className="flex w-max animate-[remocn-marquee_30s_linear_infinite] gap-16">
+ {[...STACK_ITEMS, ...STACK_ITEMS, ...STACK_ITEMS].map((item, i) => (
+ <span
+ // biome-ignore lint/suspicious/noArrayIndexKey: marquee duplication
+ key={i}
+ className="whitespace-nowrap text-2xl font-medium tracking-[-0.02em] text-white/30"
+ >
+ {item}
+ </span>
+ ))}
</div>
+ </div>
+
+ <style jsx global>{`
+ @keyframes remocn-marquee {
+ 0% { transform: translateX(0); }
+ 100% { transform: translateX(-33.3333%); }
+ }
+ `}</style>
+ </section>
+ );
+}
+
+function FinalCTA() {
+ const { ref, shown } = useInViewReveal<HTMLHeadingElement>(0.4);
+
+ return (
+ <section className="relative border-t border-white/[0.04] px-6 py-40">
+ <div className="mx-auto flex max-w-4xl flex-col items-center text-center">
+ <h2
+ ref={ref}
+ className="text-balance text-5xl font-semibold text-[#EDEDED] md:text-6xl"
+ style={{
+ letterSpacing: shown ? "-0.04em" : "0.4em",
+ filter: shown ? "blur(0px)" : "blur(10px)",
+ opacity: shown ? 1 : 0,
+ transition: `letter-spacing 1100ms ${APPLE_EASE}, filter 800ms ${APPLE_EASE}, opacity 800ms ${APPLE_EASE}`,
+ }}
+ >
+ Stop fighting keyframes.
+ <br />
+ Start writing code.
+ </h2>
+
+ <Reveal delay={300}>
+ <Link
+ href="/docs"
+ className="mt-12 inline-flex h-12 items-center gap-2 rounded-full bg-[#0A0A0A] px-6 text-sm font-medium text-[#EDEDED] transition-colors duration-75 hover:bg-[#121212]"
+ style={{
+ boxShadow:
+ "0 0 0 1px rgba(255,255,255,0.1), 0 4px 14px rgba(0,0,0,0.5)",
+ }}
+ >
+ View documentation
+ <ArrowRight className="size-4" />
+ </Link>
+ </Reveal>
+ </div>
+
+ <footer className="mx-auto mt-32 flex max-w-5xl flex-col items-center justify-between gap-4 border-t border-white/[0.04] pt-8 text-xs text-[#666] md:flex-row">
+ <span>© {new Date().getFullYear()} remocn. MIT licensed.</span>
+ <nav className="flex gap-6">
+ <Link
+ href="/docs"
+ className="transition-colors duration-75 hover:text-white"
+ >
+ Docs
+ </Link>
+ <Link
+ href="https://github.com/remocn/remocn"
+ className="transition-colors duration-75 hover:text-white"
+ >
+ GitHub
+ </Link>
+ <Link
+ href="/docs"
+ className="transition-colors duration-75 hover:text-white"
+ >
+ Components
+ </Link>
+ </nav>
+ </footer>
+ </section>
+ );
+}
+
+/* -------------------------------------------------------------------------- */
+/* Page */
+/* -------------------------------------------------------------------------- */
+
+export default function Page() {
+ return (
+ <div className="relative min-h-screen bg-black font-sans text-[#EDEDED] antialiased">
+ <NoiseOverlay />
+ <Header />
+ <main>
+ <Hero />
+ <DXShowcase />
+ <BentoRegistry />
+ <UseCases />
+ <TechStack />
+ <FinalCTA />
</main>
</div>
);
diff --git a/content/docs/primitives/brush-stroke-simulator.mdx b/content/docs/primitives/brush-stroke-simulator.mdx
new file mode 100644
index 00000000..27171048
--- /dev/null
+++ b/content/docs/primitives/brush-stroke-simulator.mdx
@@ -0,0 +1,114 @@
+---
+title: Brush Stroke Simulator
+description: A simulated fingertip drags a blur brush across an image, revealing a pixelated overlay along its trail.
+---
+
+<ComponentPreview name="brush-stroke-simulator" />
+
+A semi-transparent fingertip glides across the frame along a chain of cubic-bezier waypoints, leaving a pixelated overlay in its wake. The reveal is driven by an SVG `<mask>` whose stroked `<path>` is rebuilt every frame from the cursor's accumulated trail — that's why the brush stroke feels continuous instead of stamping discrete dots. The cursor scales down slightly while it is "pressed" against the surface and springs back when it lifts between regions.
+
+## Installation
+
+<InstallBlock name="brush-stroke-simulator" />
+
+## Usage
+
+```tsx
+// src/Root.tsx
+import { Composition } from "remotion";
+import { BrushStrokeSimulator } from "@/components/remocn/brush-stroke-simulator";
+
+const BrushScene = () => (
+ <BrushStrokeSimulator
+ brushSize={70}
+ sweepDuration={150}
+ />
+);
+
+export const RemotionRoot = () => (
+ <Composition
+ id="BrushStrokeSimulator"
+ component={BrushScene}
+ durationInFrames={180}
+ fps={30}
+ width={1280}
+ height={720}
+ />
+);
+```
+
+## Props
+
+<PropsTable
+ rows={[
+ {
+ name: "brushSize",
+ type: "number",
+ default: "70",
+ description: "Diameter of the cursor and width of the reveal stroke in pixels.",
+ },
+ {
+ name: "cursorColor",
+ type: "string",
+ default: "\"rgba(255,255,255,0.45)\"",
+ description: "Fill color of the semi-transparent fingertip circle.",
+ },
+ {
+ name: "background",
+ type: "string",
+ default: "\"#0a0a0a\"",
+ description: "Page background behind the simulated portrait.",
+ },
+ {
+ name: "baseColorA",
+ type: "string",
+ default: "\"#f4a261\"",
+ description: "Highlight tint of the simulated portrait beneath the overlay.",
+ },
+ {
+ name: "baseColorB",
+ type: "string",
+ default: "\"#e76f51\"",
+ description: "Shadow tint of the simulated portrait beneath the overlay.",
+ },
+ {
+ name: "overlayColor",
+ type: "string",
+ default: "\"#1f1f23\"",
+ description: "Base color of the pixelated overlay that the brush reveals.",
+ },
+ {
+ name: "startFrame",
+ type: "number",
+ default: "12",
+ description: "Frame at which the brushing motion begins. Earlier frames hold the unbrushed scene.",
+ },
+ {
+ name: "sweepDuration",
+ type: "number",
+ default: "150",
+ description: "How many frames the brush takes to traverse the full waypoint chain.",
+ },
+ {
+ name: "speed",
+ type: "number",
+ default: "1",
+ description: "Playback speed multiplier applied to the internal frame counter.",
+ },
+ {
+ name: "className",
+ type: "string",
+ description: "Optional className passed to the root container.",
+ },
+ ]}
+/>
+
+## Notes
+
+<Note title="Mask, not clip-path">
+ SVG `<clipPath>` ignores `stroke-width`, so a stroked path can't be used as a clip. The reveal is built with an SVG `<mask>` instead — white background, black stroked trail — applied to the pixelated overlay rectangle. The black stroke punches a hole through which the sharp base layer shows.
+</Note>
+
+<Warning title="Trail length grows with progress">
+ The mask path is rebuilt from the cursor's accumulated samples every frame. At default settings that's roughly 110 sample points by the end of the sweep — fast enough, but if you crank `sweepDuration` past 240 frames you'll want to reduce the per-segment sample count inside `sampleBrushPath`.
+</Warning>
diff --git a/content/docs/primitives/meta.json b/content/docs/primitives/meta.json
index 3bf2a7fa..deb7cbbb 100644
--- a/content/docs/primitives/meta.json
+++ b/content/docs/primitives/meta.json
@@ -8,6 +8,7 @@
"success-confetti",
"---Interactions---",
"cursor-flow",
+ "brush-stroke-simulator",
"bounding-box-selector",
"toast-notification"
]
diff --git a/content/docs/transitions/image-expand-to-fullscreen.mdx b/content/docs/transitions/image-expand-to-fullscreen.mdx
new file mode 100644
index 00000000..431aed76
--- /dev/null
+++ b/content/docs/transitions/image-expand-to-fullscreen.mdx
@@ -0,0 +1,142 @@
+---
+title: Image Expand To Fullscreen
+description: A thumbnail in a feed post lifts off the card and morphs seamlessly into a fullscreen editor, with toolbars sliding in to meet it.
+---
+
+<ComponentPreview name="image-expand-to-fullscreen" />
+
+A shared-element transition in the spirit of native iOS photo editors. The image starts life as a thumbnail inside a fake feed post — when the morph fires, the post UI fades, the dark editor canvas swells in underneath, and the image itself rides a single spring all the way to its fullscreen rect. Toolbars slide in from the top and bottom in the last third, called in by the image landing.
+
+## Installation
+
+<InstallBlock name="image-expand-to-fullscreen" />
+
+## Usage
+
+```tsx
+// src/Root.tsx
+import { Composition } from "remotion";
+import { ImageExpandToFullscreen } from "@/components/remocn/image-expand-to-fullscreen";
+
+const ImageExpandScene = () => (
+ <ImageExpandToFullscreen
+ from={{ left: 460, top: 280, width: 360, height: 200 }}
+ to={{ left: 200, top: 120, width: 880, height: 480 }}
+ morphAt={30}
+ />
+);
+
+export const RemotionRoot = () => (
+ <Composition
+ id="ImageExpandToFullscreen"
+ component={ImageExpandScene}
+ durationInFrames={180}
+ fps={30}
+ width={1280}
+ height={720}
+ />
+);
+```
+
+## Props
+
+<PropsTable
+ rows={[
+ {
+ name: "from",
+ type: "{ top, left, width, height }",
+ description: "Source rect of the thumbnail inside the feed post.",
+ },
+ {
+ name: "to",
+ type: "{ top, left, width, height }",
+ description: "Target rect of the image inside the fullscreen editor.",
+ },
+ {
+ name: "borderRadiusFrom",
+ type: "number",
+ default: "12",
+ description: "Border radius of the thumbnail in pixels.",
+ },
+ {
+ name: "borderRadiusTo",
+ type: "number",
+ default: "16",
+ description: "Border radius of the editor image in pixels.",
+ },
+ {
+ name: "morphAt",
+ type: "number",
+ default: "30",
+ description: "Frame at which the shared-element morph fires.",
+ },
+ {
+ name: "imageColorA",
+ type: "string",
+ default: "\"#ff6b6b\"",
+ description: "First stop of the faked image gradient.",
+ },
+ {
+ name: "imageColorB",
+ type: "string",
+ default: "\"#845ec2\"",
+ description: "Second stop of the faked image gradient.",
+ },
+ {
+ name: "imageColorC",
+ type: "string",
+ default: "\"#4d8dff\"",
+ description: "Third stop of the faked image gradient.",
+ },
+ {
+ name: "feedBackground",
+ type: "string",
+ default: "\"#f4f4f5\"",
+ description: "Page background color of the feed (before the morph).",
+ },
+ {
+ name: "editorBackground",
+ type: "string",
+ default: "\"#0a0a0a\"",
+ description: "Canvas background color of the editor (after the morph).",
+ },
+ {
+ name: "accent",
+ type: "string",
+ default: "\"#fafafa\"",
+ description: "Accent color used for toolbar text and the active tool chip.",
+ },
+ {
+ name: "postAuthor",
+ type: "string",
+ default: "\"Maya Larsson\"",
+ description: "Author name shown on the feed post.",
+ },
+ {
+ name: "postBody",
+ type: "string",
+ description: "Caption shown on the feed post above the thumbnail.",
+ },
+ {
+ name: "speed",
+ type: "number",
+ default: "1",
+ description: "Playback speed multiplier.",
+ },
+ {
+ name: "className",
+ type: "string",
+ description: "Optional className passed to the root container.",
+ },
+ ]}
+/>
+
+## Notes
+
+<Note title="One spring, four properties">
+ `top`, `left`, `width`, and `height` are all derived from a single `spring()` value. Independent springs would drift out of phase and the image would warp during travel.
+</Note>
+
+<Warning title="Toolbars arrive last">
+ The toolbars only slide in across `[0.5, 1]` of the morph spring — that delay is what makes them feel summoned by the image landing, instead of racing it to the finish line.
+</Warning>
diff --git a/content/docs/transitions/meta.json b/content/docs/transitions/meta.json
index d401f7cc..a6880a95 100644
--- a/content/docs/transitions/meta.json
+++ b/content/docs/transitions/meta.json
@@ -6,8 +6,10 @@
"zoom-through-transition",
"device-mockup-zoom",
"morphing-modal",
+ "image-expand-to-fullscreen",
"---Spatial Wipes---",
"directional-wipe",
+ "swipe-transition-wipe",
"spatial-push",
"frosted-glass-wipe",
"kinetic-type-mask",
diff --git a/content/docs/transitions/swipe-transition-wipe.mdx b/content/docs/transitions/swipe-transition-wipe.mdx
new file mode 100644
index 00000000..2f0be8ab
--- /dev/null
+++ b/content/docs/transitions/swipe-transition-wipe.mdx
@@ -0,0 +1,144 @@
+---
+title: Swipe Transition Wipe
+description: A mobile-style swipe transition where the outgoing scene flicks off-screen and the new one slides in beside it, with a parallax background and a darkening trail.
+---
+
+<ComponentPreview name="swipe-transition-wipe" />
+
+A swipe-style transition borrowed from native mobile UIs. Two scenes sit side-by-side inside a flex slider; one snappy spring drives the slider's `translateX` from `0%` to `-100%` (or the mirror), so the outgoing scene flicks off the edge while the incoming one slides in right behind it. A parallax background layer moves at a fraction of the foreground speed to fake depth, and the outgoing scene gets a subtle darkening overlay so it visibly recedes instead of just exiting.
+
+## Installation
+
+<InstallBlock name="swipe-transition-wipe" />
+
+## Usage
+
+```tsx
+// src/Root.tsx
+import { Composition } from "remotion";
+import { SwipeTransitionWipe } from "@/components/remocn/swipe-transition-wipe";
+
+const SwipeScene = () => (
+ <SwipeTransitionWipe
+ direction="left"
+ swipeAt={30}
+ labelA="Before"
+ labelB="After"
+ />
+);
+
+export const RemotionRoot = () => (
+ <Composition
+ id="SwipeTransitionWipe"
+ component={SwipeScene}
+ durationInFrames={180}
+ fps={30}
+ width={1280}
+ height={720}
+ />
+);
+```
+
+## Props
+
+<PropsTable
+ rows={[
+ {
+ name: "sceneA",
+ type: "ReactNode",
+ description: "Override the first (outgoing) scene's content.",
+ },
+ {
+ name: "sceneB",
+ type: "ReactNode",
+ description: "Override the second (incoming) scene's content.",
+ },
+ {
+ name: "labelA",
+ type: "string",
+ default: "\"First\"",
+ description: "Label rendered on the default scene A gradient.",
+ },
+ {
+ name: "labelB",
+ type: "string",
+ default: "\"Second\"",
+ description: "Label rendered on the default scene B gradient.",
+ },
+ {
+ name: "colorA1",
+ type: "string",
+ default: "\"#0ea5e9\"",
+ description: "First gradient stop for scene A.",
+ },
+ {
+ name: "colorA2",
+ type: "string",
+ default: "\"#1e3a8a\"",
+ description: "Second gradient stop for scene A.",
+ },
+ {
+ name: "colorB1",
+ type: "string",
+ default: "\"#f97316\"",
+ description: "First gradient stop for scene B.",
+ },
+ {
+ name: "colorB2",
+ type: "string",
+ default: "\"#9333ea\"",
+ description: "Second gradient stop for scene B.",
+ },
+ {
+ name: "background",
+ type: "string",
+ default: "\"#050505\"",
+ description: "Stage background behind the parallax layer.",
+ },
+ {
+ name: "direction",
+ type: "\"left\" | \"right\"",
+ default: "\"left\"",
+ description: "Which way the outgoing scene flicks off the screen.",
+ },
+ {
+ name: "swipeAt",
+ type: "number",
+ default: "30",
+ description: "Frame at which the swipe spring fires.",
+ },
+ {
+ name: "parallaxFactor",
+ type: "number",
+ default: "0.6",
+ description: "How much slower the background moves vs the foreground (0 = locked, 1 = matched).",
+ },
+ {
+ name: "dimStrength",
+ type: "number",
+ default: "0.4",
+ description: "Maximum opacity of the darkening overlay applied to the outgoing scene.",
+ },
+ {
+ name: "speed",
+ type: "number",
+ default: "1",
+ description: "Playback speed multiplier.",
+ },
+ {
+ name: "className",
+ type: "string",
+ description: "Optional className passed to the root container.",
+ },
+ ]}
+/>
+
+## Notes
+
+<Note title="One spring, two layers">
+ The same spring value drives the foreground slider and the parallax background — they can never desync, which is what sells the depth illusion.
+</Note>
+
+<Warning title="Keep the flick snappy">
+ Swipes feel natural when they're fast. The default spring resolves in ~50 frames with a touch of overshoot; slowing it down past ~80 frames starts to feel like a slide carousel instead of a gesture.
+</Warning>
diff --git a/content/docs/ui-blocks/ai-generate-overlay.mdx b/content/docs/ui-blocks/ai-generate-overlay.mdx
new file mode 100644
index 00000000..035c09fe
--- /dev/null
+++ b/content/docs/ui-blocks/ai-generate-overlay.mdx
@@ -0,0 +1,146 @@
+---
+title: AI Generate Overlay
+description: A "thinking" overlay for AI-driven UI — source image blurs out under a shimmering dot grid while a glassy pill pulses, then the new image fades in on top.
+---
+
+<ComponentPreview name="ai-generate-overlay" />
+
+The overlay you reach for any time you need to communicate "the model is working on it." The source image blurs from `0px` to `~20px`, a screen-blended SVG dot pattern shimmers in over the top with a tiny `Math.sin(frame / 6)` jitter, and a pill-shaped indicator with a backdrop-filtered glass background pulses in the center. When the spring-driven reveal fires, the generated image fades in over the blurred source and the pill (and grid) fades back out. Every layer is driven by the current frame so it renders deterministically — no `setInterval`, no random flicker.
+
+## Installation
+
+<InstallBlock name="ai-generate-overlay" />
+
+## Usage
+
+```tsx
+// src/Root.tsx
+import { Composition } from "remotion";
+import { AIGenerateOverlay } from "@/components/remocn/ai-generate-overlay";
+
+const AIGenerateOverlayScene = () => (
+ <AIGenerateOverlay
+ maxBlur={20}
+ blurStartFrame={20}
+ blurPeakFrame={40}
+ revealStartFrame={110}
+ pillText="Generating…"
+ accent="#a78bfa"
+ />
+);
+
+export const RemotionRoot = () => (
+ <Composition
+ id="AIGenerateOverlay"
+ component={AIGenerateOverlayScene}
+ durationInFrames={180}
+ fps={30}
+ width={1280}
+ height={720}
+ />
+);
+```
+
+## Props
+
+<PropsTable
+ rows={[
+ {
+ name: "maxBlur",
+ type: "number",
+ default: "20",
+ description: "Peak blur radius in pixels applied to the source image.",
+ },
+ {
+ name: "blurStartFrame",
+ type: "number",
+ default: "20",
+ description: "Frame at which the blur ramp and dot grid begin.",
+ },
+ {
+ name: "blurPeakFrame",
+ type: "number",
+ default: "40",
+ description: "Frame at which the blur reaches `maxBlur` and the dot grid is fully on.",
+ },
+ {
+ name: "revealStartFrame",
+ type: "number",
+ default: "110",
+ description: "Frame at which the spring-driven generated-image fade-in fires.",
+ },
+ {
+ name: "pillText",
+ type: "string",
+ default: "\"Generating…\"",
+ description: "Label shown inside the centered glass pill. Trailing dots animate automatically.",
+ },
+ {
+ name: "accent",
+ type: "string",
+ default: "\"#a78bfa\"",
+ description: "Accent color used for the pill's status dot and glow shadow.",
+ },
+ {
+ name: "background",
+ type: "string",
+ default: "\"#050505\"",
+ description: "Page background visible behind both image layers.",
+ },
+ {
+ name: "sourceImageBg",
+ type: "string",
+ default: "warm linear-gradient",
+ description: "CSS background for the source (\"original\") image layer. Pass any gradient or color.",
+ },
+ {
+ name: "generatedImageBg",
+ type: "string",
+ default: "cool radial+linear",
+ description: "CSS background for the generated image layer that fades in.",
+ },
+ {
+ name: "dotColor",
+ type: "string",
+ default: "\"#ffffff\"",
+ description: "Fill color of the SVG dot grid.",
+ },
+ {
+ name: "dotSize",
+ type: "number",
+ default: "1.2",
+ description: "Radius of each dot in the grid.",
+ },
+ {
+ name: "dotSpacing",
+ type: "number",
+ default: "20",
+ description: "Pattern tile size — controls the spacing between dots.",
+ },
+ {
+ name: "speed",
+ type: "number",
+ default: "1",
+ description: "Playback speed multiplier for all timing values.",
+ },
+ {
+ name: "className",
+ type: "string",
+ description: "Optional className passed to the root container.",
+ },
+ ]}
+/>
+
+## Notes
+
+<Note title="Deterministic shimmer">
+ The dot grid jitter is `Math.sin(frame / 6) * 0.05` — a pure function of the current frame. Don't be tempted to reach for `Math.random()` or `setInterval`; both will introduce mismatched output between preview and final render.
+</Note>
+
+<Note title="Swap in real images">
+ The defaults render two CSS gradients so the component is dependency-free, but in practice you'll pass `sourceImageBg`/`generatedImageBg` as `url(...)` strings (loaded via `staticFile()` in your scene) so the blur is applied to a real photo.
+</Note>
+
+<Warning title="Heavy blur is expensive">
+ `filter: blur(20px)` on a viewport-sized layer is one of the costlier CSS effects. Keep the blurred layer on its own absolutely-positioned `<div>` (as it is here) so the browser can promote it and avoid re-layouting the rest of the scene each frame.
+</Warning>
diff --git a/content/docs/ui-blocks/meta.json b/content/docs/ui-blocks/meta.json
index bfbeb5a4..92d273f9 100644
--- a/content/docs/ui-blocks/meta.json
+++ b/content/docs/ui-blocks/meta.json
@@ -10,6 +10,9 @@
"---Layouts---",
"staggered-bento-grid",
"dynamic-split-screen",
+ "---Overlays & Panels---",
+ "ai-generate-overlay",
+ "tool-menu-slide-in",
"---Data & System---",
"animated-line-chart",
"animated-bar-chart",
diff --git a/content/docs/ui-blocks/tool-menu-slide-in.mdx b/content/docs/ui-blocks/tool-menu-slide-in.mdx
new file mode 100644
index 00000000..cbc3966e
--- /dev/null
+++ b/content/docs/ui-blocks/tool-menu-slide-in.mdx
@@ -0,0 +1,110 @@
+---
+title: Tool Menu Slide In
+description: A horizontal pill of tool icons whips up from below the canvas, then each icon pops in with a staggered spring.
+---
+
+<ComponentPreview name="tool-menu-slide-in" />
+
+A snappy editor-style toolbar reveal. The frosted-glass panel slides up from `translateY(120%)` to `0%` via a stiff, low-mass spring — no overshoot, no slow ramp — and as soon as it locks in place each icon pops from `scale: 0` to `1` with a small caskaded delay. Every icon is wrapped in its own `<Sequence>` so its internal `useCurrentFrame` resets cleanly to zero, which keeps the spring math local and predictable.
+
+## Installation
+
+<InstallBlock name="tool-menu-slide-in" />
+
+## Usage
+
+```tsx
+// src/Root.tsx
+import { Composition } from "remotion";
+import { ToolMenuSlideIn } from "@/components/remocn/tool-menu-slide-in";
+
+const ToolMenuScene = () => (
+ <ToolMenuSlideIn
+ panelStartFrame={18}
+ iconStagger={4}
+ iconCount={5}
+ accent="#a78bfa"
+ />
+);
+
+export const RemotionRoot = () => (
+ <Composition
+ id="ToolMenuSlideIn"
+ component={ToolMenuScene}
+ durationInFrames={180}
+ fps={30}
+ width={1280}
+ height={720}
+ />
+);
+```
+
+## Props
+
+<PropsTable
+ rows={[
+ {
+ name: "panelStartFrame",
+ type: "number",
+ default: "18",
+ description: "Frame at which the panel begins sliding up.",
+ },
+ {
+ name: "iconStagger",
+ type: "number",
+ default: "4",
+ description: "Frames of delay between each icon's pop-in spring.",
+ },
+ {
+ name: "iconCount",
+ type: "number",
+ default: "5",
+ description: "Number of fake tool icons to render (clamped 1–8).",
+ },
+ {
+ name: "accent",
+ type: "string",
+ default: "\"#a78bfa\"",
+ description: "Accent color used for the active icon glow and border.",
+ },
+ {
+ name: "panelColor",
+ type: "string",
+ default: "\"rgba(18, 18, 22, 0.72)\"",
+ description: "Frosted-glass fill of the menu pill.",
+ },
+ {
+ name: "background",
+ type: "string",
+ default: "\"#070708\"",
+ description: "Background color of the editor canvas.",
+ },
+ {
+ name: "iconBg",
+ type: "string",
+ default: "\"rgba(255,255,255,0.06)\"",
+ description: "Background of inactive tool icons.",
+ },
+ {
+ name: "speed",
+ type: "number",
+ default: "1",
+ description: "Playback speed multiplier.",
+ },
+ {
+ name: "className",
+ type: "string",
+ description: "Optional className passed to the root container.",
+ },
+ ]}
+/>
+
+## Notes
+
+<Note title="Snappy, not bouncy">
+ The slide-in spring uses `stiffness: 320`, `damping: 20`, `mass: 0.6` — high stiffness with enough damping to land hard without overshoot. Tool menus that bounce read as toy-like; this one feels like macOS.
+</Note>
+
+<Warning title="Sequence resets the icon clock">
+ Each icon is rendered inside its own `<Sequence from={...}>` so that the spring inside `<ToolIcon>` always sees `frame: 0` at the moment it should start. Don't try to compute the offset manually — let `<Sequence>` reset the clock for you.
+</Warning>
diff --git a/registry.json b/registry.json
index a1ad5cba..e0a7e4c8 100644
--- a/registry.json
+++ b/registry.json
@@ -772,6 +772,76 @@
"target": "components/remocn/infinite-bento-pan.tsx"
}
]
+ },
+ {
+ "name": "brush-stroke-simulator",
+ "type": "registry:component",
+ "title": "Brush Stroke Simulator",
+ "description": "A simulated finger brushes across an image, revealing a pixelated layer along its bezier path.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/brush-stroke-simulator/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/brush-stroke-simulator.tsx"
+ }
+ ]
+ },
+ {
+ "name": "ai-generate-overlay",
+ "type": "registry:component",
+ "title": "AI Generate Overlay",
+ "description": "Source image blurs under a shimmering dot grid and a pulsing 'Generating…' pill before a new image fades in.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/ai-generate-overlay/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/ai-generate-overlay.tsx"
+ }
+ ]
+ },
+ {
+ "name": "tool-menu-slide-in",
+ "type": "registry:component",
+ "title": "Tool Menu Slide In",
+ "description": "A glass tool palette whips up from below the editor canvas while its icons pop in with a stagger.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/tool-menu-slide-in/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/tool-menu-slide-in.tsx"
+ }
+ ]
+ },
+ {
+ "name": "image-expand-to-fullscreen",
+ "type": "registry:component",
+ "title": "Image Expand To Fullscreen",
+ "description": "An image lifts out of a feed post and morphs into a fullscreen editor with toolbars sliding in.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/image-expand-to-fullscreen/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/image-expand-to-fullscreen.tsx"
+ }
+ ]
+ },
+ {
+ "name": "swipe-transition-wipe",
+ "type": "registry:component",
+ "title": "Swipe Transition Wipe",
+ "description": "Two scenes laid out side-by-side flick across the screen with a parallax background and a darkening outgoing layer.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/swipe-transition-wipe/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/swipe-transition-wipe.tsx"
+ }
+ ]
}
]
}
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index e8c08597..e42bf887 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -1,6 +1,8 @@
import type React from "react";
import { type ComponentConfig, SHARED_CONTROLS } from "@/lib/customizer-config";
+import { AIGenerateOverlay } from "@/registry/remocn/ai-generate-overlay";
+import { aiGenerateOverlayConfig } from "@/registry/remocn/ai-generate-overlay/config";
import { AIGenerationCanvas } from "@/registry/remocn/ai-generation-canvas";
import { aiGenerationCanvasConfig } from "@/registry/remocn/ai-generation-canvas/config";
import { AnimatedBarChart } from "@/registry/remocn/animated-bar-chart";
@@ -13,6 +15,8 @@ import { BoundingBoxSelector } from "@/registry/remocn/bounding-box-selector";
import { boundingBoxSelectorConfig } from "@/registry/remocn/bounding-box-selector/config";
import { BrowserFlow } from "@/registry/remocn/browser-flow";
import { browserFlowConfig } from "@/registry/remocn/browser-flow/config";
+import { BrushStrokeSimulator } from "@/registry/remocn/brush-stroke-simulator";
+import { brushStrokeSimulatorConfig } from "@/registry/remocn/brush-stroke-simulator/config";
import { ChatToPreviewLayout } from "@/registry/remocn/chat-to-preview-layout";
import { chatToPreviewLayoutConfig } from "@/registry/remocn/chat-to-preview-layout/config";
import { ChromaticAberrationWipe } from "@/registry/remocn/chromatic-aberration-wipe";
@@ -45,6 +49,8 @@ import { GridPixelateWipe } from "@/registry/remocn/grid-pixelate-wipe";
import { gridPixelateWipeConfig } from "@/registry/remocn/grid-pixelate-wipe/config";
import { HeroDeviceAssemble } from "@/registry/remocn/hero-device-assemble";
import { heroDeviceAssembleConfig } from "@/registry/remocn/hero-device-assemble/config";
+import { ImageExpandToFullscreen } from "@/registry/remocn/image-expand-to-fullscreen";
+import { imageExpandToFullscreenConfig } from "@/registry/remocn/image-expand-to-fullscreen/config";
import { InfiniteBentoPan } from "@/registry/remocn/infinite-bento-pan";
import { infiniteBentoPanConfig } from "@/registry/remocn/infinite-bento-pan/config";
import { InfiniteMarquee } from "@/registry/remocn/infinite-marquee";
@@ -97,6 +103,8 @@ import { StrikethroughReplace } from "@/registry/remocn/strikethrough-replace";
import { strikethroughReplaceConfig } from "@/registry/remocn/strikethrough-replace/config";
import { SuccessConfetti } from "@/registry/remocn/success-confetti";
import { successConfettiConfig } from "@/registry/remocn/success-confetti/config";
+import { SwipeTransitionWipe } from "@/registry/remocn/swipe-transition-wipe";
+import { swipeTransitionWipeConfig } from "@/registry/remocn/swipe-transition-wipe/config";
import { TerminalSimulator } from "@/registry/remocn/terminal-simulator";
import { terminalSimulatorConfig } from "@/registry/remocn/terminal-simulator/config";
import { TerminalToBrowserDeploy } from "@/registry/remocn/terminal-to-browser-deploy";
@@ -105,6 +113,8 @@ import { TextFadeReplace } from "@/registry/remocn/text-fade-replace";
import { textFadeReplaceConfig } from "@/registry/remocn/text-fade-replace/config";
import { ToastNotification } from "@/registry/remocn/toast-notification";
import { toastNotificationConfig } from "@/registry/remocn/toast-notification/config";
+import { ToolMenuSlideIn } from "@/registry/remocn/tool-menu-slide-in";
+import { toolMenuSlideInConfig } from "@/registry/remocn/tool-menu-slide-in/config";
import { TrackingIn } from "@/registry/remocn/tracking-in";
import { trackingInConfig } from "@/registry/remocn/tracking-in/config";
import { Typewriter } from "@/registry/remocn/typewriter";
@@ -287,6 +297,26 @@ const registry: Record<string, RegistryEntry> = {
Component: InfiniteBentoPan,
config: infiniteBentoPanConfig,
},
+ "brush-stroke-simulator": {
+ Component: BrushStrokeSimulator,
+ config: brushStrokeSimulatorConfig,
+ },
+ "ai-generate-overlay": {
+ Component: AIGenerateOverlay,
+ config: aiGenerateOverlayConfig,
+ },
+ "tool-menu-slide-in": {
+ Component: ToolMenuSlideIn,
+ config: toolMenuSlideInConfig,
+ },
+ "image-expand-to-fullscreen": {
+ Component: ImageExpandToFullscreen,
+ config: imageExpandToFullscreenConfig,
+ },
+ "swipe-transition-wipe": {
+ Component: SwipeTransitionWipe,
+ config: swipeTransitionWipeConfig,
+ },
};
// Append the shared controls (e.g. `speed`) to every component config so
diff --git a/registry/remocn/ai-generate-overlay/config.ts b/registry/remocn/ai-generate-overlay/config.ts
new file mode 100644
index 00000000..ee3cc50f
--- /dev/null
+++ b/registry/remocn/ai-generate-overlay/config.ts
@@ -0,0 +1,69 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const aiGenerateOverlayConfig: ComponentConfig = {
+ componentName: "AIGenerateOverlay",
+ importPath: "@/components/remocn/ai-generate-overlay",
+ controls: {
+ maxBlur: {
+ type: "number",
+ default: 20,
+ min: 0,
+ max: 40,
+ step: 1,
+ label: "Max blur (px)",
+ },
+ blurStartFrame: {
+ type: "number",
+ default: 20,
+ min: 0,
+ max: 120,
+ step: 1,
+ label: "Blur start (frame)",
+ },
+ blurPeakFrame: {
+ type: "number",
+ default: 40,
+ min: 0,
+ max: 160,
+ step: 1,
+ label: "Blur peak (frame)",
+ },
+ revealStartFrame: {
+ type: "number",
+ default: 110,
+ min: 30,
+ max: 160,
+ step: 1,
+ label: "Reveal start (frame)",
+ },
+ pillText: {
+ type: "text",
+ default: "Generating…",
+ label: "Pill text",
+ },
+ accent: {
+ type: "color",
+ default: "#a78bfa",
+ label: "Accent color",
+ },
+ background: {
+ type: "color",
+ default: "#050505",
+ label: "Background",
+ },
+ sourceImageBg: {
+ type: "color",
+ default: "#8b4513",
+ label: "Source image color",
+ },
+ generatedImageBg: {
+ type: "color",
+ default: "#1a1410",
+ label: "Generated image color",
+ },
+ },
+ durationInFrames: 180,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/ai-generate-overlay/index.tsx b/registry/remocn/ai-generate-overlay/index.tsx
new file mode 100644
index 00000000..5a37d3b5
--- /dev/null
+++ b/registry/remocn/ai-generate-overlay/index.tsx
@@ -0,0 +1,230 @@
+"use client";
+
+import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";
+
+export interface AIGenerateOverlayProps {
+ maxBlur?: number;
+ blurStartFrame?: number;
+ blurPeakFrame?: number;
+ revealStartFrame?: number;
+ pillText?: string;
+ accent?: string;
+ background?: string;
+ sourceImageBg?: string;
+ generatedImageBg?: string;
+ dotColor?: string;
+ dotSize?: number;
+ dotSpacing?: number;
+ speed?: number;
+ className?: string;
+}
+
+const FONT_FAMILY =
+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
+
+const DEFAULT_SOURCE_BG =
+ "linear-gradient(135deg, #6b3a1a 0%, #d4a574 50%, #8b4513 100%)";
+
+const DEFAULT_GENERATED_BG =
+ "radial-gradient(ellipse at center, #d4a574 0%, #8b4513 22%, #2a1a10 42%), linear-gradient(180deg, #1a1410 0%, #0a0806 50%, #1a1410 100%)";
+
+export function AIGenerateOverlay({
+ maxBlur = 20,
+ blurStartFrame = 20,
+ blurPeakFrame = 40,
+ revealStartFrame = 110,
+ pillText = "Generating…",
+ accent = "#a78bfa",
+ background = "#050505",
+ sourceImageBg = DEFAULT_SOURCE_BG,
+ generatedImageBg = DEFAULT_GENERATED_BG,
+ dotColor = "#ffffff",
+ dotSize = 1.2,
+ dotSpacing = 20,
+ speed = 1,
+ className,
+}: AIGenerateOverlayProps) {
+ const rawFrame = useCurrentFrame();
+ const frame = rawFrame * speed;
+ const { fps, durationInFrames } = useVideoConfig();
+
+ // Phase 1 → 2: blur ramps up over [blurStartFrame, blurPeakFrame]
+ const blur = interpolate(
+ frame,
+ [blurStartFrame, blurPeakFrame],
+ [0, maxBlur],
+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },
+ );
+
+ // Dot grid opacity follows blur, plus a subtle sine shimmer.
+ const gridBaseOpacity = interpolate(
+ frame,
+ [blurStartFrame, blurPeakFrame],
+ [0, 0.4],
+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },
+ );
+ const gridShimmer = Math.sin(frame / 6) * 0.05;
+ const gridOpacity = Math.max(0, gridBaseOpacity + gridShimmer);
+
+ // Generated image fade-in from revealStartFrame.
+ const reveal = spring({
+ frame: frame - revealStartFrame,
+ fps,
+ config: { mass: 1, damping: 22, stiffness: 90 },
+ });
+ const generatedOpacity = interpolate(reveal, [0, 1], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ });
+
+ // Pill is visible during phases 2-3, fades out as the new image fades in.
+ const pillIn = interpolate(frame, [blurStartFrame, blurPeakFrame], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ });
+ const pillOut = interpolate(generatedOpacity, [0, 0.6], [1, 0], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ });
+ const pillOpacity = pillIn * pillOut;
+ const pillScale = 1 + Math.sin(frame / 8) * 0.02;
+ const pillGlow = 0.35 + Math.sin(frame / 8) * 0.15;
+
+ // Detached dot count animation for the pill text — three trailing dots.
+ const dotPhase = Math.floor(frame / 10) % 4;
+ const animatedPillText =
+ pillText.replace(/[…\.]+$/, "") + ".".repeat(dotPhase);
+
+ // Typed unused-suppression: keep durationInFrames referenced for IDEs.
+ void durationInFrames;
+
+ return (
+ <div
+ className={className}
+ style={{
+ position: "absolute",
+ inset: 0,
+ background,
+ fontFamily: FONT_FAMILY,
+ overflow: "hidden",
+ }}
+ >
+ {/* Source ("painting") layer — blurs out as AI thinks. */}
+ <div
+ style={{
+ position: "absolute",
+ inset: 0,
+ background: sourceImageBg,
+ filter: `blur(${blur}px)`,
+ // Slight scale to hide the blur edge feathering at the viewport border.
+ transform: "scale(1.06)",
+ }}
+ />
+
+ {/* Generated image layer — fades in over the blurred source. */}
+ <div
+ style={{
+ position: "absolute",
+ inset: 0,
+ background: generatedImageBg,
+ opacity: generatedOpacity,
+ }}
+ />
+
+ {/* Dot grid overlay — pure SVG pattern with animated opacity + shimmer. */}
+ <svg
+ style={{
+ position: "absolute",
+ inset: 0,
+ width: "100%",
+ height: "100%",
+ opacity: gridOpacity * (1 - generatedOpacity),
+ pointerEvents: "none",
+ mixBlendMode: "screen",
+ }}
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <defs>
+ <pattern
+ id="ai-generate-overlay-dots"
+ width={dotSpacing}
+ height={dotSpacing}
+ patternUnits="userSpaceOnUse"
+ >
+ <circle
+ cx={dotSpacing / 2}
+ cy={dotSpacing / 2}
+ r={dotSize}
+ fill={dotColor}
+ />
+ </pattern>
+ </defs>
+ <rect
+ width="100%"
+ height="100%"
+ fill="url(#ai-generate-overlay-dots)"
+ />
+ </svg>
+
+ {/* "Generating…" pill */}
+ <div
+ style={{
+ position: "absolute",
+ inset: 0,
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ pointerEvents: "none",
+ opacity: pillOpacity,
+ }}
+ >
+ <div
+ style={{
+ display: "inline-flex",
+ alignItems: "center",
+ gap: 12,
+ padding: "14px 24px",
+ borderRadius: 999,
+ background: "rgba(10, 10, 10, 0.55)",
+ color: "#fafafa",
+ fontSize: 18,
+ fontWeight: 500,
+ letterSpacing: "-0.01em",
+ border: "1px solid rgba(255,255,255,0.12)",
+ backdropFilter: "blur(10px)",
+ WebkitBackdropFilter: "blur(10px)",
+ boxShadow: `0 0 0 1px rgba(255,255,255,0.04), 0 0 40px ${hexWithAlpha(
+ accent,
+ pillGlow,
+ )}, 0 12px 40px rgba(0,0,0,0.45)`,
+ transform: `scale(${pillScale})`,
+ }}
+ >
+ <span
+ style={{
+ width: 8,
+ height: 8,
+ borderRadius: 999,
+ background: accent,
+ boxShadow: `0 0 12px ${hexWithAlpha(accent, 0.9)}`,
+ }}
+ />
+ {animatedPillText}
+ </div>
+ </div>
+ </div>
+ );
+}
+
+// Convert a #rrggbb to rgba(r, g, b, a). Falls back to the original string if
+// not a 6-digit hex (so users can pass a CSS color name and still get *some*
+// glow, just without alpha).
+function hexWithAlpha(hex: string, alpha: number): string {
+ const m = /^#([0-9a-f]{6})$/i.exec(hex);
+ if (!m) return hex;
+ const int = parseInt(m[1], 16);
+ const r = (int >> 16) & 255;
+ const g = (int >> 8) & 255;
+ const b = int & 255;
+ return `rgba(${r}, ${g}, ${b}, ${alpha})`;
+}
diff --git a/registry/remocn/brush-stroke-simulator/config.ts b/registry/remocn/brush-stroke-simulator/config.ts
new file mode 100644
index 00000000..49e0b04e
--- /dev/null
+++ b/registry/remocn/brush-stroke-simulator/config.ts
@@ -0,0 +1,61 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const brushStrokeSimulatorConfig: ComponentConfig = {
+ componentName: "BrushStrokeSimulator",
+ importPath: "@/components/remocn/brush-stroke-simulator",
+ controls: {
+ brushSize: {
+ type: "number",
+ default: 70,
+ min: 20,
+ max: 200,
+ step: 2,
+ label: "Brush size",
+ },
+ cursorColor: {
+ type: "color",
+ default: "#ffffff",
+ label: "Cursor color",
+ },
+ background: {
+ type: "color",
+ default: "#0a0a0a",
+ label: "Background",
+ },
+ baseColorA: {
+ type: "color",
+ default: "#f4a261",
+ label: "Base highlight",
+ },
+ baseColorB: {
+ type: "color",
+ default: "#e76f51",
+ label: "Base shadow",
+ },
+ overlayColor: {
+ type: "color",
+ default: "#1f1f23",
+ label: "Overlay color",
+ },
+ startFrame: {
+ type: "number",
+ default: 12,
+ min: 0,
+ max: 60,
+ step: 1,
+ label: "Start frame",
+ },
+ sweepDuration: {
+ type: "number",
+ default: 150,
+ min: 60,
+ max: 240,
+ step: 5,
+ label: "Sweep duration",
+ },
+ },
+ durationInFrames: 180,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/brush-stroke-simulator/index.tsx b/registry/remocn/brush-stroke-simulator/index.tsx
new file mode 100644
index 00000000..2c41ca92
--- /dev/null
+++ b/registry/remocn/brush-stroke-simulator/index.tsx
@@ -0,0 +1,292 @@
+"use client";
+
+import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";
+
+export interface BrushStrokeSimulatorProps {
+ /** Brush stroke width in pixels. */
+ brushSize?: number;
+ /** Cursor fill color (semi-transparent). */
+ cursorColor?: string;
+ /** Outer page background. */
+ background?: string;
+ /** Primary tint of the simulated portrait base. */
+ baseColorA?: string;
+ /** Secondary tint of the simulated portrait base. */
+ baseColorB?: string;
+ /** Tint of the obscured / pixelated overlay. */
+ overlayColor?: string;
+ /** Frame at which the brushing motion begins. */
+ startFrame?: number;
+ /** How many frames the brush takes to complete its sweep. */
+ sweepDuration?: number;
+ /** Playback speed multiplier. */
+ speed?: number;
+ className?: string;
+}
+
+const FONT_FAMILY =
+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
+
+const STAGE_W = 1280;
+const STAGE_H = 720;
+
+/**
+ * Two faces' worth of waypoints — sweeps left face, lifts, sweeps right face.
+ * Y values cluster around the upper-middle of the frame so it reads like
+ * brushing across the eyes/cheeks of a portrait.
+ */
+const WAYPOINTS: { x: number; y: number; press: boolean }[] = [
+ { x: 280, y: 280, press: true },
+ { x: 460, y: 260, press: true },
+ { x: 460, y: 360, press: true },
+ { x: 280, y: 380, press: true },
+ // Lift between faces
+ { x: 640, y: 220, press: false },
+ // Right face
+ { x: 820, y: 280, press: true },
+ { x: 1000, y: 260, press: true },
+ { x: 1000, y: 360, press: true },
+ { x: 820, y: 380, press: true },
+];
+
+function cubicBezier(
+ t: number,
+ p0: { x: number; y: number },
+ p1: { x: number; y: number },
+ p2: { x: number; y: number },
+ p3: { x: number; y: number },
+) {
+ const u = 1 - t;
+ const tt = t * t;
+ const uu = u * u;
+ const uuu = uu * u;
+ const ttt = tt * t;
+ return {
+ x: uuu * p0.x + 3 * uu * t * p1.x + 3 * u * tt * p2.x + ttt * p3.x,
+ y: uuu * p0.y + 3 * uu * t * p1.y + 3 * u * tt * p2.y + ttt * p3.y,
+ };
+}
+
+function easeInOut(t: number) {
+ return t < 0.5 ? 2 * t * t : 1 - Math.pow(-2 * t + 2, 2) / 2;
+}
+
+function controlsFor(
+ a: { x: number; y: number },
+ b: { x: number; y: number },
+ index: number,
+) {
+ const dx = b.x - a.x;
+ const dy = b.y - a.y;
+ const len = Math.hypot(dx, dy) || 1;
+ const sign = index % 2 === 0 ? 1 : -1;
+ const px = (-dy / len) * (len * 0.18) * sign;
+ const py = (dx / len) * (len * 0.18) * sign;
+ return [
+ { x: a.x + dx / 3 + px, y: a.y + dy / 3 + py },
+ { x: a.x + (2 * dx) / 3 + px, y: a.y + (2 * dy) / 3 + py },
+ ];
+}
+
+/**
+ * Walks the bezier path up to the given progress (0..1) and returns:
+ * - the active position
+ * - whether the brush is currently "pressed" (between two press waypoints)
+ * - a sampled trail of every position visited so far (for the reveal mask)
+ */
+function sampleBrushPath(progress: number) {
+ const segments = WAYPOINTS.length - 1;
+ const samplesPerSegment = 14;
+ const totalSamples = segments * samplesPerSegment;
+ const reachedSamples = Math.max(
+ 1,
+ Math.min(totalSamples, Math.floor(progress * totalSamples)),
+ );
+
+ const trail: { x: number; y: number; press: boolean }[] = [];
+ let pos = { x: WAYPOINTS[0].x, y: WAYPOINTS[0].y };
+ let pressed = WAYPOINTS[0].press;
+
+ for (let i = 0; i < reachedSamples; i++) {
+ const segIdx = Math.min(segments - 1, Math.floor(i / samplesPerSegment));
+ const localT = (i % samplesPerSegment) / samplesPerSegment;
+ const a = WAYPOINTS[segIdx];
+ const b = WAYPOINTS[segIdx + 1];
+ const [c1, c2] = controlsFor(a, b, segIdx);
+ const t = easeInOut(localT);
+ pos = cubicBezier(t, a, c1, c2, b);
+ pressed = a.press && b.press;
+ trail.push({ x: pos.x, y: pos.y, press: pressed });
+ }
+
+ return { pos, pressed, trail };
+}
+
+export function BrushStrokeSimulator({
+ brushSize = 70,
+ cursorColor = "rgba(255,255,255,0.45)",
+ background = "#0a0a0a",
+ baseColorA = "#f4a261",
+ baseColorB = "#e76f51",
+ overlayColor = "#1f1f23",
+ startFrame = 12,
+ sweepDuration = 150,
+ speed = 1,
+ className,
+}: BrushStrokeSimulatorProps) {
+ const frame = useCurrentFrame() * speed;
+ const { fps } = useVideoConfig();
+
+ const localFrame = Math.max(0, frame - startFrame);
+ const progress = Math.min(1, localFrame / sweepDuration);
+
+ const { pos, pressed, trail } = sampleBrushPath(progress);
+
+ // Press scale: cursor shrinks slightly while pressing onto the surface.
+ const pressTarget = pressed ? 0.86 : 1;
+ const pressSpring = spring({
+ frame: localFrame,
+ fps,
+ config: { damping: 18, stiffness: 220, mass: 0.6 },
+ });
+ const cursorScale = interpolate(pressSpring, [0, 1], [1, pressTarget]);
+
+ // Build SVG path d-attribute from the accumulated trail.
+ const maskPathD =
+ trail.length === 0
+ ? ""
+ : trail
+ .map((p, i) => `${i === 0 ? "M" : "L"} ${p.x.toFixed(2)} ${p.y.toFixed(2)}`)
+ .join(" ");
+
+ // Tiny intro fade so the scene "lands" before the brush starts.
+ const introOpacity = interpolate(frame, [0, 8], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ });
+
+ return (
+ <div
+ className={className}
+ style={{
+ position: "absolute",
+ inset: 0,
+ overflow: "hidden",
+ background,
+ fontFamily: FONT_FAMILY,
+ opacity: introOpacity,
+ }}
+ >
+ {/* Sharp base layer — fake portrait built from radial gradients */}
+ <div
+ style={{
+ position: "absolute",
+ inset: 0,
+ background: `
+ radial-gradient(circle at 27% 45%, ${baseColorA} 0%, transparent 28%),
+ radial-gradient(circle at 67% 45%, ${baseColorA} 0%, transparent 28%),
+ radial-gradient(circle at 47% 70%, ${baseColorB} 0%, transparent 55%),
+ linear-gradient(160deg, #2a1a14 0%, #1a0f0a 100%)
+ `,
+ }}
+ />
+
+ {/* Eye / detail dots so the unbrushed area reads as "faces" */}
+ <FaceDots />
+
+ {/* Pixelated overlay — the layer the brush "reveals" through the mask */}
+ <svg
+ width="100%"
+ height="100%"
+ viewBox={`0 0 ${STAGE_W} ${STAGE_H}`}
+ style={{ position: "absolute", inset: 0, pointerEvents: "none" }}
+ >
+ <defs>
+ <mask id="brush-reveal-mask" maskUnits="userSpaceOnUse">
+ <rect width={STAGE_W} height={STAGE_H} fill="white" />
+ {maskPathD && (
+ <path
+ d={maskPathD}
+ stroke="black"
+ strokeWidth={brushSize}
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ fill="none"
+ />
+ )}
+ </mask>
+ <pattern
+ id="pixel-overlay"
+ x="0"
+ y="0"
+ width="32"
+ height="32"
+ patternUnits="userSpaceOnUse"
+ >
+ <rect width="32" height="32" fill={overlayColor} />
+ <rect width="16" height="16" fill="rgba(255,255,255,0.04)" />
+ <rect x="16" y="16" width="16" height="16" fill="rgba(0,0,0,0.25)" />
+ </pattern>
+ </defs>
+ <rect
+ width={STAGE_W}
+ height={STAGE_H}
+ fill="url(#pixel-overlay)"
+ mask="url(#brush-reveal-mask)"
+ />
+ </svg>
+
+ {/* Cursor / fingertip */}
+ <div
+ style={{
+ position: "absolute",
+ left: pos.x - brushSize / 2,
+ top: pos.y - brushSize / 2,
+ width: brushSize,
+ height: brushSize,
+ borderRadius: "50%",
+ background: cursorColor,
+ border: "1.5px solid rgba(255,255,255,0.85)",
+ boxShadow:
+ "0 8px 24px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.15)",
+ transform: `scale(${cursorScale})`,
+ transformOrigin: "center",
+ pointerEvents: "none",
+ zIndex: 9999,
+ }}
+ />
+ </div>
+ );
+}
+
+function FaceDots() {
+ return (
+ <svg
+ width="100%"
+ height="100%"
+ viewBox={`0 0 ${STAGE_W} ${STAGE_H}`}
+ style={{ position: "absolute", inset: 0, pointerEvents: "none" }}
+ >
+ {/* Left face */}
+ <circle cx="320" cy="300" r="10" fill="rgba(0,0,0,0.55)" />
+ <circle cx="420" cy="300" r="10" fill="rgba(0,0,0,0.55)" />
+ <path
+ d="M310 360 Q370 390 430 360"
+ stroke="rgba(0,0,0,0.55)"
+ strokeWidth="6"
+ fill="none"
+ strokeLinecap="round"
+ />
+ {/* Right face */}
+ <circle cx="860" cy="300" r="10" fill="rgba(0,0,0,0.55)" />
+ <circle cx="960" cy="300" r="10" fill="rgba(0,0,0,0.55)" />
+ <path
+ d="M850 360 Q910 390 970 360"
+ stroke="rgba(0,0,0,0.55)"
+ strokeWidth="6"
+ fill="none"
+ strokeLinecap="round"
+ />
+ </svg>
+ );
+}
diff --git a/registry/remocn/image-expand-to-fullscreen/config.ts b/registry/remocn/image-expand-to-fullscreen/config.ts
new file mode 100644
index 00000000..de4193dc
--- /dev/null
+++ b/registry/remocn/image-expand-to-fullscreen/config.ts
@@ -0,0 +1,61 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const imageExpandToFullscreenConfig: ComponentConfig = {
+ componentName: "ImageExpandToFullscreen",
+ importPath: "@/components/remocn/image-expand-to-fullscreen",
+ controls: {
+ morphAt: {
+ type: "number",
+ default: 30,
+ min: 0,
+ max: 240,
+ step: 1,
+ label: "Morph at (frame)",
+ },
+ borderRadiusFrom: {
+ type: "number",
+ default: 12,
+ min: 0,
+ max: 40,
+ step: 1,
+ label: "Radius from",
+ },
+ borderRadiusTo: {
+ type: "number",
+ default: 16,
+ min: 0,
+ max: 40,
+ step: 1,
+ label: "Radius to",
+ },
+ imageColorA: { type: "color", default: "#ff6b6b", label: "Image color A" },
+ imageColorB: { type: "color", default: "#845ec2", label: "Image color B" },
+ imageColorC: { type: "color", default: "#4d8dff", label: "Image color C" },
+ feedBackground: {
+ type: "color",
+ default: "#f4f4f5",
+ label: "Feed background",
+ },
+ editorBackground: {
+ type: "color",
+ default: "#0a0a0a",
+ label: "Editor background",
+ },
+ accent: { type: "color", default: "#fafafa", label: "Accent" },
+ postAuthor: {
+ type: "text",
+ default: "Maya Larsson",
+ label: "Post author",
+ },
+ postBody: {
+ type: "text",
+ default:
+ "Sunset over the old harbor — color graded straight out of camera.",
+ label: "Post body",
+ },
+ },
+ durationInFrames: 180,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/image-expand-to-fullscreen/index.tsx b/registry/remocn/image-expand-to-fullscreen/index.tsx
new file mode 100644
index 00000000..eadf6935
--- /dev/null
+++ b/registry/remocn/image-expand-to-fullscreen/index.tsx
@@ -0,0 +1,334 @@
+"use client";
+
+import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";
+
+export interface ImageExpandRect {
+ top: number;
+ left: number;
+ width: number;
+ height: number;
+}
+
+export interface ImageExpandToFullscreenProps {
+ from?: ImageExpandRect;
+ to?: ImageExpandRect;
+ borderRadiusFrom?: number;
+ borderRadiusTo?: number;
+ morphAt?: number;
+ imageColorA?: string;
+ imageColorB?: string;
+ imageColorC?: string;
+ feedBackground?: string;
+ editorBackground?: string;
+ accent?: string;
+ postAuthor?: string;
+ postBody?: string;
+ speed?: number;
+ className?: string;
+}
+
+const FONT_FAMILY =
+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
+
+const VIEWPORT_W = 1280;
+const VIEWPORT_H = 720;
+
+const DEFAULT_FROM: ImageExpandRect = {
+ left: 460,
+ top: 280,
+ width: 360,
+ height: 200,
+};
+
+const DEFAULT_TO: ImageExpandRect = {
+ left: 200,
+ top: 120,
+ width: 880,
+ height: 480,
+};
+
+export function ImageExpandToFullscreen({
+ from = DEFAULT_FROM,
+ to = DEFAULT_TO,
+ borderRadiusFrom = 12,
+ borderRadiusTo = 16,
+ morphAt = 30,
+ imageColorA = "#ff6b6b",
+ imageColorB = "#845ec2",
+ imageColorC = "#4d8dff",
+ feedBackground = "#f4f4f5",
+ editorBackground = "#0a0a0a",
+ accent = "#fafafa",
+ postAuthor = "Maya Larsson",
+ postBody = "Sunset over the old harbor — color graded straight out of camera.",
+ speed = 1,
+ className,
+}: ImageExpandToFullscreenProps) {
+ const frame = useCurrentFrame() * speed;
+ const { fps } = useVideoConfig();
+
+ // ONE spring drives the entire shared-element transition. Slightly more
+ // critically damped than the morphing modal — the image lands with a
+ // tight settle rather than a heavy bloom.
+ const morph = spring({
+ frame: frame - morphAt,
+ fps,
+ config: { mass: 1.4, damping: 24, stiffness: 130 },
+ });
+
+ const left = interpolate(morph, [0, 1], [from.left, to.left]);
+ const top = interpolate(morph, [0, 1], [from.top, to.top]);
+ const width = interpolate(morph, [0, 1], [from.width, to.width]);
+ const height = interpolate(morph, [0, 1], [from.height, to.height]);
+ const radius = interpolate(morph, [0, 1], [borderRadiusFrom, borderRadiusTo]);
+
+ // Feed UI fades fully out in the FIRST half of the morph; the dark
+ // editor background fades in across the same window.
+ const feedOpacity = interpolate(morph, [0, 0.5], [1, 0], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ });
+ const editorOpacity = interpolate(morph, [0, 0.5], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ });
+
+ // Toolbars slide in during the LAST third of the morph — they should
+ // feel called in by the image landing at fullscreen.
+ const toolbarOpacity = interpolate(morph, [0.5, 1], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ });
+ const topToolbarTy = interpolate(morph, [0.5, 1], [-100, 0], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ });
+ const bottomToolbarTy = interpolate(morph, [0.5, 1], [100, 0], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ });
+
+ const imageGradient = `linear-gradient(135deg, ${imageColorA}, ${imageColorB}, ${imageColorC})`;
+
+ return (
+ <div
+ className={className}
+ style={{
+ position: "absolute",
+ inset: 0,
+ overflow: "hidden",
+ fontFamily: FONT_FAMILY,
+ }}
+ >
+ {/* Feed background (light page) */}
+ <div
+ style={{
+ position: "absolute",
+ inset: 0,
+ background: feedBackground,
+ opacity: feedOpacity,
+ }}
+ />
+
+ {/* Editor background (dark canvas) */}
+ <div
+ style={{
+ position: "absolute",
+ inset: 0,
+ background: editorBackground,
+ opacity: editorOpacity,
+ }}
+ />
+
+ {/* Fake post card living on the feed */}
+ <div
+ style={{
+ position: "absolute",
+ left: 380,
+ top: 140,
+ width: 520,
+ padding: 24,
+ background: "#ffffff",
+ borderRadius: 20,
+ boxShadow: "0 30px 80px rgba(15, 15, 25, 0.08)",
+ opacity: feedOpacity,
+ display: "flex",
+ flexDirection: "column",
+ gap: 16,
+ }}
+ >
+ {/* Author row */}
+ <div style={{ display: "flex", alignItems: "center", gap: 12 }}>
+ <div
+ style={{
+ width: 44,
+ height: 44,
+ borderRadius: 999,
+ background: imageGradient,
+ }}
+ />
+ <div style={{ display: "flex", flexDirection: "column", gap: 2 }}>
+ <div
+ style={{
+ fontSize: 15,
+ fontWeight: 600,
+ color: "#0a0a0a",
+ letterSpacing: "-0.005em",
+ }}
+ >
+ {postAuthor}
+ </div>
+ <div style={{ fontSize: 12, color: "#71717a" }}>2h ago</div>
+ </div>
+ </div>
+
+ {/* Body text */}
+ <div
+ style={{
+ fontSize: 14,
+ lineHeight: 1.5,
+ color: "#27272a",
+ }}
+ >
+ {postBody}
+ </div>
+
+ {/* Spacer where the thumbnail visually lives — the actual
+ morphing image is rendered absolutely below so it can lift
+ cleanly off the card. */}
+ <div
+ style={{
+ width: "100%",
+ height: 200,
+ borderRadius: 12,
+ background: "transparent",
+ }}
+ />
+
+ {/* Action row */}
+ <div style={{ display: "flex", gap: 16 }}>
+ {[0, 1, 2].map((i) => (
+ <div
+ key={i}
+ style={{
+ width: 28,
+ height: 28,
+ borderRadius: 8,
+ background: "#f4f4f5",
+ }}
+ />
+ ))}
+ </div>
+ </div>
+
+ {/* The morphing image — driven entirely by the single spring */}
+ <div
+ style={{
+ position: "absolute",
+ left,
+ top,
+ width,
+ height,
+ borderRadius: radius,
+ background: imageGradient,
+ boxShadow:
+ "0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06)",
+ overflow: "hidden",
+ }}
+ />
+
+ {/* Top toolbar */}
+ <div
+ style={{
+ position: "absolute",
+ top: 0,
+ left: 0,
+ right: 0,
+ height: 64,
+ padding: "0 24px",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "space-between",
+ background: "rgba(15, 15, 18, 0.6)",
+ backdropFilter: "blur(20px)",
+ WebkitBackdropFilter: "blur(20px)",
+ borderBottom: "1px solid rgba(255, 255, 255, 0.06)",
+ opacity: toolbarOpacity,
+ transform: `translateY(${topToolbarTy}%)`,
+ }}
+ >
+ <div style={{ display: "flex", alignItems: "center", gap: 12 }}>
+ <div
+ style={{
+ width: 32,
+ height: 32,
+ borderRadius: 8,
+ background: "rgba(255, 255, 255, 0.08)",
+ }}
+ />
+ <div
+ style={{
+ fontSize: 14,
+ fontWeight: 500,
+ color: accent,
+ letterSpacing: "-0.005em",
+ }}
+ >
+ Editor
+ </div>
+ </div>
+ <div style={{ display: "flex", gap: 10 }}>
+ {[0, 1, 2, 3].map((i) => (
+ <div
+ key={i}
+ style={{
+ width: 32,
+ height: 32,
+ borderRadius: 8,
+ background: "rgba(255, 255, 255, 0.06)",
+ }}
+ />
+ ))}
+ </div>
+ </div>
+
+ {/* Bottom toolbar */}
+ <div
+ style={{
+ position: "absolute",
+ bottom: 0,
+ left: 0,
+ right: 0,
+ height: 80,
+ padding: "0 24px",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ gap: 14,
+ background: "rgba(15, 15, 18, 0.6)",
+ backdropFilter: "blur(20px)",
+ WebkitBackdropFilter: "blur(20px)",
+ borderTop: "1px solid rgba(255, 255, 255, 0.06)",
+ opacity: toolbarOpacity,
+ transform: `translateY(${bottomToolbarTy}%)`,
+ }}
+ >
+ {[0, 1, 2, 3, 4, 5].map((i) => (
+ <div
+ key={i}
+ style={{
+ width: 44,
+ height: 44,
+ borderRadius: 12,
+ background:
+ i === 2
+ ? accent
+ : "rgba(255, 255, 255, 0.06)",
+ border: "1px solid rgba(255, 255, 255, 0.08)",
+ }}
+ />
+ ))}
+ </div>
+ </div>
+ );
+}
diff --git a/registry/remocn/swipe-transition-wipe/config.ts b/registry/remocn/swipe-transition-wipe/config.ts
new file mode 100644
index 00000000..70470517
--- /dev/null
+++ b/registry/remocn/swipe-transition-wipe/config.ts
@@ -0,0 +1,77 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const swipeTransitionWipeConfig: ComponentConfig = {
+ componentName: "SwipeTransitionWipe",
+ importPath: "@/components/remocn/swipe-transition-wipe",
+ controls: {
+ direction: {
+ type: "select",
+ default: "left",
+ options: ["left", "right"],
+ label: "Direction",
+ },
+ swipeAt: {
+ type: "number",
+ default: 30,
+ min: 0,
+ max: 120,
+ step: 1,
+ label: "Swipe at (frame)",
+ },
+ parallaxFactor: {
+ type: "number",
+ default: 0.6,
+ min: 0,
+ max: 1,
+ step: 0.05,
+ label: "Parallax factor",
+ },
+ dimStrength: {
+ type: "number",
+ default: 0.4,
+ min: 0,
+ max: 1,
+ step: 0.05,
+ label: "Dim strength",
+ },
+ labelA: {
+ type: "text",
+ default: "First",
+ label: "Label A",
+ },
+ labelB: {
+ type: "text",
+ default: "Second",
+ label: "Label B",
+ },
+ colorA1: {
+ type: "color",
+ default: "#0ea5e9",
+ label: "Color A1",
+ },
+ colorA2: {
+ type: "color",
+ default: "#1e3a8a",
+ label: "Color A2",
+ },
+ colorB1: {
+ type: "color",
+ default: "#f97316",
+ label: "Color B1",
+ },
+ colorB2: {
+ type: "color",
+ default: "#9333ea",
+ label: "Color B2",
+ },
+ background: {
+ type: "color",
+ default: "#050505",
+ label: "Background",
+ },
+ },
+ durationInFrames: 180,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/swipe-transition-wipe/index.tsx b/registry/remocn/swipe-transition-wipe/index.tsx
new file mode 100644
index 00000000..8d0e2d45
--- /dev/null
+++ b/registry/remocn/swipe-transition-wipe/index.tsx
@@ -0,0 +1,230 @@
+"use client";
+
+import type { ReactNode } from "react";
+import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";
+
+export interface SwipeTransitionWipeProps {
+ sceneA?: ReactNode;
+ sceneB?: ReactNode;
+ labelA?: string;
+ labelB?: string;
+ colorA1?: string;
+ colorA2?: string;
+ colorB1?: string;
+ colorB2?: string;
+ background?: string;
+ direction?: "left" | "right";
+ swipeAt?: number;
+ parallaxFactor?: number;
+ dimStrength?: number;
+ speed?: number;
+ className?: string;
+}
+
+const FONT_FAMILY =
+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
+
+function DefaultScene({
+ label,
+ c1,
+ c2,
+}: {
+ label: string;
+ c1: string;
+ c2: string;
+}) {
+ return (
+ <div
+ style={{
+ position: "absolute",
+ inset: 0,
+ background: `linear-gradient(135deg, ${c1} 0%, ${c2} 100%)`,
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ color: "white",
+ fontFamily: FONT_FAMILY,
+ fontSize: 128,
+ fontWeight: 700,
+ letterSpacing: "-0.05em",
+ textShadow: "0 8px 40px rgba(0,0,0,0.35)",
+ }}
+ >
+ {label}
+ </div>
+ );
+}
+
+function ParallaxBackground({ background }: { background: string }) {
+ // Doubled-width dot grid layer so parallax translation never reveals an edge.
+ const dots: Array<{ x: number; y: number }> = [];
+ const cols = 40;
+ const rows = 12;
+ const gapX = 64;
+ const gapY = 64;
+ for (let r = 0; r < rows; r++) {
+ for (let c = 0; c < cols; c++) {
+ dots.push({ x: c * gapX + 32, y: r * gapY + 32 });
+ }
+ }
+ return (
+ <div
+ style={{
+ position: "absolute",
+ top: 0,
+ left: 0,
+ width: "200%",
+ height: "100%",
+ background,
+ }}
+ >
+ <svg
+ width="100%"
+ height="100%"
+ style={{ position: "absolute", inset: 0 }}
+ >
+ {dots.map((d, i) => (
+ <circle
+ key={i}
+ cx={d.x}
+ cy={d.y}
+ r={2}
+ fill="rgba(255,255,255,0.08)"
+ />
+ ))}
+ </svg>
+ </div>
+ );
+}
+
+export function SwipeTransitionWipe({
+ sceneA,
+ sceneB,
+ labelA = "First",
+ labelB = "Second",
+ colorA1 = "#0ea5e9",
+ colorA2 = "#1e3a8a",
+ colorB1 = "#f97316",
+ colorB2 = "#9333ea",
+ background = "#050505",
+ direction = "left",
+ swipeAt = 30,
+ parallaxFactor = 0.6,
+ dimStrength = 0.4,
+ speed = 1,
+ className,
+}: SwipeTransitionWipeProps) {
+ const frame = useCurrentFrame() * speed;
+ const { fps } = useVideoConfig();
+
+ // A snappy spring with a touch of overshoot — feels like a flick.
+ const swipe = spring({
+ frame: frame - swipeAt,
+ fps,
+ config: { mass: 1, damping: 22, stiffness: 140 },
+ durationInFrames: 50,
+ });
+
+ // direction: "left" → outgoing slides left (translateX negative).
+ // direction: "right" → outgoing slides right (translateX positive).
+ const sign = direction === "left" ? -1 : 1;
+
+ // Foreground slider: 0% → -100% (or +100%) of its own width.
+ const foregroundTx = swipe * 100 * sign;
+
+ // Parallax background moves at parallaxFactor of foreground speed.
+ // Layer is 200% wide so it can travel up to 50% in either direction.
+ const backgroundTx = swipe * 50 * sign * parallaxFactor;
+
+ // Outgoing scene gets darker as it leaves.
+ const dimAlpha = interpolate(swipe, [0, 1], [0, dimStrength], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ });
+
+ const sceneAContent = sceneA ?? (
+ <DefaultScene label={labelA} c1={colorA1} c2={colorA2} />
+ );
+ const sceneBContent = sceneB ?? (
+ <DefaultScene label={labelB} c1={colorB1} c2={colorB2} />
+ );
+
+ // Order children so the incoming scene sits next to the outgoing one
+ // in the swipe direction. For "left" swipes the new scene must be to
+ // the right; for "right" swipes it must be to the left.
+ const orderedScenes =
+ direction === "left"
+ ? [sceneAContent, sceneBContent]
+ : [sceneBContent, sceneAContent];
+
+ // For "right" swipes the slider needs to start at -100% so that scene A
+ // is centered on stage initially.
+ const baseOffset = direction === "left" ? 0 : -100;
+ const sliderTx = baseOffset + foregroundTx;
+
+ return (
+ <div
+ className={className}
+ style={{
+ position: "absolute",
+ inset: 0,
+ overflow: "hidden",
+ background,
+ }}
+ >
+ {/* Parallax background layer */}
+ <div
+ style={{
+ position: "absolute",
+ inset: 0,
+ transform: `translateX(${backgroundTx}%)`,
+ willChange: "transform",
+ }}
+ >
+ <ParallaxBackground background={background} />
+ </div>
+
+ {/* Foreground slider — two scenes laid out side by side */}
+ <div
+ style={{
+ position: "absolute",
+ inset: 0,
+ display: "flex",
+ width: "200%",
+ transform: `translateX(${sliderTx}%)`,
+ willChange: "transform",
+ }}
+ >
+ {orderedScenes.map((scene, i) => {
+ // The "outgoing" scene is whichever one started centered.
+ const isOutgoing =
+ (direction === "left" && i === 0) ||
+ (direction === "right" && i === 1);
+ return (
+ <div
+ key={i}
+ style={{
+ position: "relative",
+ width: "50%",
+ flexShrink: 0,
+ overflow: "hidden",
+ }}
+ >
+ {scene}
+ {isOutgoing && (
+ <div
+ style={{
+ position: "absolute",
+ inset: 0,
+ background: `rgba(0,0,0,${dimAlpha})`,
+ pointerEvents: "none",
+ }}
+ />
+ )}
+ </div>
+ );
+ })}
+ </div>
+ </div>
+ );
+}
diff --git a/registry/remocn/tool-menu-slide-in/config.ts b/registry/remocn/tool-menu-slide-in/config.ts
new file mode 100644
index 00000000..3a12d926
--- /dev/null
+++ b/registry/remocn/tool-menu-slide-in/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const toolMenuSlideInConfig: ComponentConfig = {
+ componentName: "ToolMenuSlideIn",
+ importPath: "@/components/remocn/tool-menu-slide-in",
+ controls: {
+ panelStartFrame: {
+ type: "number",
+ default: 18,
+ min: 0,
+ max: 120,
+ step: 1,
+ label: "Panel start (frame)",
+ },
+ iconStagger: {
+ type: "number",
+ default: 4,
+ min: 1,
+ max: 20,
+ step: 1,
+ label: "Icon stagger (frames)",
+ },
+ iconCount: {
+ type: "number",
+ default: 5,
+ min: 3,
+ max: 8,
+ step: 1,
+ label: "Icon count",
+ },
+ accent: { type: "color", default: "#a78bfa", label: "Accent" },
+ panelColor: {
+ type: "color",
+ default: "#12121299",
+ label: "Panel color",
+ },
+ background: { type: "color", default: "#070708", label: "Background" },
+ iconBg: { type: "color", default: "#ffffff10", label: "Icon background" },
+ },
+ durationInFrames: 180,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/tool-menu-slide-in/index.tsx b/registry/remocn/tool-menu-slide-in/index.tsx
new file mode 100644
index 00000000..7325c276
--- /dev/null
+++ b/registry/remocn/tool-menu-slide-in/index.tsx
@@ -0,0 +1,273 @@
+"use client";
+
+import {
+ interpolate,
+ Sequence,
+ spring,
+ useCurrentFrame,
+ useVideoConfig,
+} from "remotion";
+
+export interface ToolMenuSlideInProps {
+ panelStartFrame?: number;
+ iconStagger?: number;
+ iconCount?: number;
+ accent?: string;
+ panelColor?: string;
+ background?: string;
+ iconBg?: string;
+ speed?: number;
+ className?: string;
+}
+
+const FONT_FAMILY =
+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
+
+const ICON_GLYPHS = ["B", "S", "C", "P", "E", "T", "M", "L"];
+const PANEL_SLIDE_DURATION = 22;
+
+export function ToolMenuSlideIn({
+ panelStartFrame = 18,
+ iconStagger = 4,
+ iconCount = 5,
+ accent = "#a78bfa",
+ panelColor = "rgba(18, 18, 22, 0.72)",
+ background = "#070708",
+ iconBg = "rgba(255,255,255,0.06)",
+ speed = 1,
+ className,
+}: ToolMenuSlideInProps) {
+ const rawFrame = useCurrentFrame();
+ const frame = rawFrame * speed;
+ const { fps } = useVideoConfig();
+
+ const safeIconCount = Math.max(1, Math.min(8, Math.floor(iconCount)));
+
+ // Snappy slide-in: high stiffness, moderate damping, low mass.
+ const slide = spring({
+ frame: frame - panelStartFrame,
+ fps,
+ config: { damping: 20, stiffness: 320, mass: 0.6 },
+ });
+
+ const panelTy = interpolate(slide, [0, 1], [120, 0]);
+ const panelOpacity = interpolate(slide, [0, 0.4], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ });
+
+ // Icon sizing
+ const ICON_SIZE = 64;
+ const ICON_GAP = 14;
+ const PANEL_PADDING = 14;
+ const panelInnerWidth =
+ safeIconCount * ICON_SIZE + (safeIconCount - 1) * ICON_GAP;
+ const panelWidth = panelInnerWidth + PANEL_PADDING * 2;
+ const panelHeight = ICON_SIZE + PANEL_PADDING * 2;
+
+ return (
+ <div
+ className={className}
+ style={{
+ position: "absolute",
+ inset: 0,
+ overflow: "hidden",
+ background,
+ fontFamily: FONT_FAMILY,
+ // subtle dot grid for editor-canvas feel
+ backgroundImage:
+ "radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px)",
+ backgroundSize: "22px 22px",
+ }}
+ >
+ {/* Top toolbar */}
+ <div
+ style={{
+ position: "absolute",
+ top: 24,
+ left: 24,
+ right: 24,
+ height: 44,
+ borderRadius: 12,
+ background: "rgba(255,255,255,0.04)",
+ border: "1px solid rgba(255,255,255,0.06)",
+ display: "flex",
+ alignItems: "center",
+ padding: "0 14px",
+ gap: 10,
+ backdropFilter: "blur(8px)",
+ }}
+ >
+ <div
+ style={{
+ width: 10,
+ height: 10,
+ borderRadius: 999,
+ background: "rgba(255,255,255,0.18)",
+ }}
+ />
+ <div
+ style={{
+ width: 10,
+ height: 10,
+ borderRadius: 999,
+ background: "rgba(255,255,255,0.12)",
+ }}
+ />
+ <div
+ style={{
+ width: 10,
+ height: 10,
+ borderRadius: 999,
+ background: "rgba(255,255,255,0.12)",
+ }}
+ />
+ <div
+ style={{
+ marginLeft: 16,
+ fontSize: 12,
+ color: "rgba(255,255,255,0.42)",
+ letterSpacing: "0.02em",
+ }}
+ >
+ editor — untitled.png
+ </div>
+ </div>
+
+ {/* Centered placeholder canvas (the "image being edited") */}
+ <div
+ style={{
+ position: "absolute",
+ left: "50%",
+ top: "50%",
+ width: 720,
+ height: 420,
+ transform: "translate(-50%, -54%)",
+ borderRadius: 18,
+ background:
+ "linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015))",
+ border: "1px solid rgba(255,255,255,0.06)",
+ boxShadow:
+ "inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -40px 80px rgba(0,0,0,0.45), 0 30px 80px rgba(0,0,0,0.5)",
+ overflow: "hidden",
+ }}
+ >
+ {/* Faux content block */}
+ <div
+ style={{
+ position: "absolute",
+ inset: 0,
+ background:
+ "radial-gradient(60% 80% at 50% 40%, rgba(255,255,255,0.06), transparent 70%)",
+ }}
+ />
+ </div>
+
+ {/* The slide-in tool menu */}
+ <div
+ style={{
+ position: "absolute",
+ bottom: 60,
+ left: "50%",
+ width: panelWidth,
+ height: panelHeight,
+ transform: `translateX(-50%) translateY(${panelTy}%)`,
+ opacity: panelOpacity,
+ background: panelColor,
+ backdropFilter: "blur(20px)",
+ WebkitBackdropFilter: "blur(20px)",
+ border: "1px solid rgba(255,255,255,0.08)",
+ borderRadius: panelHeight / 2,
+ boxShadow:
+ "0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02), inset 0 1px 0 rgba(255,255,255,0.08)",
+ padding: PANEL_PADDING,
+ display: "flex",
+ alignItems: "center",
+ gap: ICON_GAP,
+ }}
+ >
+ {Array.from({ length: safeIconCount }).map((_, i) => {
+ const startAt =
+ panelStartFrame + PANEL_SLIDE_DURATION + iconStagger * i;
+ const isActive = i === 0;
+ return (
+ <Sequence
+ key={i}
+ from={startAt}
+ layout="none"
+ name={`tool-icon-${i}`}
+ >
+ <ToolIcon
+ glyph={ICON_GLYPHS[i % ICON_GLYPHS.length]}
+ size={ICON_SIZE}
+ bg={iconBg}
+ accent={accent}
+ active={isActive}
+ fps={fps}
+ />
+ </Sequence>
+ );
+ })}
+ </div>
+ </div>
+ );
+}
+
+function ToolIcon({
+ glyph,
+ size,
+ bg,
+ accent,
+ active,
+ fps,
+}: {
+ glyph: string;
+ size: number;
+ bg: string;
+ accent: string;
+ active: boolean;
+ fps: number;
+}) {
+ const frame = useCurrentFrame();
+ const pop = spring({
+ frame,
+ fps,
+ config: { damping: 14, stiffness: 260, mass: 0.7 },
+ });
+ const scale = interpolate(pop, [0, 1], [0, 1]);
+ const opacity = interpolate(pop, [0, 0.6], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ });
+
+ return (
+ <div
+ style={{
+ width: size,
+ height: size,
+ borderRadius: 14,
+ background: active
+ ? `linear-gradient(180deg, ${accent}33, ${accent}14)`
+ : bg,
+ border: active
+ ? `1px solid ${accent}55`
+ : "1px solid rgba(255,255,255,0.06)",
+ boxShadow: active
+ ? `inset 0 1px 0 rgba(255,255,255,0.12), 0 0 24px ${accent}33`
+ : "inset 0 1px 0 rgba(255,255,255,0.05)",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ color: active ? "#ffffff" : "rgba(255,255,255,0.7)",
+ fontSize: 22,
+ fontWeight: 600,
+ letterSpacing: "-0.01em",
+ transform: `scale(${scale})`,
+ opacity,
+ transformOrigin: "center",
+ }}
+ >
+ {glyph}
+ </div>
+ );
+}