Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icon down
dev_wandry95e64b846629
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex 440de7a9..71750138 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 { ArrowDownIconStatic } from "@/registry/remocn/icon-arrow-down";import { ArrowLeftIconStatic } from "@/registry/remocn/icon-arrow-left";import { ArrowRightIconStatic } from "@/registry/remocn/icon-arrow-right";import { ArrowUpIconStatic } from "@/registry/remocn/icon-arrow-up";@@ -208,6 +209,12 @@ export const ICONS: IconEntry[] = [category: "Arrows & navigation",Static: ArrowUpIconStatic,},+ {+ name: "icon-arrow-down",+ label: "Arrow Down",+ category: "Arrows & navigation",+ Static: ArrowDownIconStatic,+ },];const CATEGORY_ORDER: IconCategory[] = [diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 4cbdc99a..01e9d405 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 { iconArrowDownConfig } from "@/registry/remocn/icon-arrow-down/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";@@ -590,6 +591,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconAlertTriangleConfig,},+ "icon-arrow-down": {+ load: () =>+ import("@/registry/remocn/icon-arrow-down").then((m) => ({+ default: m.ArrowDownIcon,+ })),+ config: iconArrowDownConfig,+ },"icon-arrow-left": {load: () =>import("@/registry/remocn/icon-arrow-left").then((m) => ({diff --git a/registry/remocn/icon-arrow-down/config.ts b/registry/remocn/icon-arrow-down/config.tsnew file mode 100644index 00000000..52b5af60--- /dev/null+++ b/registry/remocn/icon-arrow-down/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconArrowDownConfig: ComponentConfig = {+ componentName: "ArrowDownIcon",+ importPath: "@/components/remocn/icon-arrow-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: 60,+ fps: FPS,+ compositionWidth: 48,+ compositionHeight: 48,+};diff --git a/registry/remocn/icon-arrow-down/index.tsx b/registry/remocn/icon-arrow-down/index.tsxnew file mode 100644index 00000000..c077cdb6--- /dev/null+++ b/registry/remocn/icon-arrow-down/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 5v14";+const HEAD_PATH = "m19 12-7 7-7-7";++const TIMINGS = {+ drawDurationInFrames: 12,+ actionDelayInFrames: 2,+ actionDurationInFrames: 16,+ loop: false,+} as const;++export function ArrowDownIcon({+ 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 ArrowDownIconStatic({+ 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.jsonindex 4160d0b2..1b50a83b 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -1684,6 +1684,21 @@}]},+ {+ "name": "icon-arrow-down",+ "type": "registry:component",+ "title": "Arrow Down",+ "description": "Animated Lucide arrow-down icon — the shaft and head draw on, then the arrow nudges down for cost/latency reduction beats or scroll cues.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-arrow-down/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-arrow-down.tsx"+ }+ ]+ },{"name": "icon-sparkles","type": "registry:component",