Skip to content

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

feat: icon cloud

dev_wandrya779daa12394
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index a7dbc027..9d18fc86 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -25,6 +25,7 @@ import { ChevronLeftIconStatic } from "@/registry/remocn/icon-chevron-left";
import { ChevronRightIconStatic } from "@/registry/remocn/icon-chevron-right";
import { ChevronUpIconStatic } from "@/registry/remocn/icon-chevron-up";
import { ClockIconStatic } from "@/registry/remocn/icon-clock";
+import { CloudIconStatic } from "@/registry/remocn/icon-cloud";
import { CodeIconStatic } from "@/registry/remocn/icon-code";
import { CopyIconStatic } from "@/registry/remocn/icon-copy";
import { DatabaseIconStatic } from "@/registry/remocn/icon-database";
@@ -231,6 +232,12 @@ export const ICONS: IconEntry[] = [
category: "Files & dev",
Static: DatabaseIconStatic,
},
+ {
+ name: "icon-cloud",
+ label: "Cloud",
+ category: "Files & dev",
+ Static: CloudIconStatic,
+ },
{
name: "icon-search",
label: "Search",
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index 708727f2..a2bc6344 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -41,6 +41,7 @@ import { iconChevronLeftConfig } from "@/registry/remocn/icon-chevron-left/confi
import { iconChevronRightConfig } from "@/registry/remocn/icon-chevron-right/config";
import { iconChevronUpConfig } from "@/registry/remocn/icon-chevron-up/config";
import { iconClockConfig } from "@/registry/remocn/icon-clock/config";
+import { iconCloudConfig } from "@/registry/remocn/icon-cloud/config";
import { iconCodeConfig } from "@/registry/remocn/icon-code/config";
import { iconCopyConfig } from "@/registry/remocn/icon-copy/config";
import { iconDatabaseConfig } from "@/registry/remocn/icon-database/config";
@@ -746,6 +747,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconClockConfig,
},
+ "icon-cloud": {
+ load: () =>
+ import("@/registry/remocn/icon-cloud").then((m) => ({
+ default: m.CloudIcon,
+ })),
+ config: iconCloudConfig,
+ },
"icon-code": {
load: () =>
import("@/registry/remocn/icon-code").then((m) => ({
diff --git a/registry/remocn/icon-cloud/config.ts b/registry/remocn/icon-cloud/config.ts
new file mode 100644
index 00000000..517b6aa0
--- /dev/null
+++ b/registry/remocn/icon-cloud/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconCloudConfig: ComponentConfig = {
+ componentName: "CloudIcon",
+ importPath: "@/components/remocn/icon-cloud",
+ 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-cloud/index.tsx b/registry/remocn/icon-cloud/index.tsx
new file mode 100644
index 00000000..a4ada1c8
--- /dev/null
+++ b/registry/remocn/icon-cloud/index.tsx
@@ -0,0 +1,97 @@
+"use client";
+
+import { Easing, interpolate } from "remotion";
+import {
+ drawnPathProps,
+ type IconAnimationProps,
+ useIconAnimation,
+} from "@/lib/remocn-icons";
+
+const CLOUD_PATH = "M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z";
+
+const TIMINGS = {
+ drawDurationInFrames: 14,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 30,
+ loop: false,
+} as const;
+
+export function CloudIcon({
+ 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 float = acting
+ ? interpolate(actionProgress, [0, 0.35, 0.6, 0.8, 1], [0, -2, 0, -1, 0], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.sin),
+ })
+ : 0;
+
+ const cloud = drawnPathProps(CLOUD_PATH, drawProgress);
+
+ 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: `translateY(${float}px) scale(${scale})`,
+ }}
+ >
+ <path
+ d={CLOUD_PATH}
+ strokeDasharray={cloud.strokeDasharray}
+ strokeDashoffset={cloud.strokeDashoffset}
+ />
+ </svg>
+ );
+}
+
+export function CloudIconStatic({
+ 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={CLOUD_PATH} />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index 3c58b4f7..af9dc8b8 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -2404,6 +2404,21 @@
}
]
},
+ {
+ "name": "icon-cloud",
+ "type": "registry:component",
+ "title": "Cloud",
+ "description": "Animated Lucide cloud icon — draws on, then floats: a weightless bob and a half before settling.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-cloud/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-cloud.tsx"
+ }
+ ]
+ },
{
"name": "icon-user",
"type": "registry:component",