Skip to content

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

feat: icon up

dev_wandry4bcd35c6f0a0
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index 51e7ff4f..440de7a9 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -10,6 +10,7 @@ import registry, { type RegistryEntry } from "@/registry/__index__";
import { AlertTriangleIconStatic } from "@/registry/remocn/icon-alert-triangle";
import { ArrowLeftIconStatic } from "@/registry/remocn/icon-arrow-left";
import { ArrowRightIconStatic } from "@/registry/remocn/icon-arrow-right";
+import { ArrowUpIconStatic } from "@/registry/remocn/icon-arrow-up";
import { BellIconStatic } from "@/registry/remocn/icon-bell";
import { CheckCircleIconStatic } from "@/registry/remocn/icon-check-circle";
import { CheckIconStatic } from "@/registry/remocn/icon-check";
@@ -201,6 +202,12 @@ export const ICONS: IconEntry[] = [
category: "Arrows & navigation",
Static: ArrowLeftIconStatic,
},
+ {
+ name: "icon-arrow-up",
+ label: "Arrow Up",
+ category: "Arrows & navigation",
+ Static: ArrowUpIconStatic,
+ },
];
const CATEGORY_ORDER: IconCategory[] = [
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index 669aae9b..4cbdc99a 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -27,6 +27,7 @@ import { grainDissolveConfig } from "@/registry/remocn/grain-dissolve/config";
import { iconAlertTriangleConfig } from "@/registry/remocn/icon-alert-triangle/config";
import { iconArrowLeftConfig } from "@/registry/remocn/icon-arrow-left/config";
import { iconArrowRightConfig } from "@/registry/remocn/icon-arrow-right/config";
+import { iconArrowUpConfig } from "@/registry/remocn/icon-arrow-up/config";
import { iconBellConfig } from "@/registry/remocn/icon-bell/config";
import { iconCheckCircleConfig } from "@/registry/remocn/icon-check-circle/config";
import { iconCheckConfig } from "@/registry/remocn/icon-check/config";
@@ -603,6 +604,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconArrowRightConfig,
},
+ "icon-arrow-up": {
+ load: () =>
+ import("@/registry/remocn/icon-arrow-up").then((m) => ({
+ default: m.ArrowUpIcon,
+ })),
+ config: iconArrowUpConfig,
+ },
"icon-bell": {
load: () =>
import("@/registry/remocn/icon-bell").then((m) => ({
diff --git a/registry/remocn/icon-arrow-up/config.ts b/registry/remocn/icon-arrow-up/config.ts
new file mode 100644
index 00000000..6f6d9539
--- /dev/null
+++ b/registry/remocn/icon-arrow-up/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconArrowUpConfig: ComponentConfig = {
+ componentName: "ArrowUpIcon",
+ importPath: "@/components/remocn/icon-arrow-up",
+ 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: 60,
+ fps: FPS,
+ compositionWidth: 48,
+ compositionHeight: 48,
+};
diff --git a/registry/remocn/icon-arrow-up/index.tsx b/registry/remocn/icon-arrow-up/index.tsx
new file mode 100644
index 00000000..67557874
--- /dev/null
+++ b/registry/remocn/icon-arrow-up/index.tsx
@@ -0,0 +1,123 @@
+"use client";
+
+import { Easing, interpolate } from "remotion";
+import {
+ drawnPathProps,
+ type IconAnimationProps,
+ useIconAnimation,
+} from "@/lib/remocn-icons";
+
+const SHAFT_PATH = "M12 19V5";
+const HEAD_PATH = "m5 12 7-7 7 7";
+
+const TIMINGS = {
+ drawDurationInFrames: 12,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 16,
+ loop: false,
+} as const;
+
+export function ArrowUpIcon({
+ 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 shaftProgress = interpolate(linearDraw, [0, 0.66], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+ const headProgress = interpolate(linearDraw, [0.5, 1], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ });
+
+ const shaft = drawnPathProps(SHAFT_PATH, shaftProgress);
+ const head = drawnPathProps(HEAD_PATH, headProgress);
+
+ const outward = interpolate(actionProgress, [0, 0.5], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.back(2.2)),
+ });
+ const settle = interpolate(actionProgress, [0.5, 1], [1, 0], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ });
+ const nudgeY = -6 * (actionProgress < 0.5 ? outward : settle);
+ 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(0 ${nudgeY})`}>
+ <path
+ d={SHAFT_PATH}
+ strokeDasharray={shaft.strokeDasharray}
+ strokeDashoffset={shaft.strokeDashoffset}
+ />
+ <path
+ d={HEAD_PATH}
+ strokeDasharray={head.strokeDasharray}
+ strokeDashoffset={head.strokeDashoffset}
+ />
+ </g>
+ </svg>
+ );
+}
+
+export function ArrowUpIconStatic({
+ 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={SHAFT_PATH} />
+ <path d={HEAD_PATH} />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index 612e5914..4160d0b2 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -1669,6 +1669,21 @@
}
]
},
+ {
+ "name": "icon-arrow-up",
+ "type": "registry:component",
+ "title": "Arrow Up",
+ "description": "Animated Lucide arrow-up icon — the shaft and head draw on, then the arrow nudges up for growth, improvement, or upward-trend beats.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-arrow-up/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-arrow-up.tsx"
+ }
+ ]
+ },
{
"name": "icon-sparkles",
"type": "registry:component",