Skip to content

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

feat: exture-pop

kapishdima7a89545988c1
diff --git a/content/docs/typography/extrude-pop.mdx b/content/docs/typography/extrude-pop.mdx
new file mode 100644
index 00000000..2b775c72
--- /dev/null
+++ b/content/docs/typography/extrude-pop.mdx
@@ -0,0 +1,141 @@
+---
+title: Extrude Pop
+description: A flat word pops up out of the plane on a solid colored 3D body, no camera involved
+component: extrude-pop
+vibe: playful
+length: 48
+useWhen:
+ - "A short punchy word — a score, a verdict, a CTA — should land with physical weight, like a stamp rising off the page."
+ - "You want a faux-3D pop without touching cameras or 3D transforms — it's a 2D extrusion that renders identically everywhere."
+ - "The scene has a flat poster aesthetic where a solid-color body reads as intentional design, not as a shadow."
+avoidWhen:
+ - "The text is long or small — the extruded body doubles the ink and turns a sentence into mush; keep it to one short word."
+ - "You need real perspective or a moving camera — the extrusion angle is fixed; this sells one static viewpoint."
+ - "The style is minimal or elegant — the effect is loud by design; use `spring-scale-in` for a softer pop."
+---
+
+<ComponentPreview name="extrude-pop" />
+
+## Installation
+
+<InstallBlock name="extrude-pop" />
+
+## Usage
+
+```tsx
+// src/Root.tsx
+import { Composition } from "remotion";
+import { ExtrudePop } from "@/components/remocn/extrude-pop";
+
+const ExtrudePopScene = () => (
+ <ExtrudePop letter="WIN" bodyColor="#e8192b" faceColor="#ffffff" />
+);
+
+export const RemotionRoot = () => (
+ <Composition
+ id="ExtrudePop"
+ component={ExtrudePopScene}
+ durationInFrames={90}
+ fps={30}
+ width={1920}
+ height={1080}
+ />
+);
+```
+
+The body is the same glyph swept along the extrusion vector — a morphological
+dilation drawn as stacked copies, back-to-front, with the white face riding the
+near end. Face travel and extrusion depth are keyframed together, which is what
+makes the word read as lifting off a plane rather than growing a shadow.
+
+## Props
+
+<PropsTable
+ rows={[
+ {
+ name: "letter",
+ type: "string",
+ default: "\"WIN\"",
+ description: "The text to extrude — one short word reads best",
+ },
+ {
+ name: "bodyColor",
+ type: "string",
+ default: "\"#e8192b\"",
+ description: "Color of the extruded body",
+ },
+ {
+ name: "faceColor",
+ type: "string",
+ default: "\"#ffffff\"",
+ description: "Color of the front face",
+ },
+ {
+ name: "fontFamily",
+ type: "string",
+ default: "\"'Helvetica Neue', Helvetica, Arial, sans-serif\"",
+ description: "Font family of the glyph",
+ },
+ {
+ name: "fontWeight",
+ type: "number | string",
+ default: "700",
+ description: "Font weight",
+ },
+ {
+ name: "fontSize",
+ type: "number",
+ default: "603",
+ description: "Font size in comp pixels",
+ },
+ {
+ name: "maxTextWidth",
+ type: "number",
+ default: "1660",
+ description: "Longer text auto-shrinks (font size and extrusion depth together) to fit this width in comp pixels",
+ },
+ {
+ name: "basePosition",
+ type: "[number, number]",
+ default: "[959.2, 752.5]",
+ description: "Baseline anchor of the body layer in comp pixels",
+ },
+ {
+ name: "minimaxRadius",
+ type: "number",
+ default: "80",
+ description: "Dilation radius. The extrusion depth is twice this",
+ },
+ {
+ name: "extrudeAngleDeg",
+ type: "number",
+ default: "-58.6",
+ description: "Direction of the extrusion in degrees",
+ },
+ {
+ name: "extrudeSteps",
+ type: "number",
+ default: "200",
+ description: "Copies making up the body — above the depth in pixels it is seamless",
+ },
+ {
+ name: "extrudeStartFrame / extrudeEndFrame",
+ type: "number",
+ default: "0 / 48",
+ description: "The pop window. The extrusion eases out and holds after the end frame",
+ },
+ {
+ name: "width / height",
+ type: "number",
+ default: "1920 / 1080",
+ description: "Coordinate space of the composition",
+ },
+ {
+ name: "className",
+ type: "string",
+ description: "Optional className passed to the wrapper",
+ },
+ ]}
+/>
+
+Inspired by [5 Clean Text Animations](https://www.youtube.com/watch?v=Nmi7cE2wT54) by Mapal.
diff --git a/content/docs/typography/meta.json b/content/docs/typography/meta.json
index 9d4d1130..3ecaabc4 100644
--- a/content/docs/typography/meta.json
+++ b/content/docs/typography/meta.json
@@ -42,6 +42,7 @@
"matrix-decode",
"rgb-glitch-text",
"gooey-morph",
- "perspective-squeeze"
+ "perspective-squeeze",
+ "extrude-pop"
]
}
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index c9f31b0e..62de49cc 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -318,6 +318,16 @@ const registry: Record<string, RegistryEntry> = {
(m) => m.gooeyMorphConfig,
),
},
+ "extrude-pop": {
+ load: () =>
+ import("@/registry/remocn/extrude-pop").then((m) => ({
+ default: m.ExtrudePop,
+ })),
+ loadConfig: () =>
+ import("@/registry/remocn/extrude-pop/config").then(
+ (m) => m.extrudePopConfig,
+ ),
+ },
"perspective-squeeze": {
load: () =>
import("@/registry/remocn/perspective-squeeze").then((m) => ({
diff --git a/registry/remocn/extrude-pop/config.ts b/registry/remocn/extrude-pop/config.ts
new file mode 100644
index 00000000..618e5e9d
--- /dev/null
+++ b/registry/remocn/extrude-pop/config.ts
@@ -0,0 +1,40 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const extrudePopConfig: ComponentConfig = {
+ componentName: "ExtrudePop",
+ importPath: "@/components/remocn/extrude-pop",
+ controls: {
+ letter: { type: "text", default: "WIN", label: "Text" },
+ bodyColor: { type: "color", default: "#e8192b", label: "Body color" },
+ faceColor: { type: "color", default: "#ffffff", label: "Face color" },
+ minimaxRadius: {
+ type: "number",
+ default: 80,
+ min: 0,
+ max: 200,
+ step: 5,
+ label: "Extrude radius",
+ },
+ extrudeAngleDeg: {
+ type: "number",
+ default: -58.6,
+ min: -180,
+ max: 180,
+ step: 1,
+ label: "Extrude angle",
+ },
+ extrudeEndFrame: {
+ type: "number",
+ default: 48,
+ min: 10,
+ max: 90,
+ step: 1,
+ label: "Extrude ends (frame)",
+ },
+ },
+ durationInFrames: 90,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+ previewBackdrop: { type: "color", value: "#141318" },
+};
diff --git a/registry/remocn/extrude-pop/index.tsx b/registry/remocn/extrude-pop/index.tsx
new file mode 100644
index 00000000..1911ba31
--- /dev/null
+++ b/registry/remocn/extrude-pop/index.tsx
@@ -0,0 +1,113 @@
+"use client";
+
+import { useMemo } from "react";
+import { Easing, interpolate, useCurrentFrame } from "remotion";
+
+export interface ExtrudePopProps {
+ className?: string;
+ width?: number;
+ height?: number;
+ letter?: string;
+ fontFamily?: string;
+ fontWeight?: number | string;
+ fontSize?: number;
+ basePosition?: [number, number];
+ maxTextWidth?: number;
+ minimaxRadius?: number;
+ extrudeAngleDeg?: number;
+ extrudeSteps?: number;
+ extrudeStartFrame?: number;
+ extrudeEndFrame?: number;
+ bodyColor?: string;
+ faceColor?: string;
+}
+
+export function ExtrudePop({
+ className,
+ width = 1920,
+ height = 1080,
+ letter = "WIN",
+ fontFamily = "'Helvetica Neue', Helvetica, Arial, sans-serif",
+ fontWeight = 700,
+ fontSize = 603,
+ basePosition = [959.2, 752.5],
+ maxTextWidth = 1660,
+ minimaxRadius = 80,
+ extrudeAngleDeg = -58.6,
+ extrudeSteps = 200,
+ extrudeStartFrame = 0,
+ extrudeEndFrame = 48,
+ bodyColor = "#e8192b",
+ faceColor = "#ffffff",
+}: ExtrudePopProps) {
+ const frame = useCurrentFrame();
+
+ const fit = useMemo(() => {
+ if (typeof document === "undefined") return 1;
+ const ctx = document.createElement("canvas").getContext("2d");
+ if (!ctx) return 1;
+ ctx.font = `${fontWeight} ${fontSize}px ${fontFamily}`;
+ const measured = ctx.measureText(letter).width;
+ if (measured <= 0) return 1;
+ return Math.min(1, maxTextWidth / measured);
+ }, [letter, fontFamily, fontWeight, fontSize, maxTextWidth]);
+
+ const fitFontSize = fontSize * fit;
+ const fitRadius = minimaxRadius * fit;
+
+ const radius = interpolate(
+ frame,
+ [extrudeStartFrame, extrudeEndFrame],
+ [0, fitRadius],
+ {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.bezier(0.16, 1, 0.3, 1),
+ },
+ );
+
+ const depth = radius * 2;
+
+ const theta = (extrudeAngleDeg * Math.PI) / 180;
+ const stepX = (depth * Math.sin(theta)) / extrudeSteps;
+ const stepY = (depth * Math.cos(theta)) / extrudeSteps;
+
+ const glyph = (fill: string, dx: number, dy: number, key?: string) => (
+ <text
+ key={key}
+ x={basePosition[0] + dx}
+ y={basePosition[1] + dy}
+ textAnchor="middle"
+ fontFamily={fontFamily}
+ fontWeight={fontWeight}
+ fontSize={fitFontSize}
+ fill={fill}
+ >
+ {letter}
+ </text>
+ );
+
+ return (
+ <div
+ className={className}
+ style={{ position: "absolute", inset: 0, overflow: "hidden" }}
+ >
+ <svg
+ width="100%"
+ height="100%"
+ viewBox={`0 0 ${width} ${height}`}
+ preserveAspectRatio="xMidYMid meet"
+ style={{ display: "block" }}
+ >
+ <g>
+ {Array.from(
+ { length: extrudeSteps + 1 },
+ (_, i) => extrudeSteps - i,
+ ).map((i) => glyph(bodyColor, stepX * i, stepY * i, `body-${i}`))}
+ </g>
+
+ {glyph(faceColor, stepX * extrudeSteps, stepY * extrudeSteps)}
+ </svg>
+ </div>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index 11223799..8a7a1a12 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -171,6 +171,20 @@
}
]
},
+ {
+ "name": "extrude-pop",
+ "type": "registry:component",
+ "title": "Extrude Pop",
+ "description": "A flat word pops up out of the plane on a solid colored 3D body, no camera involved.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "extrude-pop/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/extrude-pop.tsx"
+ }
+ ]
+ },
{
"name": "fade-through",
"type": "registry:component",