Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icon users
dev_wandry29ac0506a85d
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex d554be34..de7422d4 100644--- a/components/docs/icons-gallery.tsx+++ b/components/docs/icons-gallery.tsx@@ -61,6 +61,7 @@ import { ZapIconStatic } from "@/registry/remocn/icon-zap";import { TrashIconStatic } from "@/registry/remocn/icon-trash";import { UploadIconStatic } from "@/registry/remocn/icon-upload";import { UserIconStatic } from "@/registry/remocn/icon-user";+import { UsersIconStatic } from "@/registry/remocn/icon-users";import { VideoIconStatic } from "@/registry/remocn/icon-video";import { Volume2IconStatic } from "@/registry/remocn/icon-volume-2";import { VolumeXIconStatic } from "@/registry/remocn/icon-volume-x";@@ -337,6 +338,12 @@ export const ICONS: IconEntry[] = [category: "People & communication",Static: UserIconStatic,},+ {+ name: "icon-users",+ label: "Users",+ category: "People & communication",+ Static: UsersIconStatic,+ },{name: "icon-heart",label: "Heart",diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex cd193224..1a0b4917 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -76,6 +76,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 { iconUserConfig } from "@/registry/remocn/icon-user/config";+import { iconUsersConfig } from "@/registry/remocn/icon-users/config";import { iconVideoConfig } from "@/registry/remocn/icon-video/config";import { iconVolume2Config } from "@/registry/remocn/icon-volume-2/config";import { iconVolumeXConfig } from "@/registry/remocn/icon-volume-x/config";@@ -971,6 +972,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconUserConfig,},+ "icon-users": {+ load: () =>+ import("@/registry/remocn/icon-users").then((m) => ({+ default: m.UsersIcon,+ })),+ config: iconUsersConfig,+ },"icon-video": {load: () =>import("@/registry/remocn/icon-video").then((m) => ({diff --git a/registry/remocn/icon-users/config.ts b/registry/remocn/icon-users/config.tsnew file mode 100644index 00000000..69babff3--- /dev/null+++ b/registry/remocn/icon-users/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconUsersConfig: ComponentConfig = {+ componentName: "UsersIcon",+ importPath: "@/components/remocn/icon-users",+ 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: 80,+ fps: FPS,+ compositionWidth: 48,+ compositionHeight: 48,+};diff --git a/registry/remocn/icon-users/index.tsx b/registry/remocn/icon-users/index.tsxnew file mode 100644index 00000000..fc4705f0--- /dev/null+++ b/registry/remocn/icon-users/index.tsx@@ -0,0 +1,142 @@+"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 BACK_HEAD_PATH = "M16 3.128a4 4 0 0 1 0 7.744";+const BACK_SHOULDERS_PATH = "M22 21v-2a4 4 0 0 0-3-3.87";++const TIMINGS = {+ drawDurationInFrames: 14,+ actionDelayInFrames: 2,+ actionDurationInFrames: 24,+ loop: false,+} as const;++export function UsersIcon({+ 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 pop = acting+ ? interpolate(actionProgress, [0, 0.25, 0.42], [1, 1.08, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ })+ : 1;+ const backOpacity = acting+ ? interpolate(actionProgress, [0.33, 0.9], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ })+ : 0;+ const backSlide = acting+ ? interpolate(actionProgress, [0.33, 1], [-2, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ })+ : -2;++ const head = drawnPathProps(HEAD_PATH, headDraw);+ const shoulders = drawnPathProps(SHOULDERS_PATH, shouldersDraw);++ const scale = 0.85 + 0.15 * scaleIn;+ const frontTransform = `translate(${9 * (1 - pop)} ${12 * (1 - pop)}) scale(${pop})`;++ 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={`translate(${backSlide} 0)`} opacity={backOpacity}>+ <path d={BACK_HEAD_PATH} />+ <path d={BACK_SHOULDERS_PATH} />+ </g>+ <g transform={frontTransform}>+ <path+ d={HEAD_PATH}+ strokeDasharray={head.strokeDasharray}+ strokeDashoffset={head.strokeDashoffset}+ />+ <path+ d={SHOULDERS_PATH}+ strokeDasharray={shoulders.strokeDasharray}+ strokeDashoffset={shoulders.strokeDashoffset}+ />+ </g>+ </svg>+ );+}++export function UsersIconStatic({+ 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} />+ <path d={BACK_HEAD_PATH} />+ <path d={BACK_SHOULDERS_PATH} />+ <circle cx="9" cy="7" r="4" />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex 6a30eac4..bd678ee2 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -2149,6 +2149,21 @@}]},+ {+ "name": "icon-users",+ "type": "registry:component",+ "title": "Users",+ "description": "Animated Lucide users icon — the front figure draws on and pops, then the second figure slides in from behind: the team assembles.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-users/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-users.tsx"+ }+ ]+ },{"name": "icon-sparkles","type": "registry:component",