Skip to content

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

feat: icon send

dev_wandry2f600b227c19
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index 5a218242..6ca0eafe 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -18,6 +18,7 @@ import { LoaderIconStatic } from "@/registry/remocn/icon-loader";
import { PlusIconStatic } from "@/registry/remocn/icon-plus";
import { RefreshCwIconStatic } from "@/registry/remocn/icon-refresh-cw";
import { SearchIconStatic } from "@/registry/remocn/icon-search";
+import { SendIconStatic } from "@/registry/remocn/icon-send";
import { SettingsIconStatic } from "@/registry/remocn/icon-settings";
import { TrashIconStatic } from "@/registry/remocn/icon-trash";
import { UploadIconStatic } from "@/registry/remocn/icon-upload";
@@ -131,6 +132,12 @@ export const ICONS: IconEntry[] = [
category: "Actions & UI",
Static: PlusIconStatic,
},
+ {
+ name: "icon-send",
+ label: "Send",
+ category: "Actions & UI",
+ Static: SendIconStatic,
+ },
];
const CATEGORY_ORDER: IconCategory[] = [
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index 2007451b..3820c40a 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -35,6 +35,7 @@ import { iconLoaderConfig } from "@/registry/remocn/icon-loader/config";
import { iconPlusConfig } from "@/registry/remocn/icon-plus/config";
import { iconRefreshCwConfig } from "@/registry/remocn/icon-refresh-cw/config";
import { iconSearchConfig } from "@/registry/remocn/icon-search/config";
+import { iconSendConfig } from "@/registry/remocn/icon-send/config";
import { iconSettingsConfig } from "@/registry/remocn/icon-settings/config";
import { iconTrashConfig } from "@/registry/remocn/icon-trash/config";
import { iconUploadConfig } from "@/registry/remocn/icon-upload/config";
@@ -642,6 +643,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconSearchConfig,
},
+ "icon-send": {
+ load: () =>
+ import("@/registry/remocn/icon-send").then((m) => ({
+ default: m.SendIcon,
+ })),
+ config: iconSendConfig,
+ },
"icon-settings": {
load: () =>
import("@/registry/remocn/icon-settings").then((m) => ({
diff --git a/registry/remocn/icon-send/config.ts b/registry/remocn/icon-send/config.ts
new file mode 100644
index 00000000..f5594dff
--- /dev/null
+++ b/registry/remocn/icon-send/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconSendConfig: ComponentConfig = {
+ componentName: "SendIcon",
+ importPath: "@/components/remocn/icon-send",
+ 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: 75,
+ fps: FPS,
+ compositionWidth: 48,
+ compositionHeight: 48,
+};
diff --git a/registry/remocn/icon-send/index.tsx b/registry/remocn/icon-send/index.tsx
new file mode 100644
index 00000000..efc4bbf5
--- /dev/null
+++ b/registry/remocn/icon-send/index.tsx
@@ -0,0 +1,122 @@
+"use client";
+
+import { Easing, interpolate } from "remotion";
+import {
+ drawnPathProps,
+ type IconAnimationProps,
+ useIconAnimation,
+} from "@/lib/remocn-icons";
+
+const PLANE_PATH =
+ "M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z";
+const FOLD_PATH = "m21.854 2.147-10.94 10.939";
+
+const TIMINGS = {
+ drawDurationInFrames: 14,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 22,
+ loop: false,
+} as const;
+
+export function SendIcon({
+ animation = "both",
+ loop,
+ speed,
+ size = 48,
+ color = "currentColor",
+ strokeWidth = 2,
+ className,
+}: IconAnimationProps) {
+ const { drawProgress, scaleIn, actionProgress } = useIconAnimation(
+ { animation, loop, speed },
+ TIMINGS,
+ );
+
+ const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);
+
+ const planeProgress = interpolate(linearDraw, [0, 1], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ });
+ const foldProgress = interpolate(linearDraw, [0.714, 1], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+
+ const plane = drawnPathProps(PLANE_PATH, planeProgress);
+ const fold = drawnPathProps(FOLD_PATH, foldProgress);
+
+ const dartEase = {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ } as const;
+ const tx = interpolate(actionProgress, [0, 0.18, 0.5, 1], [0, -1.5, 5, 0], dartEase);
+ const ty = interpolate(actionProgress, [0, 0.18, 0.5, 1], [0, 1, -4, 0], dartEase);
+ const rot = interpolate(actionProgress, [0, 0.18, 0.5, 1], [0, 2, -12, 0], dartEase);
+
+ 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})`,
+ }}
+ >
+ <g transform={`translate(${tx} ${ty}) rotate(${rot} 12 12)`}>
+ <path
+ d={PLANE_PATH}
+ strokeDasharray={plane.strokeDasharray}
+ strokeDashoffset={plane.strokeDashoffset}
+ />
+ <path
+ d={FOLD_PATH}
+ strokeDasharray={fold.strokeDasharray}
+ strokeDashoffset={fold.strokeDashoffset}
+ />
+ </g>
+ </svg>
+ );
+}
+
+export function SendIconStatic({
+ 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={PLANE_PATH} />
+ <path d={FOLD_PATH} />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index 6dd5993e..6419df12 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -1563,6 +1563,21 @@
"target": "components/remocn/icon-plus.tsx"
}
]
+ },
+ {
+ "name": "icon-send",
+ "type": "registry:component",
+ "title": "Send",
+ "description": "Animated Lucide send icon — the paper plane draws on, then darts forward with a wind-up and settles back for a send-message beat.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-send/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-send.tsx"
+ }
+ ]
}
]
}