Skip to content

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

feat: icon maximize

dev_wandryac1f23b8b8f9
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index 28f1179e..5893d7a8 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -29,6 +29,7 @@ import { HeartIconStatic } from "@/registry/remocn/icon-heart";
import { ImageIconStatic } from "@/registry/remocn/icon-image";
import { InfoIconStatic } from "@/registry/remocn/icon-info";
import { LoaderIconStatic } from "@/registry/remocn/icon-loader";
+import { MaximizeIconStatic } from "@/registry/remocn/icon-maximize";
import { MenuIconStatic } from "@/registry/remocn/icon-menu";
import { MicIconStatic } from "@/registry/remocn/icon-mic";
import { MoreHorizontalIconStatic } from "@/registry/remocn/icon-more-horizontal";
@@ -185,6 +186,12 @@ export const ICONS: IconEntry[] = [
category: "Actions & UI",
Static: MoreHorizontalIconStatic,
},
+ {
+ name: "icon-maximize",
+ label: "Maximize",
+ category: "Actions & UI",
+ Static: MaximizeIconStatic,
+ },
{
name: "icon-play",
label: "Play",
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index c890ff67..ef7bdb80 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -45,6 +45,7 @@ import { iconHeartConfig } from "@/registry/remocn/icon-heart/config";
import { iconImageConfig } from "@/registry/remocn/icon-image/config";
import { iconInfoConfig } from "@/registry/remocn/icon-info/config";
import { iconLoaderConfig } from "@/registry/remocn/icon-loader/config";
+import { iconMaximizeConfig } from "@/registry/remocn/icon-maximize/config";
import { iconMenuConfig } from "@/registry/remocn/icon-menu/config";
import { iconMicConfig } from "@/registry/remocn/icon-mic/config";
import { iconMoreHorizontalConfig } from "@/registry/remocn/icon-more-horizontal/config";
@@ -740,6 +741,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconLoaderConfig,
},
+ "icon-maximize": {
+ load: () =>
+ import("@/registry/remocn/icon-maximize").then((m) => ({
+ default: m.MaximizeIcon,
+ })),
+ config: iconMaximizeConfig,
+ },
"icon-menu": {
load: () =>
import("@/registry/remocn/icon-menu").then((m) => ({
diff --git a/registry/remocn/icon-maximize/config.ts b/registry/remocn/icon-maximize/config.ts
new file mode 100644
index 00000000..4559298c
--- /dev/null
+++ b/registry/remocn/icon-maximize/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconMaximizeConfig: ComponentConfig = {
+ componentName: "MaximizeIcon",
+ importPath: "@/components/remocn/icon-maximize",
+ controls: {
+ animation: {
+ type: "select",
+ default: "both",
+ options: ["draw", "action", "both"],
+ label: "Animation",
+ },
+ loop: {
+ type: "boolean",
+ default: false,
+ label: "Loop",
+ },
+ size: {
+ type: "number",
+ default: 48,
+ min: 24,
+ max: 200,
+ step: 4,
+ label: "Size",
+ },
+ color: {
+ type: "color",
+ default: "#171717",
+ label: "Color",
+ },
+ strokeWidth: {
+ type: "number",
+ default: 2,
+ min: 1,
+ max: 3,
+ step: 0.25,
+ label: "Stroke width",
+ },
+ },
+ durationInFrames: 70,
+ fps: FPS,
+ compositionWidth: 48,
+ compositionHeight: 48,
+};
diff --git a/registry/remocn/icon-maximize/index.tsx b/registry/remocn/icon-maximize/index.tsx
new file mode 100644
index 00000000..f0172b07
--- /dev/null
+++ b/registry/remocn/icon-maximize/index.tsx
@@ -0,0 +1,117 @@
+"use client";
+
+import { Easing, interpolate } from "remotion";
+import {
+ drawnPathProps,
+ type IconAnimationProps,
+ useIconAnimation,
+} from "@/lib/remocn-icons";
+
+const TL_PATH = "M8 3H5a2 2 0 0 0-2 2v3";
+const TR_PATH = "M21 8V5a2 2 0 0 0-2-2h-3";
+const BL_PATH = "M3 16v3a2 2 0 0 0 2 2h3";
+const BR_PATH = "M16 21h3a2 2 0 0 0 2-2v-3";
+
+const TIMINGS = {
+ drawDurationInFrames: 14,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 24,
+ loop: false,
+} as const;
+
+const BRACKETS = [
+ { path: TL_PATH, dx: -1, dy: -1 },
+ { path: TR_PATH, dx: 1, dy: -1 },
+ { path: BL_PATH, dx: -1, dy: 1 },
+ { path: BR_PATH, dx: 1, dy: 1 },
+] as const;
+
+export function MaximizeIcon({
+ animation = "both",
+ loop,
+ speed,
+ size = 48,
+ color = "currentColor",
+ strokeWidth = 2,
+ className,
+}: IconAnimationProps) {
+ const { drawProgress, scaleIn, actionProgress, actionFrame } =
+ useIconAnimation({ animation, loop, speed }, TIMINGS);
+
+ const acting = animation !== "draw" && actionFrame >= 0;
+ const expand = acting
+ ? interpolate(actionProgress, [0, 0.42, 1], [0, 1.77, 0], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ })
+ : 0;
+
+ const scale = 0.85 + 0.15 * scaleIn;
+
+ return (
+ <svg
+ className={className}
+ width={size}
+ height={size}
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke={color}
+ strokeWidth={strokeWidth}
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ style={{
+ overflow: "visible",
+ transformOrigin: "center",
+ transform: `scale(${scale})`,
+ }}
+ >
+ {BRACKETS.map((bracket) => {
+ const dash = drawnPathProps(bracket.path, drawProgress);
+ return (
+ <g
+ key={bracket.path}
+ transform={`translate(${bracket.dx * expand} ${bracket.dy * expand})`}
+ >
+ <path
+ d={bracket.path}
+ strokeDasharray={dash.strokeDasharray}
+ strokeDashoffset={dash.strokeDashoffset}
+ />
+ </g>
+ );
+ })}
+ </svg>
+ );
+}
+
+export function MaximizeIconStatic({
+ size = 48,
+ color = "currentColor",
+ strokeWidth = 2,
+ className,
+}: {
+ size?: number;
+ color?: string;
+ strokeWidth?: number;
+ className?: string;
+}) {
+ return (
+ <svg
+ className={className}
+ width={size}
+ height={size}
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke={color}
+ strokeWidth={strokeWidth}
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ >
+ <path d={TL_PATH} />
+ <path d={TR_PATH} />
+ <path d={BL_PATH} />
+ <path d={BR_PATH} />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index c0b3efde..f4d5c014 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -1939,6 +1939,21 @@
}
]
},
+ {
+ "name": "icon-maximize",
+ "type": "registry:component",
+ "title": "Maximize",
+ "description": "Animated Lucide maximize icon — four corner brackets draw on, then fly outward and spring back like a window going fullscreen.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-maximize/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-maximize.tsx"
+ }
+ ]
+ },
{
"name": "icon-sparkles",
"type": "registry:component",