Skip to content

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

feat: icon chevron left

dev_wandrya4c300103f5d
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index 7a8b965b..90c2565e 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -18,6 +18,7 @@ import { CameraIconStatic } from "@/registry/remocn/icon-camera";
import { CheckCircleIconStatic } from "@/registry/remocn/icon-check-circle";
import { CheckIconStatic } from "@/registry/remocn/icon-check";
import { ChevronDownIconStatic } from "@/registry/remocn/icon-chevron-down";
+import { ChevronLeftIconStatic } from "@/registry/remocn/icon-chevron-left";
import { ChevronUpIconStatic } from "@/registry/remocn/icon-chevron-up";
import { CopyIconStatic } from "@/registry/remocn/icon-copy";
import { DownloadIconStatic } from "@/registry/remocn/icon-download";
@@ -307,6 +308,12 @@ export const ICONS: IconEntry[] = [
category: "Arrows & navigation",
Static: ChevronDownIconStatic,
},
+ {
+ name: "icon-chevron-left",
+ label: "Chevron Left",
+ category: "Arrows & navigation",
+ Static: ChevronLeftIconStatic,
+ },
];
const CATEGORY_ORDER: IconCategory[] = [
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index 84334cdb..7828db47 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -34,6 +34,7 @@ import { iconCameraConfig } from "@/registry/remocn/icon-camera/config";
import { iconCheckCircleConfig } from "@/registry/remocn/icon-check-circle/config";
import { iconCheckConfig } from "@/registry/remocn/icon-check/config";
import { iconChevronDownConfig } from "@/registry/remocn/icon-chevron-down/config";
+import { iconChevronLeftConfig } from "@/registry/remocn/icon-chevron-left/config";
import { iconChevronUpConfig } from "@/registry/remocn/icon-chevron-up/config";
import { iconCopyConfig } from "@/registry/remocn/icon-copy/config";
import { iconDownloadConfig } from "@/registry/remocn/icon-download/config";
@@ -659,6 +660,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconChevronDownConfig,
},
+ "icon-chevron-left": {
+ load: () =>
+ import("@/registry/remocn/icon-chevron-left").then((m) => ({
+ default: m.ChevronLeftIcon,
+ })),
+ config: iconChevronLeftConfig,
+ },
"icon-chevron-up": {
load: () =>
import("@/registry/remocn/icon-chevron-up").then((m) => ({
diff --git a/registry/remocn/icon-chevron-left/config.ts b/registry/remocn/icon-chevron-left/config.ts
new file mode 100644
index 00000000..65373a3f
--- /dev/null
+++ b/registry/remocn/icon-chevron-left/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconChevronLeftConfig: ComponentConfig = {
+ componentName: "ChevronLeftIcon",
+ importPath: "@/components/remocn/icon-chevron-left",
+ 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-chevron-left/index.tsx b/registry/remocn/icon-chevron-left/index.tsx
new file mode 100644
index 00000000..504441d8
--- /dev/null
+++ b/registry/remocn/icon-chevron-left/index.tsx
@@ -0,0 +1,98 @@
+"use client";
+
+import { Easing, interpolate } from "remotion";
+import {
+ drawnPathProps,
+ type IconAnimationProps,
+ useIconAnimation,
+} from "@/lib/remocn-icons";
+
+const CHEVRON_PATH = "M15 18 9 12 15 6";
+
+const TIMINGS = {
+ drawDurationInFrames: 14,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 22,
+ loop: false,
+} as const;
+
+export function ChevronLeftIcon({
+ animation = "both",
+ loop,
+ speed,
+ size = 48,
+ color = "currentColor",
+ strokeWidth = 2,
+ className,
+}: IconAnimationProps) {
+ const { drawProgress, scaleIn, actionProgress } = useIconAnimation(
+ { animation, loop, speed },
+ TIMINGS,
+ );
+
+ const dash = drawnPathProps(CHEVRON_PATH, drawProgress);
+ const nudge = interpolate(
+ actionProgress,
+ [0, 0.22, 0.45, 0.68, 1],
+ [0, -4, 0, -2, 0],
+ {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ },
+ );
+ 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: `translateX(${nudge}px) scale(${scale})`,
+ }}
+ >
+ <path
+ d={CHEVRON_PATH}
+ strokeDasharray={dash.strokeDasharray}
+ strokeDashoffset={dash.strokeDashoffset}
+ />
+ </svg>
+ );
+}
+
+export function ChevronLeftIconStatic({
+ 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={CHEVRON_PATH} />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index 4d2e8961..53e19422 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -1879,6 +1879,21 @@
}
]
},
+ {
+ "name": "icon-chevron-left",
+ "type": "registry:component",
+ "title": "Chevron Left",
+ "description": "Animated Lucide chevron-left icon — draws on, then nudges left with a fading echo.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-chevron-left/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-chevron-left.tsx"
+ }
+ ]
+ },
{
"name": "icon-sparkles",
"type": "registry:component",