Skip to content

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

feat: icon volume x

dev_wandryef179be622d1
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index 0b98c41b..473b5a71 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -39,6 +39,7 @@ 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 { VolumeXIconStatic } from "@/registry/remocn/icon-volume-x";
import { XIconStatic } from "@/registry/remocn/icon-x";
export type IconCategory =
@@ -186,6 +187,12 @@ export const ICONS: IconEntry[] = [
category: "Media & playback",
Static: Volume2IconStatic,
},
+ {
+ name: "icon-volume-x",
+ label: "Volume X",
+ category: "Media & playback",
+ Static: VolumeXIconStatic,
+ },
{
name: "icon-heart",
label: "Heart",
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index 0ad3f4cf..760ecf7b 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -54,6 +54,7 @@ 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 { iconVolumeXConfig } from "@/registry/remocn/icon-volume-x/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";
@@ -792,6 +793,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconVolume2Config,
},
+ "icon-volume-x": {
+ load: () =>
+ import("@/registry/remocn/icon-volume-x").then((m) => ({
+ default: m.VolumeXIcon,
+ })),
+ config: iconVolumeXConfig,
+ },
"icon-check-circle": {
load: () =>
import("@/registry/remocn/icon-check-circle").then((m) => ({
diff --git a/registry/remocn/icon-volume-x/config.ts b/registry/remocn/icon-volume-x/config.ts
new file mode 100644
index 00000000..6d19e269
--- /dev/null
+++ b/registry/remocn/icon-volume-x/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconVolumeXConfig: ComponentConfig = {
+ componentName: "VolumeXIcon",
+ importPath: "@/components/remocn/icon-volume-x",
+ 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-x/index.tsx b/registry/remocn/icon-volume-x/index.tsx
new file mode 100644
index 00000000..06cc063e
--- /dev/null
+++ b/registry/remocn/icon-volume-x/index.tsx
@@ -0,0 +1,133 @@
+"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 X1_PATH = "M22 9 16 15";
+const X2_PATH = "M16 9 22 15";
+
+const TIMINGS = {
+ drawDurationInFrames: 14,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 22,
+ loop: false,
+} as const;
+
+export function VolumeXIcon({
+ animation = "both",
+ loop,
+ speed,
+ size = 48,
+ color = "currentColor",
+ strokeWidth = 2,
+ className,
+}: IconAnimationProps) {
+ const { drawProgress, scaleIn, actionProgress, actionFrame } =
+ useIconAnimation({ animation, loop, speed }, TIMINGS);
+
+ const acting = animation !== "draw" && actionFrame >= 0;
+
+ const x1Progress = acting
+ ? interpolate(actionProgress, [0.09, 0.32], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ })
+ : 0;
+ const x2Progress = acting
+ ? interpolate(actionProgress, [0.23, 0.45], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ })
+ : 0;
+
+ const shake = acting
+ ? interpolate(
+ actionProgress,
+ [0.45, 0.55, 0.65, 0.75, 0.85, 1],
+ [0, 2, -1.5, 1, -0.5, 0],
+ {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ },
+ )
+ : 0;
+
+ const body = drawnPathProps(SPEAKER_PATH, drawProgress);
+ const x1 = drawnPathProps(X1_PATH, x1Progress);
+ const x2 = drawnPathProps(X2_PATH, x2Progress);
+
+ 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(${shake}px) scale(${scale})`,
+ }}
+ >
+ <path
+ d={SPEAKER_PATH}
+ strokeDasharray={body.strokeDasharray}
+ strokeDashoffset={body.strokeDashoffset}
+ />
+ <path
+ d={X1_PATH}
+ strokeDasharray={x1.strokeDasharray}
+ strokeDashoffset={x1.strokeDashoffset}
+ />
+ <path
+ d={X2_PATH}
+ strokeDasharray={x2.strokeDasharray}
+ strokeDashoffset={x2.strokeDashoffset}
+ />
+ </svg>
+ );
+}
+
+export function VolumeXIconStatic({
+ 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} />
+ <line x1="22" x2="16" y1="9" y2="15" />
+ <line x1="16" x2="22" y1="9" y2="15" />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index 8ae5c144..3b9d8463 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -1774,6 +1774,21 @@
}
]
},
+ {
+ "name": "icon-volume-x",
+ "type": "registry:component",
+ "title": "Volume X",
+ "description": "Animated Lucide volume-x icon — the speaker draws on, then the X slashes in and the glyph shakes off the sound.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-volume-x/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-volume-x.tsx"
+ }
+ ]
+ },
{
"name": "icon-sparkles",
"type": "registry:component",