Skip to content

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

feat: icon micc

dev_wandry446ebc984ce2
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index 473b5a71..64f17a22 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -23,6 +23,7 @@ import { FlameIconStatic } from "@/registry/remocn/icon-flame";
import { HeartIconStatic } from "@/registry/remocn/icon-heart";
import { InfoIconStatic } from "@/registry/remocn/icon-info";
import { LoaderIconStatic } from "@/registry/remocn/icon-loader";
+import { MicIconStatic } from "@/registry/remocn/icon-mic";
import { PartyPopperIconStatic } from "@/registry/remocn/icon-party-popper";
import { PauseIconStatic } from "@/registry/remocn/icon-pause";
import { PlayIconStatic } from "@/registry/remocn/icon-play";
@@ -193,6 +194,12 @@ export const ICONS: IconEntry[] = [
category: "Media & playback",
Static: VolumeXIconStatic,
},
+ {
+ name: "icon-mic",
+ label: "Mic",
+ category: "Media & playback",
+ Static: MicIconStatic,
+ },
{
name: "icon-heart",
label: "Heart",
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index 760ecf7b..25af36e0 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -39,6 +39,7 @@ import { iconFlameConfig } from "@/registry/remocn/icon-flame/config";
import { iconHeartConfig } from "@/registry/remocn/icon-heart/config";
import { iconInfoConfig } from "@/registry/remocn/icon-info/config";
import { iconLoaderConfig } from "@/registry/remocn/icon-loader/config";
+import { iconMicConfig } from "@/registry/remocn/icon-mic/config";
import { iconPartyPopperConfig } from "@/registry/remocn/icon-party-popper/config";
import { iconPauseConfig } from "@/registry/remocn/icon-pause/config";
import { iconPlayConfig } from "@/registry/remocn/icon-play/config";
@@ -688,6 +689,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconLoaderConfig,
},
+ "icon-mic": {
+ load: () =>
+ import("@/registry/remocn/icon-mic").then((m) => ({
+ default: m.MicIcon,
+ })),
+ config: iconMicConfig,
+ },
"icon-party-popper": {
load: () =>
import("@/registry/remocn/icon-party-popper").then((m) => ({
diff --git a/registry/remocn/icon-mic/config.ts b/registry/remocn/icon-mic/config.ts
new file mode 100644
index 00000000..591bf01e
--- /dev/null
+++ b/registry/remocn/icon-mic/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconMicConfig: ComponentConfig = {
+ componentName: "MicIcon",
+ importPath: "@/components/remocn/icon-mic",
+ 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-mic/index.tsx b/registry/remocn/icon-mic/index.tsx
new file mode 100644
index 00000000..0c61aea3
--- /dev/null
+++ b/registry/remocn/icon-mic/index.tsx
@@ -0,0 +1,140 @@
+"use client";
+
+import { Easing, interpolate } from "remotion";
+import {
+ drawnPathProps,
+ type IconAnimationProps,
+ useIconAnimation,
+} from "@/lib/remocn-icons";
+
+const CAPSULE_PATH =
+ "M12 2A3 3 0 0 1 15 5V12A3 3 0 0 1 12 15A3 3 0 0 1 9 12V5A3 3 0 0 1 12 2Z";
+const ARC_PATH = "M19 10v2a7 7 0 0 1-14 0v-2";
+const STAND_PATH = "M12 19v3";
+
+const TIMINGS = {
+ drawDurationInFrames: 16,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 24,
+ loop: false,
+} as const;
+
+export function MicIcon({
+ 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 capsuleDraw = interpolate(linearDraw, [0, 0.625], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+ const arcDraw = interpolate(linearDraw, [0.375, 0.875], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+ const standDraw = interpolate(linearDraw, [0.625, 1], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+
+ const acting = animation !== "draw" && actionFrame >= 0;
+
+ const capsuleScaleY = acting
+ ? interpolate(
+ actionProgress,
+ [0, 0.15, 0.3, 0.5, 0.65, 0.8, 1],
+ [1, 0.94, 1.04, 1, 0.97, 1.02, 1],
+ {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ },
+ )
+ : 1;
+
+ const capsule = drawnPathProps(CAPSULE_PATH, capsuleDraw);
+ const arc = drawnPathProps(ARC_PATH, arcDraw);
+ const stand = drawnPathProps(STAND_PATH, standDraw);
+
+ const scale = 0.85 + 0.15 * scaleIn;
+ const capsuleTransform = `translate(0 ${8.5 * (1 - capsuleScaleY)}) scale(1 ${capsuleScaleY})`;
+
+ 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={capsuleTransform}>
+ <path
+ d={CAPSULE_PATH}
+ strokeDasharray={capsule.strokeDasharray}
+ strokeDashoffset={capsule.strokeDashoffset}
+ />
+ </g>
+ <path
+ d={ARC_PATH}
+ strokeDasharray={arc.strokeDasharray}
+ strokeDashoffset={arc.strokeDashoffset}
+ />
+ <path
+ d={STAND_PATH}
+ strokeDasharray={stand.strokeDasharray}
+ strokeDashoffset={stand.strokeDashoffset}
+ />
+ </svg>
+ );
+}
+
+export function MicIconStatic({
+ 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={STAND_PATH} />
+ <path d={ARC_PATH} />
+ <rect x="9" y="2" width="6" height="13" rx="3" />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index 3b9d8463..9ef625a7 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -1789,6 +1789,21 @@
}
]
},
+ {
+ "name": "icon-mic",
+ "type": "registry:component",
+ "title": "Mic",
+ "description": "Animated Lucide mic icon — draws on, then the capsule bounces twice like a level meter picking up voice.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-mic/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-mic.tsx"
+ }
+ ]
+ },
{
"name": "icon-sparkles",
"type": "registry:component",