Skip to content

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

feat: icon right

dev_wandry73a126dfd720
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index d1d6dd9c..2678803f 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -8,6 +8,7 @@ import { usePrefersReducedMotion } from "@/lib/use-prefers-reduced-motion";
import { cn } from "@/lib/utils";
import registry, { type RegistryEntry } from "@/registry/__index__";
import { AlertTriangleIconStatic } from "@/registry/remocn/icon-alert-triangle";
+import { ArrowRightIconStatic } from "@/registry/remocn/icon-arrow-right";
import { BellIconStatic } from "@/registry/remocn/icon-bell";
import { CheckCircleIconStatic } from "@/registry/remocn/icon-check-circle";
import { CheckIconStatic } from "@/registry/remocn/icon-check";
@@ -187,6 +188,12 @@ export const ICONS: IconEntry[] = [
category: "Emotion & accents",
Static: PartyPopperIconStatic,
},
+ {
+ name: "icon-arrow-right",
+ label: "Arrow Right",
+ category: "Arrows & navigation",
+ Static: ArrowRightIconStatic,
+ },
];
const CATEGORY_ORDER: IconCategory[] = [
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index fca7630e..e6a04c0d 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -25,6 +25,7 @@ import { glassCodeBlockConfig } from "@/registry/remocn/glass-code-block/config"
import { glassCodeWalkConfig } from "@/registry/remocn/glass-code-walk/config";
import { grainDissolveConfig } from "@/registry/remocn/grain-dissolve/config";
import { iconAlertTriangleConfig } from "@/registry/remocn/icon-alert-triangle/config";
+import { iconArrowRightConfig } from "@/registry/remocn/icon-arrow-right/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";
@@ -587,6 +588,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconAlertTriangleConfig,
},
+ "icon-arrow-right": {
+ load: () =>
+ import("@/registry/remocn/icon-arrow-right").then((m) => ({
+ default: m.ArrowRightIcon,
+ })),
+ config: iconArrowRightConfig,
+ },
"icon-bell": {
load: () =>
import("@/registry/remocn/icon-bell").then((m) => ({
diff --git a/registry/remocn/icon-arrow-right/config.ts b/registry/remocn/icon-arrow-right/config.ts
new file mode 100644
index 00000000..7867f9d9
--- /dev/null
+++ b/registry/remocn/icon-arrow-right/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconArrowRightConfig: ComponentConfig = {
+ componentName: "ArrowRightIcon",
+ importPath: "@/components/remocn/icon-arrow-right",
+ 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-right/index.tsx b/registry/remocn/icon-arrow-right/index.tsx
new file mode 100644
index 00000000..82a30b21
--- /dev/null
+++ b/registry/remocn/icon-arrow-right/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 = "M5 12h14";
+const HEAD_PATH = "m12 5 7 7-7 7";
+
+const TIMINGS = {
+ drawDurationInFrames: 12,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 16,
+ loop: false,
+} as const;
+
+export function ArrowRightIcon({
+ 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 nudgeX = 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(${nudgeX} 0)`}>
+ <path
+ d={SHAFT_PATH}
+ strokeDasharray={shaft.strokeDasharray}
+ strokeDashoffset={shaft.strokeDashoffset}
+ />
+ <path
+ d={HEAD_PATH}
+ strokeDasharray={head.strokeDasharray}
+ strokeDashoffset={head.strokeDashoffset}
+ />
+ </g>
+ </svg>
+ );
+}
+
+export function ArrowRightIconStatic({
+ 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 705351da..de6a8e53 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -1639,6 +1639,21 @@
}
]
},
+ {
+ "name": "icon-arrow-right",
+ "type": "registry:component",
+ "title": "Arrow Right",
+ "description": "Animated Lucide arrow-right icon — the shaft and head draw on, then the arrow nudges forward for CTAs, next-step pointers, or flow direction.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-arrow-right/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-arrow-right.tsx"
+ }
+ ]
+ },
{
"name": "icon-sparkles",
"type": "registry:component",