Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icon volume 2
dev_wandry591a785d5d10
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex 8a6ceb26..0b98c41b 100644--- a/components/docs/icons-gallery.tsx+++ b/components/docs/icons-gallery.tsx@@ -38,6 +38,7 @@ import { ThumbsUpIconStatic } from "@/registry/remocn/icon-thumbs-up";import { ZapIconStatic } from "@/registry/remocn/icon-zap";import { TrashIconStatic } from "@/registry/remocn/icon-trash";import { UploadIconStatic } from "@/registry/remocn/icon-upload";+import { Volume2IconStatic } from "@/registry/remocn/icon-volume-2";import { XIconStatic } from "@/registry/remocn/icon-x";export type IconCategory =@@ -179,6 +180,12 @@ export const ICONS: IconEntry[] = [category: "Media & playback",Static: SkipForwardIconStatic,},+ {+ name: "icon-volume-2",+ label: "Volume 2",+ category: "Media & playback",+ Static: Volume2IconStatic,+ },{name: "icon-heart",label: "Heart",diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 7d2d01f7..0ad3f4cf 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -53,6 +53,7 @@ import { iconStarConfig } from "@/registry/remocn/icon-star/config";import { iconThumbsUpConfig } from "@/registry/remocn/icon-thumbs-up/config";import { iconTrashConfig } from "@/registry/remocn/icon-trash/config";import { iconUploadConfig } from "@/registry/remocn/icon-upload/config";+import { iconVolume2Config } from "@/registry/remocn/icon-volume-2/config";import { iconXConfig } from "@/registry/remocn/icon-x/config";import { iconZapConfig } from "@/registry/remocn/icon-zap/config";import { infiniteBentoPanConfig } from "@/registry/remocn/infinite-bento-pan/config";@@ -784,6 +785,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconUploadConfig,},+ "icon-volume-2": {+ load: () =>+ import("@/registry/remocn/icon-volume-2").then((m) => ({+ default: m.Volume2Icon,+ })),+ config: iconVolume2Config,+ },"icon-check-circle": {load: () =>import("@/registry/remocn/icon-check-circle").then((m) => ({diff --git a/registry/remocn/icon-volume-2/config.ts b/registry/remocn/icon-volume-2/config.tsnew file mode 100644index 00000000..b6c6cb5d--- /dev/null+++ b/registry/remocn/icon-volume-2/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconVolume2Config: ComponentConfig = {+ componentName: "Volume2Icon",+ importPath: "@/components/remocn/icon-volume-2",+ 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-volume-2/index.tsx b/registry/remocn/icon-volume-2/index.tsxnew file mode 100644index 00000000..75a193a6--- /dev/null+++ b/registry/remocn/icon-volume-2/index.tsx@@ -0,0 +1,159 @@+"use client";++import { Easing, interpolate } from "remotion";+import {+ drawnPathProps,+ type IconAnimationProps,+ useIconAnimation,+} from "@/lib/remocn-icons";++const SPEAKER_PATH =+ "M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z";+const INNER_PATH = "M16 9a5 5 0 0 1 0 6";+const OUTER_PATH = "M19.364 18.364a9 9 0 0 0 0-12.728";++const TIMINGS = {+ drawDurationInFrames: 20,+ actionDelayInFrames: 2,+ actionDurationInFrames: 18,+ loop: false,+} as const;++export function Volume2Icon({+ 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 bodyDraw = interpolate(linearDraw, [0, 0.6], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });+ const innerDraw = interpolate(linearDraw, [0.4, 0.8], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });+ const outerDraw = interpolate(linearDraw, [0.6, 1], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });++ const acting = animation !== "draw" && actionFrame >= 0;++ const innerProgress = acting ? 1 : innerDraw;+ const outerProgress = acting ? 1 : outerDraw;++ const innerShift = acting+ ? interpolate(actionProgress, [0, 0.35, 0.7], [0, 2, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ })+ : 0;+ const innerGrow = acting+ ? interpolate(actionProgress, [0, 0.35, 0.7], [1, 1.08, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ })+ : 1;+ const outerShift = acting+ ? interpolate(actionProgress, [0.12, 0.47, 0.82], [0, 2, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ })+ : 0;+ const outerGrow = acting+ ? interpolate(actionProgress, [0.12, 0.47, 0.82], [1, 1.08, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ })+ : 1;++ const body = drawnPathProps(SPEAKER_PATH, bodyDraw);+ const inner = drawnPathProps(INNER_PATH, innerProgress);+ const outer = drawnPathProps(OUTER_PATH, outerProgress);++ const innerTransform = `translate(${11 * (1 - innerGrow) + innerShift} ${12 * (1 - innerGrow)}) scale(${innerGrow})`;+ const outerTransform = `translate(${11 * (1 - outerGrow) + outerShift} ${12 * (1 - outerGrow)}) scale(${outerGrow})`;++ 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})`,+ }}+ >+ <path+ d={SPEAKER_PATH}+ strokeDasharray={body.strokeDasharray}+ strokeDashoffset={body.strokeDashoffset}+ />+ <g transform={innerTransform}>+ <path+ d={INNER_PATH}+ strokeDasharray={inner.strokeDasharray}+ strokeDashoffset={inner.strokeDashoffset}+ />+ </g>+ <g transform={outerTransform}>+ <path+ d={OUTER_PATH}+ strokeDasharray={outer.strokeDasharray}+ strokeDashoffset={outer.strokeDashoffset}+ />+ </g>+ </svg>+ );+}++export function Volume2IconStatic({+ 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={SPEAKER_PATH} />+ <path d={INNER_PATH} />+ <path d={OUTER_PATH} />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex 5f0da7ae..8ae5c144 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -1759,6 +1759,21 @@}]},+ {+ "name": "icon-volume-2",+ "type": "registry:component",+ "title": "Volume 2",+ "description": "Animated Lucide volume-2 icon — the speaker draws on, then the two sound waves ripple outward one after the other.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-volume-2/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-volume-2.tsx"+ }+ ]+ },{"name": "icon-sparkles","type": "registry:component",