Skip to content

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

feat: icon house

dev_wandry49197d3bf173
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index 197cb1b6..f194b735 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -34,6 +34,7 @@ import { FilterIconStatic } from "@/registry/remocn/icon-filter";
import { FlameIconStatic } from "@/registry/remocn/icon-flame";
import { HeartIconStatic } from "@/registry/remocn/icon-heart";
import { HelpCircleIconStatic } from "@/registry/remocn/icon-help-circle";
+import { HomeIconStatic } from "@/registry/remocn/icon-home";
import { ImageIconStatic } from "@/registry/remocn/icon-image";
import { InboxIconStatic } from "@/registry/remocn/icon-inbox";
import { InfoIconStatic } from "@/registry/remocn/icon-info";
@@ -189,6 +190,12 @@ export const ICONS: IconEntry[] = [
category: "Time & planning",
Static: TimerIconStatic,
},
+ {
+ name: "icon-home",
+ label: "Home",
+ category: "Files & dev",
+ Static: HomeIconStatic,
+ },
{
name: "icon-search",
label: "Search",
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index fcf7e5e6..561ad5d6 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -50,6 +50,7 @@ import { iconFilterConfig } from "@/registry/remocn/icon-filter/config";
import { iconFlameConfig } from "@/registry/remocn/icon-flame/config";
import { iconHeartConfig } from "@/registry/remocn/icon-heart/config";
import { iconHelpCircleConfig } from "@/registry/remocn/icon-help-circle/config";
+import { iconHomeConfig } from "@/registry/remocn/icon-home/config";
import { iconImageConfig } from "@/registry/remocn/icon-image/config";
import { iconInboxConfig } from "@/registry/remocn/icon-inbox/config";
import { iconInfoConfig } from "@/registry/remocn/icon-info/config";
@@ -803,6 +804,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconHelpCircleConfig,
},
+ "icon-home": {
+ load: () =>
+ import("@/registry/remocn/icon-home").then((m) => ({
+ default: m.HomeIcon,
+ })),
+ config: iconHomeConfig,
+ },
"icon-image": {
load: () =>
import("@/registry/remocn/icon-image").then((m) => ({
diff --git a/registry/remocn/icon-home/config.ts b/registry/remocn/icon-home/config.ts
new file mode 100644
index 00000000..ab88ad1d
--- /dev/null
+++ b/registry/remocn/icon-home/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconHomeConfig: ComponentConfig = {
+ componentName: "HomeIcon",
+ importPath: "@/components/remocn/icon-home",
+ 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-home/index.tsx b/registry/remocn/icon-home/index.tsx
new file mode 100644
index 00000000..7dbd86e4
--- /dev/null
+++ b/registry/remocn/icon-home/index.tsx
@@ -0,0 +1,113 @@
+"use client";
+
+import { Easing, interpolate } from "remotion";
+import {
+ drawnPathProps,
+ type IconAnimationProps,
+ useIconAnimation,
+} from "@/lib/remocn-icons";
+
+const DOOR_PATH = "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8";
+const HOUSE_PATH =
+ "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z";
+
+const TIMINGS = {
+ drawDurationInFrames: 14,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 22,
+ loop: false,
+} as const;
+
+export function HomeIcon({
+ 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 doorDraw = interpolate(actionProgress, [0.1, 0.5], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+ const pop = acting
+ ? interpolate(actionProgress, [0.5, 0.7, 1], [1, 1.05, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ })
+ : 1;
+
+ const doorProgress = animation === "draw" ? 1 : acting ? doorDraw : 0;
+
+ const house = drawnPathProps(HOUSE_PATH, drawProgress);
+ const door = drawnPathProps(DOOR_PATH, doorProgress);
+
+ const scale = (0.85 + 0.15 * scaleIn) * pop;
+
+ 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={HOUSE_PATH}
+ strokeDasharray={house.strokeDasharray}
+ strokeDashoffset={house.strokeDashoffset}
+ />
+ <path
+ d={DOOR_PATH}
+ strokeDasharray={door.strokeDasharray}
+ strokeDashoffset={door.strokeDashoffset}
+ />
+ </svg>
+ );
+}
+
+export function HomeIconStatic({
+ 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={DOOR_PATH} />
+ <path d={HOUSE_PATH} />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index 0b536ebd..bde7ccd6 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -2314,6 +2314,21 @@
}
]
},
+ {
+ "name": "icon-home",
+ "type": "registry:component",
+ "title": "Home",
+ "description": "Animated Lucide home icon — the house draws on, then the door re-draws open and the house settles: welcome home.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-home/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-home.tsx"
+ }
+ ]
+ },
{
"name": "icon-user",
"type": "registry:component",