Skip to content

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

feat: icon user message buble

dev_wandry858098541f21
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index 98732089..22b360bd 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -41,6 +41,7 @@ import { LogOutIconStatic } from "@/registry/remocn/icon-log-out";
import { MailIconStatic } from "@/registry/remocn/icon-mail";
import { MaximizeIconStatic } from "@/registry/remocn/icon-maximize";
import { MenuIconStatic } from "@/registry/remocn/icon-menu";
+import { MessageCircleIconStatic } from "@/registry/remocn/icon-message-circle";
import { MicIconStatic } from "@/registry/remocn/icon-mic";
import { MoreHorizontalIconStatic } from "@/registry/remocn/icon-more-horizontal";
import { PartyPopperIconStatic } from "@/registry/remocn/icon-party-popper";
@@ -358,6 +359,12 @@ export const ICONS: IconEntry[] = [
category: "People & communication",
Static: MailIconStatic,
},
+ {
+ name: "icon-message-circle",
+ label: "Message Circle",
+ category: "People & communication",
+ Static: MessageCircleIconStatic,
+ },
{
name: "icon-heart",
label: "Heart",
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index bc59ce93..98efae44 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -57,6 +57,7 @@ import { iconLogOutConfig } from "@/registry/remocn/icon-log-out/config";
import { iconMailConfig } from "@/registry/remocn/icon-mail/config";
import { iconMaximizeConfig } from "@/registry/remocn/icon-maximize/config";
import { iconMenuConfig } from "@/registry/remocn/icon-menu/config";
+import { iconMessageCircleConfig } from "@/registry/remocn/icon-message-circle/config";
import { iconMicConfig } from "@/registry/remocn/icon-mic/config";
import { iconMoreHorizontalConfig } from "@/registry/remocn/icon-more-horizontal/config";
import { iconPartyPopperConfig } from "@/registry/remocn/icon-party-popper/config";
@@ -841,6 +842,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconMenuConfig,
},
+ "icon-message-circle": {
+ load: () =>
+ import("@/registry/remocn/icon-message-circle").then((m) => ({
+ default: m.MessageCircleIcon,
+ })),
+ config: iconMessageCircleConfig,
+ },
"icon-mic": {
load: () =>
import("@/registry/remocn/icon-mic").then((m) => ({
diff --git a/registry/remocn/icon-message-circle/config.ts b/registry/remocn/icon-message-circle/config.ts
new file mode 100644
index 00000000..d5fcf7e0
--- /dev/null
+++ b/registry/remocn/icon-message-circle/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconMessageCircleConfig: ComponentConfig = {
+ componentName: "MessageCircleIcon",
+ importPath: "@/components/remocn/icon-message-circle",
+ 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-message-circle/index.tsx b/registry/remocn/icon-message-circle/index.tsx
new file mode 100644
index 00000000..459e4f62
--- /dev/null
+++ b/registry/remocn/icon-message-circle/index.tsx
@@ -0,0 +1,104 @@
+"use client";
+
+import { Easing, interpolate } from "remotion";
+import {
+ drawnPathProps,
+ type IconAnimationProps,
+ useIconAnimation,
+} from "@/lib/remocn-icons";
+
+const BUBBLE_PATH =
+ "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719";
+
+const TAIL_X = 4;
+const TAIL_Y = 20;
+
+const TIMINGS = {
+ drawDurationInFrames: 14,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 20,
+ loop: false,
+} as const;
+
+export function MessageCircleIcon({
+ 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 inflate = acting
+ ? interpolate(actionProgress, [0, 0.45, 1], [0.9, 1.08, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ })
+ : 1;
+
+ const bubble = drawnPathProps(BUBBLE_PATH, drawProgress);
+
+ const scale = 0.85 + 0.15 * scaleIn;
+ const inflateTransform = `translate(${TAIL_X * (1 - inflate)} ${TAIL_Y * (1 - inflate)}) scale(${inflate})`;
+
+ 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={inflateTransform}>
+ <path
+ d={BUBBLE_PATH}
+ strokeDasharray={bubble.strokeDasharray}
+ strokeDashoffset={bubble.strokeDashoffset}
+ />
+ </g>
+ </svg>
+ );
+}
+
+export function MessageCircleIconStatic({
+ 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={BUBBLE_PATH} />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index e4af3f74..485e4810 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -2149,6 +2149,21 @@
}
]
},
+ {
+ "name": "icon-message-circle",
+ "type": "registry:component",
+ "title": "Message Circle",
+ "description": "Animated Lucide message-circle icon — the bubble draws on, then inflates from its tail like a message arriving.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-message-circle/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-message-circle.tsx"
+ }
+ ]
+ },
{
"name": "icon-user",
"type": "registry:component",