Skip to content

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

feat: added grain dissolve, wave wipe, ripple zoom

dev_wandry699cd7a808fd
diff --git a/components/docs/examples/grain-dissolve-example.tsx b/components/docs/examples/grain-dissolve-example.tsx
new file mode 100644
index 00000000..4a6c9f7d
--- /dev/null
+++ b/components/docs/examples/grain-dissolve-example.tsx
@@ -0,0 +1,98 @@
+"use client";
+
+import { AbsoluteFill, Sequence } from "remotion";
+import { TransitionSeries, linearTiming } from "@remotion/transitions";
+import {
+ grainDissolve,
+ type GrainDissolveProps,
+} from "@/registry/remocn/grain-dissolve";
+import { SoftBlurIn } from "@/registry/remocn/soft-blur-in";
+
+const FONT_FAMILY =
+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
+
+function Scene({ label, background }: { label: string; background: string }) {
+ return (
+ <AbsoluteFill
+ style={{
+ background,
+ alignItems: "center",
+ justifyContent: "center",
+ }}
+ >
+ <span
+ style={{
+ fontFamily: FONT_FAMILY,
+ fontSize: 96,
+ fontWeight: 600,
+ letterSpacing: "-0.03em",
+ color: "#f2f2f2",
+ }}
+ >
+ {label}
+ </span>
+ </AbsoluteFill>
+ );
+}
+
+interface GrainDissolveExampleProps {
+ shape?: GrainDissolveProps["shape"];
+ noise?: number;
+ zoom?: number;
+ colorBack?: string;
+ speed?: number;
+}
+
+export function GrainDissolveExampleScene({
+ shape,
+ noise,
+ zoom,
+ colorBack,
+ speed,
+}: GrainDissolveExampleProps) {
+ return (
+ <TransitionSeries>
+ <TransitionSeries.Sequence durationInFrames={96}>
+ <Scene label="Scene A" background="#141318" />
+ </TransitionSeries.Sequence>
+ <TransitionSeries.Transition
+ timing={linearTiming({ durationInFrames: 76 })}
+ presentation={grainDissolve({ shape, noise, zoom, colorBack, speed })}
+ />
+ <TransitionSeries.Sequence durationInFrames={96}>
+ <AbsoluteFill style={{ background: "#141318" }}>
+ <Sequence from={54}>
+ <SoftBlurIn text="Grain Dissolve" fontSize={96} color="#f2f2f2" />
+ </Sequence>
+ </AbsoluteFill>
+ </TransitionSeries.Sequence>
+ </TransitionSeries>
+ );
+}
+
+export const grainDissolveExampleCode = (
+ values: Record<string, unknown>,
+): string => {
+ const shape = (values.shape as string) ?? "blob";
+ const noise = (values.noise as number) ?? 0.3;
+ const zoom = (values.zoom as number) ?? 2;
+ const colorBack = (values.colorBack as string) ?? "#141318";
+ const speed = (values.speed as number) ?? 1;
+ return `import { TransitionSeries, linearTiming } from "@remotion/transitions";
+import { grainDissolve } from "@/components/remocn/grain-dissolve";
+
+export const MyVideo = () => (
+ <TransitionSeries>
+ <TransitionSeries.Sequence durationInFrames={96}>
+ <SceneA />
+ </TransitionSeries.Sequence>
+ <TransitionSeries.Transition
+ timing={linearTiming({ durationInFrames: 76 })}
+ presentation={grainDissolve({ shape: "${shape}", noise: ${noise}, zoom: ${zoom}, colorBack: "${colorBack}", speed: ${speed} })}
+ />
+ <TransitionSeries.Sequence durationInFrames={96}>
+ <SceneB />
+ </TransitionSeries.Sequence>
+ </TransitionSeries>
+);`;
+};
diff --git a/components/docs/examples/ripple-zoom-example.tsx b/components/docs/examples/ripple-zoom-example.tsx
new file mode 100644
index 00000000..fbd3d844
--- /dev/null
+++ b/components/docs/examples/ripple-zoom-example.tsx
@@ -0,0 +1,89 @@
+"use client";
+
+import { AbsoluteFill } from "remotion";
+import { TransitionSeries, linearTiming } from "@remotion/transitions";
+import { rippleZoom } from "@/registry/remocn/ripple-zoom";
+
+const FONT_FAMILY =
+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
+
+function Scene({ label }: { label: string }) {
+ return (
+ <AbsoluteFill
+ style={{
+ alignItems: "center",
+ justifyContent: "center",
+ }}
+ >
+ <span
+ style={{
+ fontFamily: FONT_FAMILY,
+ fontSize: 96,
+ fontWeight: 600,
+ letterSpacing: "-0.03em",
+ color: "#f2f2f2",
+ }}
+ >
+ {label}
+ </span>
+ </AbsoluteFill>
+ );
+}
+
+interface RippleZoomExampleProps {
+ zoom?: number;
+ intensity?: number;
+ softness?: number;
+ colorBack?: string;
+ speed?: number;
+}
+
+export function RippleZoomExampleScene({
+ zoom,
+ intensity,
+ softness,
+ colorBack,
+ speed,
+}: RippleZoomExampleProps) {
+ return (
+ <TransitionSeries>
+ <TransitionSeries.Sequence durationInFrames={102}>
+ <Scene label="Scene A" />
+ </TransitionSeries.Sequence>
+ <TransitionSeries.Transition
+ timing={linearTiming({ durationInFrames: 88 })}
+ presentation={rippleZoom({ zoom, intensity, softness, colorBack, speed })}
+ />
+ <TransitionSeries.Sequence durationInFrames={102}>
+ <Scene label="Ripple Zoom" />
+ </TransitionSeries.Sequence>
+ </TransitionSeries>
+ );
+}
+
+export const rippleZoomExampleCode = (
+ values: Record<string, unknown>,
+): string => {
+ const zoom = (values.zoom as number) ?? 4;
+ const intensity = (values.intensity as number) ?? 0.5;
+ const softness = (values.softness as number) ?? 0.5;
+ const colorBack = (values.colorBack as string) ?? "#141318";
+ const speed = (values.speed as number) ?? 1;
+ return `import { TransitionSeries, linearTiming } from "@remotion/transitions";
+import { rippleZoom } from "@/components/remocn/ripple-zoom";
+
+export const MyVideo = () => (
+ <TransitionSeries>
+ <TransitionSeries.Sequence durationInFrames={102}>
+ <SceneA />
+ </TransitionSeries.Sequence>
+ <TransitionSeries.Transition
+ timing={linearTiming({ durationInFrames: 88 })}
+ presentation={rippleZoom({ zoom: ${zoom}, intensity: ${intensity}, softness: ${softness}, colorBack: "${colorBack}", speed: ${speed} })}
+ />
+ <TransitionSeries.Sequence durationInFrames={102}>
+ <SceneB />
+ </TransitionSeries.Sequence>
+ </TransitionSeries>
+);`;
+};
diff --git a/components/docs/examples/swirl-dissolve-example.tsx b/components/docs/examples/swirl-dissolve-example.tsx
index 68661f9c..0aec3ca3 100644
--- a/components/docs/examples/swirl-dissolve-example.tsx
+++ b/components/docs/examples/swirl-dissolve-example.tsx
@@ -7,7 +7,7 @@ import { swirlDissolve } from "@/registry/remocn/swirl-dissolve";
const FONT_FAMILY =
"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
-function Scene({ label, background }: { label: string; background: string }) {
+function Scene({ label, background }: { label: string; background?: string }) {
return (
<AbsoluteFill
style={{
@@ -54,7 +54,7 @@ export function SwirlDissolveExampleScene({
presentation={swirlDissolve({ bandCount, softness, colorBack, speed })}
/>
<TransitionSeries.Sequence durationInFrames={110}>
- <Scene label="Scene B" background="#1a1922" />
+ <Scene label="Scene B" />
</TransitionSeries.Sequence>
</TransitionSeries>
);
diff --git a/components/docs/examples/warp-dissolve-example.tsx b/components/docs/examples/warp-dissolve-example.tsx
new file mode 100644
index 00000000..8f596d1b
--- /dev/null
+++ b/components/docs/examples/warp-dissolve-example.tsx
@@ -0,0 +1,92 @@
+"use client";
+
+import { AbsoluteFill, Sequence } from "remotion";
+import { TransitionSeries, linearTiming } from "@remotion/transitions";
+import { warpDissolve } from "@/registry/remocn/warp-dissolve";
+import { SoftBlurIn } from "@/registry/remocn/soft-blur-in";
+
+const FONT_FAMILY =
+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
+
+function Scene({ label, background }: { label: string; background: string }) {
+ return (
+ <AbsoluteFill
+ style={{
+ background,
+ alignItems: "center",
+ justifyContent: "center",
+ }}
+ >
+ <span
+ style={{
+ fontFamily: FONT_FAMILY,
+ fontSize: 96,
+ fontWeight: 600,
+ letterSpacing: "-0.03em",
+ color: "#f2f2f2",
+ }}
+ >
+ {label}
+ </span>
+ </AbsoluteFill>
+ );
+}
+
+interface WarpDissolveExampleProps {
+ distortion?: number;
+ swirl?: number;
+ softness?: number;
+ speed?: number;
+}
+
+export function WarpDissolveExampleScene({
+ distortion,
+ swirl,
+ softness,
+ speed,
+}: WarpDissolveExampleProps) {
+ return (
+ <TransitionSeries>
+ <TransitionSeries.Sequence durationInFrames={96}>
+ <Scene label="Scene A" background="#141318" />
+ </TransitionSeries.Sequence>
+ <TransitionSeries.Transition
+ timing={linearTiming({ durationInFrames: 76 })}
+ presentation={warpDissolve({ distortion, swirl, softness, speed })}
+ />
+ <TransitionSeries.Sequence durationInFrames={96}>
+ <AbsoluteFill style={{ background: "#141318" }}>
+ <Sequence from={50}>
+ <SoftBlurIn text="Warp Dissolve" fontSize={96} color="#f2f2f2" />
+ </Sequence>
+ </AbsoluteFill>
+ </TransitionSeries.Sequence>
+ </TransitionSeries>
+ );
+}
+
+export const warpDissolveExampleCode = (
+ values: Record<string, unknown>,
+): string => {
+ const distortion = (values.distortion as number) ?? 0.8;
+ const swirl = (values.swirl as number) ?? 0.6;
+ const softness = (values.softness as number) ?? 1;
+ const speed = (values.speed as number) ?? 1;
+ return `import { TransitionSeries, linearTiming } from "@remotion/transitions";
+import { warpDissolve } from "@/components/remocn/warp-dissolve";
+
+export const MyVideo = () => (
+ <TransitionSeries>
+ <TransitionSeries.Sequence durationInFrames={96}>
+ <SceneA />
+ </TransitionSeries.Sequence>
+ <TransitionSeries.Transition
+ timing={linearTiming({ durationInFrames: 76 })}
+ presentation={warpDissolve({ distortion: ${distortion}, swirl: ${swirl}, softness: ${softness}, speed: ${speed} })}
+ />
+ <TransitionSeries.Sequence durationInFrames={96}>
+ <SceneB />
+ </TransitionSeries.Sequence>
+ </TransitionSeries>
+);`;
+};
diff --git a/components/docs/examples/wave-wipe-example.tsx b/components/docs/examples/wave-wipe-example.tsx
new file mode 100644
index 00000000..a53d8ea7
--- /dev/null
+++ b/components/docs/examples/wave-wipe-example.tsx
@@ -0,0 +1,94 @@
+"use client";
+
+import { AbsoluteFill, Sequence } from "remotion";
+import { TransitionSeries, linearTiming } from "@remotion/transitions";
+import { waveWipe } from "@/registry/remocn/wave-wipe";
+import { SoftBlurIn } from "@/registry/remocn/soft-blur-in";
+
+const FONT_FAMILY =
+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
+
+function Scene({ label }: { label: string }) {
+ return (
+ <AbsoluteFill
+ style={{
+ alignItems: "center",
+ justifyContent: "center",
+ }}
+ >
+ <span
+ style={{
+ fontFamily: FONT_FAMILY,
+ fontSize: 96,
+ fontWeight: 600,
+ letterSpacing: "-0.03em",
+ color: "#f2f2f2",
+ }}
+ >
+ {label}
+ </span>
+ </AbsoluteFill>
+ );
+}
+
+interface WaveWipeExampleProps {
+ intensity?: number;
+ softness?: number;
+ noise?: number;
+ colorBack?: string;
+ speed?: number;
+}
+
+export function WaveWipeExampleScene({
+ intensity,
+ softness,
+ noise,
+ colorBack,
+ speed,
+}: WaveWipeExampleProps) {
+ return (
+ <TransitionSeries>
+ <TransitionSeries.Sequence durationInFrames={88}>
+ <Scene label="Scene A" />
+ </TransitionSeries.Sequence>
+ <TransitionSeries.Transition
+ timing={linearTiming({ durationInFrames: 60 })}
+ presentation={waveWipe({ intensity, softness, noise, colorBack, speed })}
+ />
+ <TransitionSeries.Sequence durationInFrames={88}>
+ <AbsoluteFill>
+ <Sequence from={48}>
+ <SoftBlurIn text="Wave Wipe" fontSize={96} color="#f2f2f2" />
+ </Sequence>
+ </AbsoluteFill>
+ </TransitionSeries.Sequence>
+ </TransitionSeries>
+ );
+}
+
+export const waveWipeExampleCode = (
+ values: Record<string, unknown>,
+): string => {
+ const intensity = (values.intensity as number) ?? 0.2;
+ const softness = (values.softness as number) ?? 0.7;
+ const noise = (values.noise as number) ?? 0.4;
+ const colorBack = (values.colorBack as string) ?? "#141318";
+ const speed = (values.speed as number) ?? 1;
+ return `import { TransitionSeries, linearTiming } from "@remotion/transitions";
+import { waveWipe } from "@/components/remocn/wave-wipe";
+
+export const MyVideo = () => (
+ <TransitionSeries>
+ <TransitionSeries.Sequence durationInFrames={88}>
+ <SceneA />
+ </TransitionSeries.Sequence>
+ <TransitionSeries.Transition
+ timing={linearTiming({ durationInFrames: 60 })}
+ presentation={waveWipe({ intensity: ${intensity}, softness: ${softness}, noise: ${noise}, colorBack: "${colorBack}", speed: ${speed} })}
+ />
+ <TransitionSeries.Sequence durationInFrames={88}>
+ <SceneB />
+ </TransitionSeries.Sequence>
+ </TransitionSeries>
+);`;
+};
diff --git a/config/site.ts b/config/site.ts
index 88ed7221..c228e795 100644
--- a/config/site.ts
+++ b/config/site.ts
@@ -57,6 +57,10 @@ export const NEW_BADGE_PATHS = new Set<string>([
"/docs/transitions/dither-dissolve",
"/docs/transitions/perlin-dissolve",
"/docs/transitions/smoke-dissolve",
+ "/docs/transitions/grain-dissolve",
+ "/docs/transitions/wave-wipe",
+ "/docs/transitions/ripple-zoom",
+ "/docs/transitions/warp-dissolve",
]);
export const FOOTER_NAV: NavLink[] = [
diff --git a/content/docs/components.mdx b/content/docs/components.mdx
index 6174f095..6ca0e029 100644
--- a/content/docs/components.mdx
+++ b/content/docs/components.mdx
@@ -424,6 +424,30 @@ Scene transitions, camera moves, and stylized wipes.
status: "stable",
href: "/docs/transitions/smoke-dissolve",
},
+ {
+ name: "GrainDissolve",
+ description: "Disintegrate the outgoing scene into soft grainy shapes and condense the next out of the noise",
+ status: "stable",
+ href: "/docs/transitions/grain-dissolve",
+ },
+ {
+ name: "WaveWipe",
+ description: "Sweep a grainy wave up across the frame and reveal the next scene from below",
+ status: "stable",
+ href: "/docs/transitions/wave-wipe",
+ },
+ {
+ name: "RippleZoom",
+ description: "Fly the camera through the center of grainy ripple rings while the next scene approaches from the depth",
+ status: "stable",
+ href: "/docs/transitions/ripple-zoom",
+ },
+ {
+ name: "WarpDissolve",
+ description: "Melt the outgoing scene into a folding domain-warp field that straightens into the next",
+ status: "stable",
+ href: "/docs/transitions/warp-dissolve",
+ },
]}
/>
diff --git a/content/docs/transitions/grain-dissolve.mdx b/content/docs/transitions/grain-dissolve.mdx
new file mode 100644
index 00000000..56e97893
--- /dev/null
+++ b/content/docs/transitions/grain-dissolve.mdx
@@ -0,0 +1,90 @@
+---
+title: Grain Dissolve
+description: Disintegrate the outgoing scene into soft grainy shapes and condense the next scene out of the noise
+---
+
+<ComponentPreview name="grain-dissolve" />
+
+## Installation
+
+<InstallBlock name="grain-dissolve" />
+
+## Usage
+
+`grainDissolve()` is a Remotion transition presentation. Pass it to a
+`TransitionSeries.Transition` between two sequences. The grain field starts as
+flat, hard-edged shapes and both `intensity` and `softness` sweep from 0 to 1
+across the transition — the figures grow, roughen into grain, and the incoming
+scene condenses out of the dissolved texture. Give the sweep enough frames to
+read (76 works well).
+
+```tsx
+import { TransitionSeries, linearTiming } from "@remotion/transitions";
+import { grainDissolve } from "@/components/remocn/grain-dissolve";
+
+export const MyVideo = () => (
+ <TransitionSeries>
+ <TransitionSeries.Sequence durationInFrames={96}>
+ <SceneA />
+ </TransitionSeries.Sequence>
+ <TransitionSeries.Transition
+ timing={linearTiming({ durationInFrames: 76 })}
+ presentation={grainDissolve()}
+ />
+ <TransitionSeries.Sequence durationInFrames={96}>
+ <SceneB />
+ </TransitionSeries.Sequence>
+ </TransitionSeries>
+);
+```
+
+The `shape` prop picks the figure family the field is built from — `"wave"`,
+`"dots"`, `"truchet"`, `"corners"`, `"ripple"`, `"blob"`, or `"sphere"`. Shapes
+are discrete (they cannot blend into each other), but each one gives the same
+sweep a different character: `"blob"` reads organic, `"wave"` calm and banded,
+`"dots"` halftone-like, `"sphere"` volumetric.
+
+## Props
+
+`grainDissolve(props)` accepts:
+
+<PropsTable
+ rows={[
+ {
+ name: "colors",
+ type: "string[]",
+ default: '["#3a3a52", "#4a4a68", "#8f88ae"]',
+ description: "Colors of the grain shapes, up to 7.",
+ },
+ {
+ name: "colorBack",
+ type: "string",
+ default: '"#141318"',
+ description: "Backdrop behind the shapes during the transition.",
+ },
+ {
+ name: "shape",
+ type: "string",
+ default: '"blob"',
+ description: "Figure family of the field. One of wave, dots, truchet, corners, ripple, blob, sphere.",
+ },
+ {
+ name: "noise",
+ type: "number",
+ default: "0.3",
+ description: "Amount of per-pixel grain over the shapes.",
+ },
+ {
+ name: "zoom",
+ type: "number",
+ default: "2",
+ description: "Magnification of the figure field. Raise it until the shapes fill the frame, lower it to show more of the backdrop.",
+ },
+ {
+ name: "speed",
+ type: "number",
+ default: "1",
+ description: "Shader animation speed.",
+ },
+ ]}
+/>
diff --git a/content/docs/transitions/meta.json b/content/docs/transitions/meta.json
index a474daf3..c07e22a3 100644
--- a/content/docs/transitions/meta.json
+++ b/content/docs/transitions/meta.json
@@ -3,15 +3,19 @@
"collapsible": false,
"pages": [
"index",
+ "grain-dissolve",
+ "wave-wipe",
+ "ripple-zoom",
+ "warp-dissolve",
+ "swirl-dissolve",
+ "dither-dissolve",
+ "perlin-dissolve",
+ "smoke-dissolve",
"zoom-through-transition",
"directional-wipe",
"spatial-push",
"frosted-glass-wipe",
"grid-pixelate-wipe",
- "chromatic-aberration-wipe",
- "swirl-dissolve",
- "dither-dissolve",
- "perlin-dissolve",
- "smoke-dissolve"
+ "chromatic-aberration-wipe"
]
}
diff --git a/content/docs/transitions/ripple-zoom.mdx b/content/docs/transitions/ripple-zoom.mdx
new file mode 100644
index 00000000..e264bac6
--- /dev/null
+++ b/content/docs/transitions/ripple-zoom.mdx
@@ -0,0 +1,92 @@
+---
+title: Ripple Zoom
+description: Fly the camera through the center of grainy ripple rings while the next scene approaches from the depth
+---
+
+<ComponentPreview name="ripple-zoom" />
+
+## Installation
+
+<InstallBlock name="ripple-zoom" />
+
+## Usage
+
+`rippleZoom()` is a Remotion transition presentation. Pass it to a
+`TransitionSeries.Transition` between two sequences. The outgoing scene blows
+past the camera, a grain-gradient ripple field opens up, and the camera dives
+through the center of the rings — the field magnifies toward `zoom` while the
+incoming scene counter-scales up from the depth, so the two motions read as
+one continuous dolly onto the new scene. Keep the incoming scene transparent
+so it lands on the ripple field. Give the flight enough frames to read (88
+works well).
+
+```tsx
+import { TransitionSeries, linearTiming } from "@remotion/transitions";
+import { rippleZoom } from "@/components/remocn/ripple-zoom";
+
+export const MyVideo = () => (
+ <TransitionSeries>
+ <TransitionSeries.Sequence durationInFrames={102}>
+ <SceneA />
+ </TransitionSeries.Sequence>
+ <TransitionSeries.Transition
+ timing={linearTiming({ durationInFrames: 88 })}
+ presentation={rippleZoom()}
+ />
+ <TransitionSeries.Sequence durationInFrames={102}>
+ <SceneB />
+ </TransitionSeries.Sequence>
+ </TransitionSeries>
+);
+```
+
+## Props
+
+`rippleZoom(props)` accepts:
+
+<PropsTable
+ rows={[
+ {
+ name: "colors",
+ type: "string[]",
+ default: '["#3a3a52", "#4a4a68", "#8f88ae"]',
+ description: "Colors of the ripple rings.",
+ },
+ {
+ name: "colorBack",
+ type: "string",
+ default: '"#141318"',
+ description: "Backdrop color between the rings. Match it to the scene backgrounds for a seamless dive.",
+ },
+ {
+ name: "intensity",
+ type: "number",
+ default: "0.5",
+ description: "Distortion strength of the ripple rings.",
+ },
+ {
+ name: "softness",
+ type: "number",
+ default: "0.5",
+ description: "Blending softness between the ring colors.",
+ },
+ {
+ name: "noise",
+ type: "number",
+ default: "0.5",
+ description: "Amount of per-pixel grain over the rings.",
+ },
+ {
+ name: "zoom",
+ type: "number",
+ default: "4",
+ description: "Final magnification of the ripple field — how deep the camera dives through the rings.",
+ },
+ {
+ name: "speed",
+ type: "number",
+ default: "1",
+ description: "Shader animation speed of the rings.",
+ },
+ ]}
+/>
diff --git a/content/docs/transitions/warp-dissolve.mdx b/content/docs/transitions/warp-dissolve.mdx
new file mode 100644
index 00000000..f4798b12
--- /dev/null
+++ b/content/docs/transitions/warp-dissolve.mdx
@@ -0,0 +1,77 @@
+---
+title: Warp Dissolve
+description: Melt the outgoing scene into a folding domain-warp field that straightens back out into the next scene
+---
+
+<ComponentPreview name="warp-dissolve" />
+
+## Installation
+
+<InstallBlock name="warp-dissolve" />
+
+## Usage
+
+`warpDissolve()` is a Remotion transition presentation. Pass it to a
+`TransitionSeries.Transition` between two sequences. The outgoing scene blurs
+and swells into a liquid color field, distortion peaks mid-transition, and the
+incoming scene sharpens out of the warp. Give it enough frames for the melt to
+read (76 works well).
+
+```tsx
+import { TransitionSeries, linearTiming } from "@remotion/transitions";
+import { warpDissolve } from "@/components/remocn/warp-dissolve";
+
+export const MyVideo = () => (
+ <TransitionSeries>
+ <TransitionSeries.Sequence durationInFrames={96}>
+ <SceneA />
+ </TransitionSeries.Sequence>
+ <TransitionSeries.Transition
+ timing={linearTiming({ durationInFrames: 76 })}
+ presentation={warpDissolve()}
+ />
+ <TransitionSeries.Sequence durationInFrames={96}>
+ <SceneB />
+ </TransitionSeries.Sequence>
+ </TransitionSeries>
+);
+```
+
+## Props
+
+`warpDissolve(props)` accepts:
+
+<PropsTable
+ rows={[
+ {
+ name: "colors",
+ type: "string[]",
+ default: '["#141318", "#3a3a5c", "#1f1d29", "#8f88ae"]',
+ description: "Colors of the warping field.",
+ },
+ {
+ name: "distortion",
+ type: "number",
+ default: "0.8",
+ description: "Peak distortion of the field at mid-transition.",
+ },
+ {
+ name: "swirl",
+ type: "number",
+ default: "0.6",
+ description: "Rotational folding of the warp pattern.",
+ },
+ {
+ name: "softness",
+ type: "number",
+ default: "1",
+ description: "Blending softness between the field colors.",
+ },
+ {
+ name: "speed",
+ type: "number",
+ default: "1",
+ description: "Shader animation speed.",
+ },
+ ]}
+/>
diff --git a/content/docs/transitions/wave-wipe.mdx b/content/docs/transitions/wave-wipe.mdx
new file mode 100644
index 00000000..93fda1dc
--- /dev/null
+++ b/content/docs/transitions/wave-wipe.mdx
@@ -0,0 +1,89 @@
+---
+title: Wave Wipe
+description: Sweep a grainy wave up across the frame, covering the outgoing scene and revealing the next one from below
+---
+
+<ComponentPreview name="wave-wipe" />
+
+## Installation
+
+<InstallBlock name="wave-wipe" />
+
+## Usage
+
+`waveWipe()` is a Remotion transition presentation. Pass it to a
+`TransitionSeries.Transition` between two sequences. A full-frame
+grain-gradient wave field washes over the outgoing scene while its bands
+drift upward, then the incoming scene rides in from the bottom on top of the
+field and covers it. A 60-frame timing gives the sweep a natural pace.
+
+```tsx
+import { TransitionSeries, linearTiming } from "@remotion/transitions";
+import { waveWipe } from "@/components/remocn/wave-wipe";
+
+export const MyVideo = () => (
+ <TransitionSeries>
+ <TransitionSeries.Sequence durationInFrames={88}>
+ <SceneA />
+ </TransitionSeries.Sequence>
+ <TransitionSeries.Transition
+ timing={linearTiming({ durationInFrames: 60 })}
+ presentation={waveWipe()}
+ />
+ <TransitionSeries.Sequence durationInFrames={88}>
+ <SceneB />
+ </TransitionSeries.Sequence>
+ </TransitionSeries>
+);
+```
+
+## Props
+
+`waveWipe(props)` accepts:
+
+<PropsTable
+ rows={[
+ {
+ name: "colors",
+ type: "string[]",
+ default: '["#3a3a52", "#4a4a68", "#8f88ae"]',
+ description: "Colors of the wave bands.",
+ },
+ {
+ name: "colorBack",
+ type: "string",
+ default: '"#141318"',
+ description: "Backdrop color between the wave bands. Match it to the scene backgrounds for a seamless sweep.",
+ },
+ {
+ name: "intensity",
+ type: "number",
+ default: "0.2",
+ description: "Distortion strength of the wave bands.",
+ },
+ {
+ name: "softness",
+ type: "number",
+ default: "0.7",
+ description: "Blending softness between the wave colors.",
+ },
+ {
+ name: "noise",
+ type: "number",
+ default: "0.4",
+ description: "Amount of per-pixel grain over the wave.",
+ },
+ {
+ name: "zoom",
+ type: "number",
+ default: "1.16",
+ description: "Magnification of the wave field.",
+ },
+ {
+ name: "speed",
+ type: "number",
+ default: "1",
+ description: "Shader animation speed of the wave bands.",
+ },
+ ]}
+/>
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index 035fb6c1..b5044bca 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -55,6 +55,14 @@ import { PerlinDissolveExampleScene } from "@/components/docs/examples/perlin-di
import { perlinDissolveConfig } from "@/registry/remocn/perlin-dissolve/config";
import { SmokeDissolveExampleScene } from "@/components/docs/examples/smoke-dissolve-example";
import { smokeDissolveConfig } from "@/registry/remocn/smoke-dissolve/config";
+import { GrainDissolveExampleScene } from "@/components/docs/examples/grain-dissolve-example";
+import { grainDissolveConfig } from "@/registry/remocn/grain-dissolve/config";
+import { WaveWipeExampleScene } from "@/components/docs/examples/wave-wipe-example";
+import { waveWipeConfig } from "@/registry/remocn/wave-wipe/config";
+import { RippleZoomExampleScene } from "@/components/docs/examples/ripple-zoom-example";
+import { rippleZoomConfig } from "@/registry/remocn/ripple-zoom/config";
+import { WarpDissolveExampleScene } from "@/components/docs/examples/warp-dissolve-example";
+import { warpDissolveConfig } from "@/registry/remocn/warp-dissolve/config";
import { DynamicGrid } from "@/registry/remocn/dynamic-grid";
import { dynamicGridConfig } from "@/registry/remocn/dynamic-grid/config";
import { EcosystemConstellation } from "@/registry/remocn/ecosystem-constellation";
@@ -449,6 +457,22 @@ const registry: Record<string, RegistryEntry> = {
Component: SmokeDissolveExampleScene,
config: smokeDissolveConfig,
},
+ "grain-dissolve": {
+ Component: GrainDissolveExampleScene,
+ config: grainDissolveConfig,
+ },
+ "wave-wipe": {
+ Component: WaveWipeExampleScene,
+ config: waveWipeConfig,
+ },
+ "ripple-zoom": {
+ Component: RippleZoomExampleScene,
+ config: rippleZoomConfig,
+ },
+ "warp-dissolve": {
+ Component: WarpDissolveExampleScene,
+ config: warpDissolveConfig,
+ },
"zoom-through-transition": {
Component: ZoomThroughTransition,
config: zoomThroughTransitionConfig,
diff --git a/registry/remocn/grain-dissolve/config.ts b/registry/remocn/grain-dissolve/config.ts
new file mode 100644
index 00000000..fdcc46d2
--- /dev/null
+++ b/registry/remocn/grain-dissolve/config.ts
@@ -0,0 +1,38 @@
+import { grainDissolveExampleCode } from "@/components/docs/examples/grain-dissolve-example";
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const grainDissolveConfig: ComponentConfig = {
+ componentName: "grainDissolve",
+ importPath: "@/components/remocn/grain-dissolve",
+ controls: {
+ shape: {
+ type: "select",
+ default: "blob",
+ options: ["wave", "dots", "truchet", "corners", "ripple", "blob", "sphere"],
+ label: "Shape",
+ },
+ noise: {
+ type: "number",
+ default: 0.3,
+ min: 0,
+ max: 1,
+ step: 0.05,
+ label: "Noise",
+ },
+ zoom: {
+ type: "number",
+ default: 2,
+ min: 0.5,
+ max: 4,
+ step: 0.25,
+ label: "Zoom",
+ },
+ colorBack: { type: "color", default: "#141318", label: "Background" },
+ },
+ durationInFrames: 116,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+ previewBackdrop: { type: "color", value: "#141318" },
+ snippet: grainDissolveExampleCode,
+};
diff --git a/registry/remocn/grain-dissolve/index.tsx b/registry/remocn/grain-dissolve/index.tsx
new file mode 100644
index 00000000..4c7708c4
--- /dev/null
+++ b/registry/remocn/grain-dissolve/index.tsx
@@ -0,0 +1,107 @@
+"use client";
+
+import type React from "react";
+import { AbsoluteFill, Easing, interpolate } from "remotion";
+import type {
+ TransitionPresentation,
+ TransitionPresentationComponentProps,
+} from "@remotion/transitions";
+import {
+ ShaderGrainGradient,
+ type ShaderGrainGradientProps,
+} from "@/components/remocn/shader-grain-gradient";
+
+const clampOpts = {
+ extrapolateLeft: "clamp" as const,
+ extrapolateRight: "clamp" as const,
+};
+
+const DEFAULT_COLORS = ["#3a3a52", "#4a4a68", "#8f88ae"];
+
+export type GrainDissolveProps = {
+ colors?: string[];
+ colorBack?: string;
+ shape?: NonNullable<ShaderGrainGradientProps["shape"]>;
+ noise?: number;
+ zoom?: number;
+ speed?: number;
+};
+
+const GrainDissolvePresentation: React.FC<
+ TransitionPresentationComponentProps<GrainDissolveProps>
+> = ({
+ children,
+ presentationProgress,
+ presentationDirection,
+ passedProps,
+}) => {
+ const {
+ colors = DEFAULT_COLORS,
+ colorBack = "#141318",
+ shape = "blob",
+ noise = 0.3,
+ zoom = 2,
+ speed = 1,
+ } = passedProps;
+ const entering = presentationDirection === "entering";
+ const p = presentationProgress;
+
+ if (!entering) {
+ const exitStyle: React.CSSProperties = {
+ opacity: interpolate(p, [0.14, 0.34], [1, 0], clampOpts),
+ filter: `blur(${interpolate(p, [0.06, 0.34], [0, 10], clampOpts)}px)`,
+ };
+ return <AbsoluteFill style={exitStyle}>{children}</AbsoluteFill>;
+ }
+
+ const fieldOpacity = interpolate(p, [0, 0.26], [0, 1], {
+ ...clampOpts,
+ easing: Easing.bezier(0.42, 0, 0.58, 1),
+ });
+ const intensity = interpolate(p, [0.08, 0.92], [0, 1], {
+ ...clampOpts,
+ easing: Easing.bezier(0.42, 0, 0.58, 1),
+ });
+ const softness = interpolate(p, [0.08, 0.92], [0, 1], {
+ ...clampOpts,
+ easing: Easing.bezier(0.42, 0, 0.58, 1),
+ });
+ const fieldScale =
+ zoom * interpolate(p, [0, 1], [0.9, 1.15], clampOpts);
+
+ const childStyle: React.CSSProperties = {
+ opacity: interpolate(p, [0.7, 0.86], [0, 1], clampOpts),
+ transform: `scale(${interpolate(p, [0.7, 1], [1.05, 1], {
+ ...clampOpts,
+ easing: Easing.out(Easing.cubic),
+ })})`,
+ filter: `blur(${interpolate(p, [0.7, 0.92], [10, 0], clampOpts)}px)`,
+ };
+
+ return (
+ <AbsoluteFill>
+ <AbsoluteFill style={{ opacity: fieldOpacity, pointerEvents: "none" }}>
+ <ShaderGrainGradient
+ speed={speed}
+ colors={colors}
+ colorBack={colorBack}
+ shape={shape}
+ noise={noise}
+ intensity={intensity}
+ softness={softness}
+ scale={fieldScale}
+ />
+ </AbsoluteFill>
+ <AbsoluteFill style={childStyle}>{children}</AbsoluteFill>
+ </AbsoluteFill>
+ );
+};
+
+export function grainDissolve(
+ props: GrainDissolveProps = {},
+): TransitionPresentation<GrainDissolveProps> {
+ return {
+ component: GrainDissolvePresentation,
+ props,
+ };
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index 5d4d103c..7cff6289 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -903,6 +903,86 @@
}
]
},
+ {
+ "name": "wave-wipe",
+ "type": "registry:component",
+ "title": "Wave Wipe",
+ "description": "A grain-gradient wave that sweeps up across the frame, covering the outgoing scene and revealing the next one from below.",
+ "dependencies": [
+ "remotion",
+ "@remotion/transitions"
+ ],
+ "registryDependencies": [
+ "@remocn/shader-grain-gradient"
+ ],
+ "files": [
+ {
+ "path": "wave-wipe/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/wave-wipe.tsx"
+ }
+ ]
+ },
+ {
+ "name": "ripple-zoom",
+ "type": "registry:component",
+ "title": "Ripple Zoom",
+ "description": "A grain-gradient ripple transition that flies the camera through the center of the rings while the next scene approaches from the depth.",
+ "dependencies": [
+ "remotion",
+ "@remotion/transitions"
+ ],
+ "registryDependencies": [
+ "@remocn/shader-grain-gradient"
+ ],
+ "files": [
+ {
+ "path": "ripple-zoom/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/ripple-zoom.tsx"
+ }
+ ]
+ },
+ {
+ "name": "grain-dissolve",
+ "type": "registry:component",
+ "title": "Grain Dissolve",
+ "description": "A grain-gradient shader transition that disintegrates the outgoing scene into soft grainy shapes and condenses the next scene out of the noise.",
+ "dependencies": [
+ "remotion",
+ "@remotion/transitions"
+ ],
+ "registryDependencies": [
+ "@remocn/shader-grain-gradient"
+ ],
+ "files": [
+ {
+ "path": "grain-dissolve/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/grain-dissolve.tsx"
+ }
+ ]
+ },
+ {
+ "name": "warp-dissolve",
+ "type": "registry:component",
+ "title": "Warp Dissolve",
+ "description": "A domain-warp shader transition that melts the outgoing scene into a folding color field and straightens back out into the next.",
+ "dependencies": [
+ "remotion",
+ "@remotion/transitions"
+ ],
+ "registryDependencies": [
+ "@remocn/shader-warp"
+ ],
+ "files": [
+ {
+ "path": "warp-dissolve/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/warp-dissolve.tsx"
+ }
+ ]
+ },
{
"name": "zoom-through-transition",
"type": "registry:component",
diff --git a/registry/remocn/ripple-zoom/config.ts b/registry/remocn/ripple-zoom/config.ts
new file mode 100644
index 00000000..cf1ca2df
--- /dev/null
+++ b/registry/remocn/ripple-zoom/config.ts
@@ -0,0 +1,40 @@
+import { rippleZoomExampleCode } from "@/components/docs/examples/ripple-zoom-example";
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const rippleZoomConfig: ComponentConfig = {
+ componentName: "rippleZoom",
+ importPath: "@/components/remocn/ripple-zoom",
+ controls: {
+ zoom: {
+ type: "number",
+ default: 4,
+ min: 1.5,
+ max: 8,
+ step: 0.25,
+ label: "Zoom",
+ },
+ intensity: {
+ type: "number",
+ default: 0.5,
+ min: 0,
+ max: 1,
+ step: 0.05,
+ label: "Intensity",
+ },
+ softness: {
+ type: "number",
+ default: 0.5,
+ min: 0,
+ max: 1,
+ step: 0.05,
+ label: "Softness",
+ },
+ colorBack: { type: "color", default: "#141318", label: "Background" },
+ },
+ durationInFrames: 116,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+ previewBackdrop: { type: "color", value: "#141318" },
+ snippet: rippleZoomExampleCode,
+};
diff --git a/registry/remocn/ripple-zoom/index.tsx b/registry/remocn/ripple-zoom/index.tsx
new file mode 100644
index 00000000..78a43043
--- /dev/null
+++ b/registry/remocn/ripple-zoom/index.tsx
@@ -0,0 +1,106 @@
+"use client";
+
+import type React from "react";
+import { AbsoluteFill, Easing, interpolate } from "remotion";
+import type {
+ TransitionPresentation,
+ TransitionPresentationComponentProps,
+} from "@remotion/transitions";
+import { ShaderGrainGradient } from "@/components/remocn/shader-grain-gradient";
+
+const clampOpts = {
+ extrapolateLeft: "clamp" as const,
+ extrapolateRight: "clamp" as const,
+};
+
+const DEFAULT_COLORS = ["#3a3a52", "#4a4a68", "#8f88ae"];
+
+export type RippleZoomProps = {
+ colors?: string[];
+ colorBack?: string;
+ intensity?: number;
+ softness?: number;
+ noise?: number;
+ zoom?: number;
+ speed?: number;
+};
+
+const RippleZoomPresentation: React.FC<
+ TransitionPresentationComponentProps<RippleZoomProps>
+> = ({
+ children,
+ presentationProgress,
+ presentationDirection,
+ passedProps,
+}) => {
+ const {
+ colors = DEFAULT_COLORS,
+ colorBack = "#141318",
+ intensity = 0.5,
+ softness = 0.5,
+ noise = 0.5,
+ zoom = 4,
+ speed = 1,
+ } = passedProps;
+ const entering = presentationDirection === "entering";
+ const p = presentationProgress;
+
+ if (!entering) {
+ const exitStyle: React.CSSProperties = {
+ opacity: interpolate(p, [0.35, 0.55], [1, 0], {
+ ...clampOpts,
+ easing: Easing.bezier(0.42, 0, 0.58, 1),
+ }),
+ transform: `scale(${interpolate(p, [0.3, 0.62], [1, 1.6], {
+ ...clampOpts,
+ easing: Easing.in(Easing.cubic),
+ })})`,
+ };
+ return <AbsoluteFill style={exitStyle}>{children}</AbsoluteFill>;
+ }
+
+ const fieldOpacity = interpolate(p, [0.08, 0.32], [0, 1], {
+ ...clampOpts,
+ easing: Easing.bezier(0.42, 0, 0.58, 1),
+ });
+ const fieldScale = interpolate(p, [0.32, 1], [0.2, zoom], {
+ ...clampOpts,
+ easing: Easing.bezier(0.7, 0, 0.3, 1),
+ });
+
+ const childStyle: React.CSSProperties = {
+ opacity: interpolate(p, [0.45, 0.62], [0, 1], clampOpts),
+ transform: `scale(${interpolate(p, [0.42, 0.97], [0.2, 1], {
+ ...clampOpts,
+ easing: Easing.bezier(0.33, 1, 0.68, 1),
+ })})`,
+ filter: `blur(${interpolate(p, [0.42, 0.8], [8, 0], clampOpts)}px)`,
+ };
+
+ return (
+ <AbsoluteFill>
+ <AbsoluteFill style={{ opacity: fieldOpacity, pointerEvents: "none" }}>
+ <ShaderGrainGradient
+ speed={speed}
+ shape="ripple"
+ colors={colors}
+ colorBack={colorBack}
+ intensity={intensity}
+ softness={softness}
+ noise={noise}
+ scale={fieldScale}
+ />
+ </AbsoluteFill>
+ <AbsoluteFill style={childStyle}>{children}</AbsoluteFill>
+ </AbsoluteFill>
+ );
+};
+
+export function rippleZoom(
+ props: RippleZoomProps = {},
+): TransitionPresentation<RippleZoomProps> {
+ return {
+ component: RippleZoomPresentation,
+ props,
+ };
+}
diff --git a/registry/remocn/warp-dissolve/config.ts b/registry/remocn/warp-dissolve/config.ts
new file mode 100644
index 00000000..a9439204
--- /dev/null
+++ b/registry/remocn/warp-dissolve/config.ts
@@ -0,0 +1,39 @@
+import { warpDissolveExampleCode } from "@/components/docs/examples/warp-dissolve-example";
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const warpDissolveConfig: ComponentConfig = {
+ componentName: "warpDissolve",
+ importPath: "@/components/remocn/warp-dissolve",
+ controls: {
+ distortion: {
+ type: "number",
+ default: 0.8,
+ min: 0.1,
+ max: 1,
+ step: 0.05,
+ label: "Distortion",
+ },
+ swirl: {
+ type: "number",
+ default: 0.6,
+ min: 0,
+ max: 1,
+ step: 0.05,
+ label: "Swirl",
+ },
+ softness: {
+ type: "number",
+ default: 1,
+ min: 0,
+ max: 1,
+ step: 0.05,
+ label: "Softness",
+ },
+ },
+ durationInFrames: 116,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+ previewBackdrop: { type: "color", value: "#141318" },
+ snippet: warpDissolveExampleCode,
+};
diff --git a/registry/remocn/warp-dissolve/index.tsx b/registry/remocn/warp-dissolve/index.tsx
new file mode 100644
index 00000000..8a87619f
--- /dev/null
+++ b/registry/remocn/warp-dissolve/index.tsx
@@ -0,0 +1,99 @@
+"use client";
+
+import type React from "react";
+import { AbsoluteFill, Easing, interpolate } from "remotion";
+import type {
+ TransitionPresentation,
+ TransitionPresentationComponentProps,
+} from "@remotion/transitions";
+import { ShaderWarp } from "@/components/remocn/shader-warp";
+
+const clampOpts = {
+ extrapolateLeft: "clamp" as const,
+ extrapolateRight: "clamp" as const,
+};
+
+const DEFAULT_COLORS = ["#141318", "#3a3a5c", "#1f1d29", "#8f88ae"];
+
+export type WarpDissolveProps = {
+ colors?: string[];
+ distortion?: number;
+ swirl?: number;
+ softness?: number;
+ speed?: number;
+};
+
+const WarpDissolvePresentation: React.FC<
+ TransitionPresentationComponentProps<WarpDissolveProps>
+> = ({
+ children,
+ presentationProgress,
+ presentationDirection,
+ passedProps,
+}) => {
+ const {
+ colors = DEFAULT_COLORS,
+ distortion = 0.8,
+ swirl = 0.6,
+ softness = 1,
+ speed = 1,
+ } = passedProps;
+ const entering = presentationDirection === "entering";
+ const p = presentationProgress;
+
+ if (!entering) {
+ const meltStyle: React.CSSProperties = {
+ opacity: interpolate(p, [0.2, 0.38], [1, 0], clampOpts),
+ transform: `scale(${interpolate(p, [0, 0.38], [1, 1.16], {
+ ...clampOpts,
+ easing: Easing.in(Easing.cubic),
+ })})`,
+ filter: `blur(${interpolate(p, [0.04, 0.38], [0, 18], clampOpts)}px)`,
+ };
+ return <AbsoluteFill style={meltStyle}>{children}</AbsoluteFill>;
+ }
+
+ const fieldOpacity = interpolate(p, [0, 0.32], [0, 1], {
+ ...clampOpts,
+ easing: Easing.bezier(0.42, 0, 0.58, 1),
+ });
+ const fieldDistortion = interpolate(
+ p,
+ [0, 0.5, 1],
+ [distortion * 0.3, distortion, distortion * 0.4],
+ clampOpts,
+ );
+
+ const childStyle: React.CSSProperties = {
+ opacity: interpolate(p, [0.66, 0.82], [0, 1], clampOpts),
+ transform: `scale(${interpolate(p, [0.66, 1], [1.18, 1], {
+ ...clampOpts,
+ easing: Easing.out(Easing.cubic),
+ })})`,
+ filter: `blur(${interpolate(p, [0.66, 0.92], [16, 0], clampOpts)}px)`,
+ };
+
+ return (
+ <AbsoluteFill>
+ <AbsoluteFill style={{ opacity: fieldOpacity, pointerEvents: "none" }}>
+ <ShaderWarp
+ speed={speed}
+ colors={colors}
+ distortion={fieldDistortion}
+ swirl={swirl}
+ softness={softness}
+ />
+ </AbsoluteFill>
+ <AbsoluteFill style={childStyle}>{children}</AbsoluteFill>
+ </AbsoluteFill>
+ );
+};
+
+export function warpDissolve(
+ props: WarpDissolveProps = {},
+): TransitionPresentation<WarpDissolveProps> {
+ return {
+ component: WarpDissolvePresentation,
+ props,
+ };
+}
diff --git a/registry/remocn/wave-wipe/config.ts b/registry/remocn/wave-wipe/config.ts
new file mode 100644
index 00000000..d20d07cc
--- /dev/null
+++ b/registry/remocn/wave-wipe/config.ts
@@ -0,0 +1,40 @@
+import { waveWipeExampleCode } from "@/components/docs/examples/wave-wipe-example";
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const waveWipeConfig: ComponentConfig = {
+ componentName: "waveWipe",
+ importPath: "@/components/remocn/wave-wipe",
+ controls: {
+ intensity: {
+ type: "number",
+ default: 0.2,
+ min: 0,
+ max: 1,
+ step: 0.05,
+ label: "Intensity",
+ },
+ softness: {
+ type: "number",
+ default: 0.7,
+ min: 0,
+ max: 1,
+ step: 0.05,
+ label: "Softness",
+ },
+ noise: {
+ type: "number",
+ default: 0.4,
+ min: 0,
+ max: 1,
+ step: 0.05,
+ label: "Noise",
+ },
+ colorBack: { type: "color", default: "#141318", label: "Background" },
+ },
+ durationInFrames: 116,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+ previewBackdrop: { type: "color", value: "#141318" },
+ snippet: waveWipeExampleCode,
+};
diff --git a/registry/remocn/wave-wipe/index.tsx b/registry/remocn/wave-wipe/index.tsx
new file mode 100644
index 00000000..c8f1646c
--- /dev/null
+++ b/registry/remocn/wave-wipe/index.tsx
@@ -0,0 +1,104 @@
+"use client";
+
+import type React from "react";
+import { AbsoluteFill, Easing, interpolate } from "remotion";
+import type {
+ TransitionPresentation,
+ TransitionPresentationComponentProps,
+} from "@remotion/transitions";
+import { ShaderGrainGradient } from "@/components/remocn/shader-grain-gradient";
+
+const clampOpts = {
+ extrapolateLeft: "clamp" as const,
+ extrapolateRight: "clamp" as const,
+};
+
+const DEFAULT_COLORS = ["#3a3a52", "#4a4a68", "#8f88ae"];
+
+export type WaveWipeProps = {
+ colors?: string[];
+ colorBack?: string;
+ intensity?: number;
+ softness?: number;
+ noise?: number;
+ zoom?: number;
+ speed?: number;
+};
+
+const WaveWipePresentation: React.FC<
+ TransitionPresentationComponentProps<WaveWipeProps>
+> = ({
+ children,
+ presentationProgress,
+ presentationDirection,
+ passedProps,
+}) => {
+ const {
+ colors = DEFAULT_COLORS,
+ colorBack = "#141318",
+ intensity = 0.2,
+ softness = 0.7,
+ noise = 0.4,
+ zoom = 1.16,
+ speed = 1,
+ } = passedProps;
+ const entering = presentationDirection === "entering";
+ const p = presentationProgress;
+
+ if (!entering) {
+ const exitStyle: React.CSSProperties = {
+ opacity: interpolate(p, [0.3, 0.5], [1, 0], {
+ ...clampOpts,
+ easing: Easing.bezier(0.42, 0, 0.58, 1),
+ }),
+ transform: `translateY(${interpolate(p, [0, 0.7], [0, -70], {
+ ...clampOpts,
+ easing: Easing.in(Easing.cubic),
+ })}%)`,
+ };
+ return <AbsoluteFill style={exitStyle}>{children}</AbsoluteFill>;
+ }
+
+ const fieldOpacity = interpolate(p, [0.18, 0.45], [0, 1], {
+ ...clampOpts,
+ easing: Easing.bezier(0.42, 0, 0.58, 1),
+ });
+ const drift = interpolate(p, [0, 1], [0, 0.7], {
+ ...clampOpts,
+ easing: Easing.bezier(0.45, 0, 0.55, 1),
+ });
+ const rise = interpolate(p, [0.4, 0.82, 1], [100, -3.5, 0], {
+ ...clampOpts,
+ easing: Easing.out(Easing.cubic),
+ });
+
+ return (
+ <AbsoluteFill>
+ <AbsoluteFill style={{ opacity: fieldOpacity, pointerEvents: "none" }}>
+ <ShaderGrainGradient
+ speed={speed}
+ shape="wave"
+ colors={colors}
+ colorBack={colorBack}
+ intensity={intensity}
+ softness={softness}
+ noise={noise}
+ scale={zoom}
+ offsetY={drift}
+ />
+ </AbsoluteFill>
+ <AbsoluteFill style={{ transform: `translateY(${rise}%)` }}>
+ {children}
+ </AbsoluteFill>
+ </AbsoluteFill>
+ );
+};
+
+export function waveWipe(
+ props: WaveWipeProps = {},
+): TransitionPresentation<WaveWipeProps> {
+ return {
+ component: WaveWipePresentation,
+ props,
+ };
+}
diff --git a/tsconfig.json b/tsconfig.json
index 4c1ebd18..ffd849f9 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -124,6 +124,12 @@
"@/components/remocn/shader-smoke-ring": [
"./registry/remocn/shader-smoke-ring/index.tsx",
],
+ "@/components/remocn/shader-grain-gradient": [
+ "./registry/remocn/shader-grain-gradient/index.tsx",
+ ],
+ "@/components/remocn/shader-warp": [
+ "./registry/remocn/shader-warp/index.tsx",
+ ],
"@/components/remocn/*": ["./registry/remocn-ui/*/index.tsx"],
"@/*": ["./*"],
},