Skip to content

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

feat: icon globe

dev_wandry1e279a057302
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index 9d18fc86..bbeadca6 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -37,6 +37,7 @@ import { FileTextIconStatic } from "@/registry/remocn/icon-file-text";
import { FilterIconStatic } from "@/registry/remocn/icon-filter";
import { FlameIconStatic } from "@/registry/remocn/icon-flame";
import { FolderIconStatic } from "@/registry/remocn/icon-folder";
+import { GlobeIconStatic } from "@/registry/remocn/icon-globe";
import { HeartIconStatic } from "@/registry/remocn/icon-heart";
import { HelpCircleIconStatic } from "@/registry/remocn/icon-help-circle";
import { HomeIconStatic } from "@/registry/remocn/icon-home";
@@ -238,6 +239,12 @@ export const ICONS: IconEntry[] = [
category: "Files & dev",
Static: CloudIconStatic,
},
+ {
+ name: "icon-globe",
+ label: "Globe",
+ category: "Files & dev",
+ Static: GlobeIconStatic,
+ },
{
name: "icon-search",
label: "Search",
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index a2bc6344..bd98c754 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -53,6 +53,7 @@ import { iconFileTextConfig } from "@/registry/remocn/icon-file-text/config";
import { iconFilterConfig } from "@/registry/remocn/icon-filter/config";
import { iconFlameConfig } from "@/registry/remocn/icon-flame/config";
import { iconFolderConfig } from "@/registry/remocn/icon-folder/config";
+import { iconGlobeConfig } from "@/registry/remocn/icon-globe/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";
@@ -831,6 +832,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconFolderConfig,
},
+ "icon-globe": {
+ load: () =>
+ import("@/registry/remocn/icon-globe").then((m) => ({
+ default: m.GlobeIcon,
+ })),
+ config: iconGlobeConfig,
+ },
"icon-heart": {
load: () =>
import("@/registry/remocn/icon-heart").then((m) => ({
diff --git a/registry/remocn/icon-globe/config.ts b/registry/remocn/icon-globe/config.ts
new file mode 100644
index 00000000..5c4289e4
--- /dev/null
+++ b/registry/remocn/icon-globe/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconGlobeConfig: ComponentConfig = {
+ componentName: "GlobeIcon",
+ importPath: "@/components/remocn/icon-globe",
+ controls: {
+ animation: {
+ type: "select",
+ default: "both",
+ options: ["draw", "action", "both"],
+ label: "Animation",
+ },
+ loop: {
+ type: "boolean",
+ default: true,
+ 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: 90,
+ fps: FPS,
+ compositionWidth: 48,
+ compositionHeight: 48,
+};
diff --git a/registry/remocn/icon-globe/index.tsx b/registry/remocn/icon-globe/index.tsx
new file mode 100644
index 00000000..37548170
--- /dev/null
+++ b/registry/remocn/icon-globe/index.tsx
@@ -0,0 +1,124 @@
+"use client";
+
+import { Easing, interpolate } from "remotion";
+import {
+ drawnPathProps,
+ type IconAnimationProps,
+ useIconAnimation,
+} from "@/lib/remocn-icons";
+
+const SPHERE_PATH = "M12 2a10 10 0 1 0 0 20 10 10 0 1 0 0-20Z";
+const MERIDIAN_PATH = "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20";
+const EQUATOR_PATH = "M2 12H22";
+
+const AXIS_X = 12;
+
+const TIMINGS = {
+ drawDurationInFrames: 16,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 40,
+ loop: true,
+} as const;
+
+export function GlobeIcon({
+ 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 sphereDraw = interpolate(linearDraw, [0, 0.7], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+ const linesDraw = interpolate(linearDraw, [0.5, 1], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+
+ const spinX = acting ? Math.cos(actionProgress * Math.PI * 2) : 1;
+
+ const sphere = drawnPathProps(SPHERE_PATH, acting ? 1 : sphereDraw);
+ const meridian = drawnPathProps(MERIDIAN_PATH, acting ? 1 : linesDraw);
+ const equator = drawnPathProps(EQUATOR_PATH, acting ? 1 : linesDraw);
+
+ const scale = 0.85 + 0.15 * scaleIn;
+ const spinTransform = `translate(${AXIS_X * (1 - spinX)} 0) scale(${spinX} 1)`;
+
+ 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})`,
+ }}
+ >
+ <g transform={spinTransform}>
+ <path
+ d={SPHERE_PATH}
+ strokeDasharray={sphere.strokeDasharray}
+ strokeDashoffset={sphere.strokeDashoffset}
+ />
+ <path
+ d={EQUATOR_PATH}
+ strokeDasharray={equator.strokeDasharray}
+ strokeDashoffset={equator.strokeDashoffset}
+ />
+ <path
+ d={MERIDIAN_PATH}
+ strokeDasharray={meridian.strokeDasharray}
+ strokeDashoffset={meridian.strokeDashoffset}
+ />
+ </g>
+ </svg>
+ );
+}
+
+export function GlobeIconStatic({
+ 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"
+ >
+ <circle cx="12" cy="12" r="10" />
+ <path d={MERIDIAN_PATH} />
+ <path d="M2 12h20" />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index af9dc8b8..d74d7e75 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -2419,6 +2419,21 @@
}
]
},
+ {
+ "name": "icon-globe",
+ "type": "registry:component",
+ "title": "Globe",
+ "description": "Animated Lucide globe icon — draws on, then the meridian sweeps west to east like the world turning. Loops by default.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-globe/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-globe.tsx"
+ }
+ ]
+ },
{
"name": "icon-user",
"type": "registry:component",