Skip to content

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

feat: icon trending down

dev_wandryb819643d91e4
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index 3d520918..ff7c5e08 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -89,6 +89,7 @@ import { ThumbsUpIconStatic } from "@/registry/remocn/icon-thumbs-up";
import { TimerIconStatic } from "@/registry/remocn/icon-timer";
import { ZapIconStatic } from "@/registry/remocn/icon-zap";
import { TrashIconStatic } from "@/registry/remocn/icon-trash";
+import { TrendingDownIconStatic } from "@/registry/remocn/icon-trending-down";
import { TrendingUpIconStatic } from "@/registry/remocn/icon-trending-up";
import { UploadIconStatic } from "@/registry/remocn/icon-upload";
import { UserPlusIconStatic } from "@/registry/remocn/icon-user-plus";
@@ -330,6 +331,12 @@ export const ICONS: IconEntry[] = [
category: "Charts & data",
Static: BarChart3IconStatic,
},
+ {
+ name: "icon-trending-down",
+ label: "Trending Down",
+ category: "Charts & data",
+ Static: TrendingDownIconStatic,
+ },
{
name: "icon-trending-up",
label: "Trending Up",
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index f73fb773..0dfd66e7 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -104,6 +104,7 @@ import { iconTerminalConfig } from "@/registry/remocn/icon-terminal/config";
import { iconThumbsUpConfig } from "@/registry/remocn/icon-thumbs-up/config";
import { iconTimerConfig } from "@/registry/remocn/icon-timer/config";
import { iconTrashConfig } from "@/registry/remocn/icon-trash/config";
+import { iconTrendingDownConfig } from "@/registry/remocn/icon-trending-down/config";
import { iconTrendingUpConfig } from "@/registry/remocn/icon-trending-up/config";
import { iconUploadConfig } from "@/registry/remocn/icon-upload/config";
import { iconUserPlusConfig } from "@/registry/remocn/icon-user-plus/config";
@@ -1202,6 +1203,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconTrashConfig,
},
+ "icon-trending-down": {
+ load: () =>
+ import("@/registry/remocn/icon-trending-down").then((m) => ({
+ default: m.TrendingDownIcon,
+ })),
+ config: iconTrendingDownConfig,
+ },
"icon-trending-up": {
load: () =>
import("@/registry/remocn/icon-trending-up").then((m) => ({
diff --git a/registry/remocn/icon-trending-down/config.ts b/registry/remocn/icon-trending-down/config.ts
new file mode 100644
index 00000000..7ce1ec87
--- /dev/null
+++ b/registry/remocn/icon-trending-down/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconTrendingDownConfig: ComponentConfig = {
+ componentName: "TrendingDownIcon",
+ importPath: "@/components/remocn/icon-trending-down",
+ 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-trending-down/index.tsx b/registry/remocn/icon-trending-down/index.tsx
new file mode 100644
index 00000000..c3a03ed4
--- /dev/null
+++ b/registry/remocn/icon-trending-down/index.tsx
@@ -0,0 +1,130 @@
+"use client";
+
+import { Easing, interpolate } from "remotion";
+import {
+ drawnPathProps,
+ type IconAnimationProps,
+ useIconAnimation,
+} from "@/lib/remocn-icons";
+
+const TREND_PATH = "M2 7 8.5 13.5 13.5 8.5 22 17";
+const ARROW_PATH = "M16 17H22V11";
+
+const LOW_X = 22;
+const LOW_Y = 17;
+
+const TIMINGS = {
+ drawDurationInFrames: 18,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 20,
+ loop: false,
+} as const;
+
+export function TrendingDownIcon({
+ animation = "both",
+ loop,
+ speed,
+ size = 48,
+ color = "currentColor",
+ strokeWidth = 2,
+ className,
+}: IconAnimationProps) {
+ const { drawProgress, scaleIn, actionProgress, actionFrame } =
+ useIconAnimation({ animation, loop, speed }, TIMINGS);
+
+ const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);
+ const acting = animation !== "draw" && actionFrame >= 0;
+
+ const trendDraw = interpolate(linearDraw, [0, 0.8], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.in(Easing.quad),
+ });
+ const arrowDraw = interpolate(linearDraw, [0.65, 1], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+
+ const pop = acting
+ ? interpolate(actionProgress, [0.1, 0.45, 1], [1, 1.15, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ })
+ : 1;
+ const drop = acting
+ ? interpolate(actionProgress, [0.1, 0.45, 1], [0, 1, 0], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ })
+ : 0;
+
+ const trend = drawnPathProps(TREND_PATH, acting ? 1 : trendDraw);
+ const arrow = drawnPathProps(ARROW_PATH, acting ? 1 : arrowDraw);
+
+ const scale = 0.85 + 0.15 * scaleIn;
+ const popTransform = `translate(${LOW_X * (1 - pop)} ${LOW_Y * (1 - pop) + drop}) scale(${pop})`;
+
+ 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})`,
+ }}
+ >
+ <path
+ d={TREND_PATH}
+ strokeDasharray={trend.strokeDasharray}
+ strokeDashoffset={trend.strokeDashoffset}
+ />
+ <g transform={popTransform}>
+ <path
+ d={ARROW_PATH}
+ strokeDasharray={arrow.strokeDasharray}
+ strokeDashoffset={arrow.strokeDashoffset}
+ />
+ </g>
+ </svg>
+ );
+}
+
+export function TrendingDownIconStatic({
+ 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="M16 17h6v-6" />
+ <path d="m22 17-8.5-8.5-5 5L2 7" />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index 61b7c197..cffda594 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -2614,6 +2614,21 @@
}
]
},
+ {
+ "name": "icon-trending-down",
+ "type": "registry:component",
+ "title": "Trending Down",
+ "description": "Animated Lucide trending-down icon — the line descends across, then the arrowhead lands with damped weight.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-trending-down/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-trending-down.tsx"
+ }
+ ]
+ },
{
"name": "icon-trending-up",
"type": "registry:component",