Skip to content

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

feat: icon logou

dev_wandry521722c4a372
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index ce80a5eb..56f89377 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -37,6 +37,7 @@ import { LayoutGridIconStatic } from "@/registry/remocn/icon-layout-grid";
import { LinkIconStatic } from "@/registry/remocn/icon-link";
import { LoaderIconStatic } from "@/registry/remocn/icon-loader";
import { LockIconStatic } from "@/registry/remocn/icon-lock";
+import { LogOutIconStatic } from "@/registry/remocn/icon-log-out";
import { MaximizeIconStatic } from "@/registry/remocn/icon-maximize";
import { MenuIconStatic } from "@/registry/remocn/icon-menu";
import { MicIconStatic } from "@/registry/remocn/icon-mic";
@@ -269,6 +270,12 @@ export const ICONS: IconEntry[] = [
category: "Actions & UI",
Static: KeyIconStatic,
},
+ {
+ name: "icon-log-out",
+ label: "Log Out",
+ category: "Actions & UI",
+ Static: LogOutIconStatic,
+ },
{
name: "icon-play",
label: "Play",
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index 05aaef27..48c7a05d 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -53,6 +53,7 @@ import { iconLayoutGridConfig } from "@/registry/remocn/icon-layout-grid/config"
import { iconLinkConfig } from "@/registry/remocn/icon-link/config";
import { iconLoaderConfig } from "@/registry/remocn/icon-loader/config";
import { iconLockConfig } from "@/registry/remocn/icon-lock/config";
+import { iconLogOutConfig } from "@/registry/remocn/icon-log-out/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";
@@ -808,6 +809,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconLockConfig,
},
+ "icon-log-out": {
+ load: () =>
+ import("@/registry/remocn/icon-log-out").then((m) => ({
+ default: m.LogOutIcon,
+ })),
+ config: iconLogOutConfig,
+ },
"icon-maximize": {
load: () =>
import("@/registry/remocn/icon-maximize").then((m) => ({
diff --git a/registry/remocn/icon-log-out/config.ts b/registry/remocn/icon-log-out/config.ts
new file mode 100644
index 00000000..589e443f
--- /dev/null
+++ b/registry/remocn/icon-log-out/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconLogOutConfig: ComponentConfig = {
+ componentName: "LogOutIcon",
+ importPath: "@/components/remocn/icon-log-out",
+ 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-log-out/index.tsx b/registry/remocn/icon-log-out/index.tsx
new file mode 100644
index 00000000..f93ca0aa
--- /dev/null
+++ b/registry/remocn/icon-log-out/index.tsx
@@ -0,0 +1,132 @@
+"use client";
+
+import { Easing, interpolate } from "remotion";
+import {
+ drawnPathProps,
+ type IconAnimationProps,
+ useIconAnimation,
+} from "@/lib/remocn-icons";
+
+const DOOR_PATH = "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4";
+const SHAFT_PATH = "M21 12H9";
+const HEAD_PATH = "M16 17 21 12 16 7";
+
+const TIMINGS = {
+ drawDurationInFrames: 16,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 22,
+ loop: false,
+} as const;
+
+export function LogOutIcon({
+ 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 doorDraw = interpolate(linearDraw, [0, 0.625], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+ const shaftDraw = interpolate(linearDraw, [0.375, 0.8], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+ const headDraw = interpolate(linearDraw, [0.56, 1], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+
+ const exit = acting
+ ? interpolate(actionProgress, [0, 0.22, 0.45, 0.68, 1], [0, 4, 0, 2, 0], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ })
+ : 0;
+
+ const door = drawnPathProps(DOOR_PATH, doorDraw);
+ const shaft = drawnPathProps(SHAFT_PATH, shaftDraw);
+ const head = drawnPathProps(HEAD_PATH, headDraw);
+
+ 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})`,
+ }}
+ >
+ <path
+ d={DOOR_PATH}
+ strokeDasharray={door.strokeDasharray}
+ strokeDashoffset={door.strokeDashoffset}
+ />
+ <g transform={`translate(${exit} 0)`}>
+ <path
+ d={SHAFT_PATH}
+ strokeDasharray={shaft.strokeDasharray}
+ strokeDashoffset={shaft.strokeDashoffset}
+ />
+ <path
+ d={HEAD_PATH}
+ strokeDasharray={head.strokeDasharray}
+ strokeDashoffset={head.strokeDashoffset}
+ />
+ </g>
+ </svg>
+ );
+}
+
+export function LogOutIconStatic({
+ 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={HEAD_PATH} />
+ <path d={SHAFT_PATH} />
+ <path d={DOOR_PATH} />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index c7c792cb..584b9627 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -2119,6 +2119,21 @@
}
]
},
+ {
+ "name": "icon-log-out",
+ "type": "registry:component",
+ "title": "Log Out",
+ "description": "Animated Lucide log-out icon — draws on, then the arrow steps out through the door frame with a fading echo.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-log-out/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-log-out.tsx"
+ }
+ ]
+ },
{
"name": "icon-sparkles",
"type": "registry:component",