Skip to content

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

feat: icon user plus

dev_wandrydc08234c3246
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index de7422d4..15c640a4 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -60,6 +60,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 { UserPlusIconStatic } from "@/registry/remocn/icon-user-plus";
import { UserIconStatic } from "@/registry/remocn/icon-user";
import { UsersIconStatic } from "@/registry/remocn/icon-users";
import { VideoIconStatic } from "@/registry/remocn/icon-video";
@@ -344,6 +345,12 @@ export const ICONS: IconEntry[] = [
category: "People & communication",
Static: UsersIconStatic,
},
+ {
+ name: "icon-user-plus",
+ label: "User Plus",
+ category: "People & communication",
+ Static: UserPlusIconStatic,
+ },
{
name: "icon-heart",
label: "Heart",
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index 1a0b4917..1e127ba4 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -75,6 +75,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 { iconUserPlusConfig } from "@/registry/remocn/icon-user-plus/config";
import { iconUserConfig } from "@/registry/remocn/icon-user/config";
import { iconUsersConfig } from "@/registry/remocn/icon-users/config";
import { iconVideoConfig } from "@/registry/remocn/icon-video/config";
@@ -965,6 +966,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconUploadConfig,
},
+ "icon-user-plus": {
+ load: () =>
+ import("@/registry/remocn/icon-user-plus").then((m) => ({
+ default: m.UserPlusIcon,
+ })),
+ config: iconUserPlusConfig,
+ },
"icon-user": {
load: () =>
import("@/registry/remocn/icon-user").then((m) => ({
diff --git a/registry/remocn/icon-user-plus/config.ts b/registry/remocn/icon-user-plus/config.ts
new file mode 100644
index 00000000..1fec0386
--- /dev/null
+++ b/registry/remocn/icon-user-plus/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconUserPlusConfig: ComponentConfig = {
+ componentName: "UserPlusIcon",
+ importPath: "@/components/remocn/icon-user-plus",
+ 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-user-plus/index.tsx b/registry/remocn/icon-user-plus/index.tsx
new file mode 100644
index 00000000..2409948c
--- /dev/null
+++ b/registry/remocn/icon-user-plus/index.tsx
@@ -0,0 +1,151 @@
+"use client";
+
+import { Easing, interpolate } from "remotion";
+import {
+ drawnPathProps,
+ type IconAnimationProps,
+ useIconAnimation,
+} from "@/lib/remocn-icons";
+
+const HEAD_PATH =
+ "M9 3 A4 4 0 0 1 13 7 A4 4 0 0 1 9 11 A4 4 0 0 1 5 7 A4 4 0 0 1 9 3";
+const SHOULDERS_PATH = "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2";
+const PLUS_H_PATH = "M22 11 16 11";
+const PLUS_V_PATH = "M19 8 19 14";
+
+const TIMINGS = {
+ drawDurationInFrames: 14,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 26,
+ loop: false,
+} as const;
+
+export function UserPlusIcon({
+ 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 headDraw = interpolate(linearDraw, [0, 0.71], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+ const shouldersDraw = interpolate(linearDraw, [0.43, 1], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+
+ const hProgress = acting
+ ? interpolate(actionProgress, [0.08, 0.31], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ })
+ : 0;
+ const vProgress = acting
+ ? interpolate(actionProgress, [0.19, 0.42], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ })
+ : 0;
+ const plusPop = acting
+ ? interpolate(actionProgress, [0.42, 0.65, 1], [1, 1.3, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ })
+ : 1;
+
+ const head = drawnPathProps(HEAD_PATH, headDraw);
+ const shoulders = drawnPathProps(SHOULDERS_PATH, shouldersDraw);
+ const plusH = drawnPathProps(PLUS_H_PATH, hProgress);
+ const plusV = drawnPathProps(PLUS_V_PATH, vProgress);
+
+ const scale = 0.85 + 0.15 * scaleIn;
+ const plusTransform = `translate(${19 * (1 - plusPop)} ${11 * (1 - plusPop)}) scale(${plusPop})`;
+
+ 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={HEAD_PATH}
+ strokeDasharray={head.strokeDasharray}
+ strokeDashoffset={head.strokeDashoffset}
+ />
+ <path
+ d={SHOULDERS_PATH}
+ strokeDasharray={shoulders.strokeDasharray}
+ strokeDashoffset={shoulders.strokeDashoffset}
+ />
+ <g transform={plusTransform}>
+ <path
+ d={PLUS_H_PATH}
+ strokeDasharray={plusH.strokeDasharray}
+ strokeDashoffset={plusH.strokeDashoffset}
+ />
+ <path
+ d={PLUS_V_PATH}
+ strokeDasharray={plusV.strokeDasharray}
+ strokeDashoffset={plusV.strokeDashoffset}
+ />
+ </g>
+ </svg>
+ );
+}
+
+export function UserPlusIconStatic({
+ 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={SHOULDERS_PATH} />
+ <circle cx="9" cy="7" r="4" />
+ <line x1="19" x2="19" y1="8" y2="14" />
+ <line x1="22" x2="16" y1="11" y2="11" />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index bd678ee2..a47dd484 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -2164,6 +2164,21 @@
}
]
},
+ {
+ "name": "icon-user-plus",
+ "type": "registry:component",
+ "title": "User Plus",
+ "description": "Animated Lucide user-plus icon — the figure draws on, then the plus strokes draw in and pop: a new member added.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-user-plus/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-user-plus.tsx"
+ }
+ ]
+ },
{
"name": "icon-sparkles",
"type": "registry:component",