Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icon dollar
dev_wandry8c153a088d88
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex 4c2fb844..615a7f5b 100644--- a/components/docs/icons-gallery.tsx+++ b/components/docs/icons-gallery.tsx@@ -30,6 +30,7 @@ import { CodeIconStatic } from "@/registry/remocn/icon-code";import { CopyIconStatic } from "@/registry/remocn/icon-copy";import { CreditCardIconStatic } from "@/registry/remocn/icon-credit-card";import { DatabaseIconStatic } from "@/registry/remocn/icon-database";+import { DollarSignIconStatic } from "@/registry/remocn/icon-dollar-sign";import { DownloadIconStatic } from "@/registry/remocn/icon-download";import { ExternalLinkIconStatic } from "@/registry/remocn/icon-external-link";import { EyeOffIconStatic } from "@/registry/remocn/icon-eye-off";@@ -287,6 +288,12 @@ export const ICONS: IconEntry[] = [category: "Commerce",Static: CreditCardIconStatic,},+ {+ name: "icon-dollar-sign",+ label: "Dollar Sign",+ category: "Commerce",+ Static: DollarSignIconStatic,+ },{name: "icon-search",label: "Search",diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 25975784..9b9cce43 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -46,6 +46,7 @@ import { iconCodeConfig } from "@/registry/remocn/icon-code/config";import { iconCopyConfig } from "@/registry/remocn/icon-copy/config";import { iconCreditCardConfig } from "@/registry/remocn/icon-credit-card/config";import { iconDatabaseConfig } from "@/registry/remocn/icon-database/config";+import { iconDollarSignConfig } from "@/registry/remocn/icon-dollar-sign/config";import { iconDownloadConfig } from "@/registry/remocn/icon-download/config";import { iconExternalLinkConfig } from "@/registry/remocn/icon-external-link/config";import { iconEyeOffConfig } from "@/registry/remocn/icon-eye-off/config";@@ -789,6 +790,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconDatabaseConfig,},+ "icon-dollar-sign": {+ load: () =>+ import("@/registry/remocn/icon-dollar-sign").then((m) => ({+ default: m.DollarSignIcon,+ })),+ config: iconDollarSignConfig,+ },"icon-download": {load: () =>import("@/registry/remocn/icon-download").then((m) => ({diff --git a/registry/remocn/icon-dollar-sign/config.ts b/registry/remocn/icon-dollar-sign/config.tsnew file mode 100644index 00000000..f595f663--- /dev/null+++ b/registry/remocn/icon-dollar-sign/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconDollarSignConfig: ComponentConfig = {+ componentName: "DollarSignIcon",+ importPath: "@/components/remocn/icon-dollar-sign",+ 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: 70,+ fps: FPS,+ compositionWidth: 48,+ compositionHeight: 48,+};diff --git a/registry/remocn/icon-dollar-sign/index.tsx b/registry/remocn/icon-dollar-sign/index.tsxnew file mode 100644index 00000000..3cdf74bd--- /dev/null+++ b/registry/remocn/icon-dollar-sign/index.tsx@@ -0,0 +1,122 @@+"use client";++import { Easing, interpolate } from "remotion";+import {+ drawnPathProps,+ type IconAnimationProps,+ useIconAnimation,+} from "@/lib/remocn-icons";++const BAR_PATH = "M12 2V22";+const S_PATH = "M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6";++const BASE_Y = 22;++const TIMINGS = {+ drawDurationInFrames: 14,+ actionDelayInFrames: 2,+ actionDurationInFrames: 20,+ loop: false,+} as const;++export function DollarSignIcon({+ 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 barDraw = interpolate(linearDraw, [0, 0.55], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });+ const sDraw = interpolate(linearDraw, [0.3, 1], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });++ const stretch = acting+ ? interpolate(actionProgress, [0.1, 0.5, 1], [1, 1.1, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ })+ : 1;++ const bar = drawnPathProps(BAR_PATH, acting ? 1 : barDraw);+ const s = drawnPathProps(S_PATH, acting ? 1 : sDraw);++ const scale = 0.85 + 0.15 * scaleIn;+ const stretchTransform = `translate(0 ${BASE_Y * (1 - stretch)}) scale(1 ${stretch})`;++ 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={stretchTransform}>+ <path+ d={BAR_PATH}+ strokeDasharray={bar.strokeDasharray}+ strokeDashoffset={bar.strokeDashoffset}+ />+ <path+ d={S_PATH}+ strokeDasharray={s.strokeDasharray}+ strokeDashoffset={s.strokeDashoffset}+ />+ </g>+ </svg>+ );+}++export function DollarSignIconStatic({+ 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"+ >+ <line x1="12" x2="12" y1="2" y2="22" />+ <path d={S_PATH} />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex 7dd2ca1b..c5414ffd 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -2524,6 +2524,21 @@}]},+ {+ "name": "icon-dollar-sign",+ "type": "registry:component",+ "title": "Dollar Sign",+ "description": "Animated Lucide dollar-sign icon — draws on, then the sign stretches tall: understated cha-ching.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-dollar-sign/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-dollar-sign.tsx"+ }+ ]+ },{"name": "icon-user","type": "registry:component",