Skip to content

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

feat: icon menu

dev_wandry70c7bbb32299
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index 34c2eb39..cb501836 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 { MenuIconStatic } from "@/registry/remocn/icon-menu";
import { MicIconStatic } from "@/registry/remocn/icon-mic";
import { PartyPopperIconStatic } from "@/registry/remocn/icon-party-popper";
import { PauseIconStatic } from "@/registry/remocn/icon-pause";
@@ -171,6 +172,12 @@ export const ICONS: IconEntry[] = [
category: "Actions & UI",
Static: SendIconStatic,
},
+ {
+ name: "icon-menu",
+ label: "Menu",
+ category: "Actions & UI",
+ Static: MenuIconStatic,
+ },
{
name: "icon-play",
label: "Play",
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index ebddd193..e5f2f313 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 { iconMenuConfig } from "@/registry/remocn/icon-menu/config";
import { iconMicConfig } from "@/registry/remocn/icon-mic/config";
import { iconPartyPopperConfig } from "@/registry/remocn/icon-party-popper/config";
import { iconPauseConfig } from "@/registry/remocn/icon-pause/config";
@@ -738,6 +739,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconLoaderConfig,
},
+ "icon-menu": {
+ load: () =>
+ import("@/registry/remocn/icon-menu").then((m) => ({
+ default: m.MenuIcon,
+ })),
+ config: iconMenuConfig,
+ },
"icon-mic": {
load: () =>
import("@/registry/remocn/icon-mic").then((m) => ({
diff --git a/registry/remocn/icon-menu/config.ts b/registry/remocn/icon-menu/config.ts
new file mode 100644
index 00000000..9302db12
--- /dev/null
+++ b/registry/remocn/icon-menu/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconMenuConfig: ComponentConfig = {
+ componentName: "MenuIcon",
+ importPath: "@/components/remocn/icon-menu",
+ 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-menu/index.tsx b/registry/remocn/icon-menu/index.tsx
new file mode 100644
index 00000000..51a8dc87
--- /dev/null
+++ b/registry/remocn/icon-menu/index.tsx
@@ -0,0 +1,122 @@
+"use client";
+
+import { Easing, interpolate } from "remotion";
+import {
+ drawnPathProps,
+ type IconAnimationProps,
+ useIconAnimation,
+} from "@/lib/remocn-icons";
+
+const TOP_PATH = "M4 5 20 5";
+const MID_PATH = "M4 12 20 12";
+const BOT_PATH = "M4 19 20 19";
+
+const TIMINGS = {
+ drawDurationInFrames: 16,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 20,
+ loop: false,
+} as const;
+
+const BARS = [
+ { path: TOP_PATH, drawWindow: [0, 0.5], stagger: 0 },
+ { path: MID_PATH, drawWindow: [0.25, 0.75], stagger: 0.18 },
+ { path: BOT_PATH, drawWindow: [0.5, 1], stagger: 0.36 },
+] as const;
+
+export function MenuIcon({
+ animation = "both",
+ loop,
+ speed,
+ size = 48,
+ color = "currentColor",
+ strokeWidth = 2,
+ className,
+}: IconAnimationProps) {
+ const { drawProgress, scaleIn, actionProgress, actionFrame } =
+ useIconAnimation({ animation, loop, speed }, TIMINGS);
+
+ const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);
+ const acting = animation !== "draw" && actionFrame >= 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})`,
+ }}
+ >
+ {BARS.map((bar) => {
+ const drawn = interpolate(linearDraw, [...bar.drawWindow], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+ const dash = drawnPathProps(bar.path, drawn);
+ const slide = acting
+ ? interpolate(
+ actionProgress,
+ [bar.stagger, bar.stagger + 0.3, bar.stagger + 0.55],
+ [-3, 2, 0],
+ {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ },
+ )
+ : 0;
+ return (
+ <g key={bar.path} transform={`translate(${slide} 0)`}>
+ <path
+ d={bar.path}
+ strokeDasharray={dash.strokeDasharray}
+ strokeDashoffset={dash.strokeDashoffset}
+ />
+ </g>
+ );
+ })}
+ </svg>
+ );
+}
+
+export function MenuIconStatic({
+ 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={TOP_PATH} />
+ <path d={MID_PATH} />
+ <path d={BOT_PATH} />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index f8d25cf8..9aa9c643 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -1909,6 +1909,21 @@
}
]
},
+ {
+ "name": "icon-menu",
+ "type": "registry:component",
+ "title": "Menu",
+ "description": "Animated Lucide menu icon — the three bars slide in from the left, top to bottom, each overshooting into place.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-menu/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-menu.tsx"
+ }
+ ]
+ },
{
"name": "icon-sparkles",
"type": "registry:component",