Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icon user
dev_wandry6094243514c1
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex 56f89377..d554be34 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 { UserIconStatic } from "@/registry/remocn/icon-user";import { VideoIconStatic } from "@/registry/remocn/icon-video";import { Volume2IconStatic } from "@/registry/remocn/icon-volume-2";import { VolumeXIconStatic } from "@/registry/remocn/icon-volume-x";@@ -330,6 +331,12 @@ export const ICONS: IconEntry[] = [category: "Media & playback",Static: ImageIconStatic,},+ {+ name: "icon-user",+ label: "User",+ category: "People & communication",+ Static: UserIconStatic,+ },{name: "icon-heart",label: "Heart",diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 48c7a05d..cd193224 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 { iconUserConfig } from "@/registry/remocn/icon-user/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";@@ -963,6 +964,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconUploadConfig,},+ "icon-user": {+ load: () =>+ import("@/registry/remocn/icon-user").then((m) => ({+ default: m.UserIcon,+ })),+ config: iconUserConfig,+ },"icon-video": {load: () =>import("@/registry/remocn/icon-video").then((m) => ({diff --git a/registry/remocn/icon-user/config.ts b/registry/remocn/icon-user/config.tsnew file mode 100644index 00000000..d0310be0--- /dev/null+++ b/registry/remocn/icon-user/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconUserConfig: ComponentConfig = {+ componentName: "UserIcon",+ importPath: "@/components/remocn/icon-user",+ 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-user/index.tsx b/registry/remocn/icon-user/index.tsxnew file mode 100644index 00000000..9b817363--- /dev/null+++ b/registry/remocn/icon-user/index.tsx@@ -0,0 +1,129 @@+"use client";++import { Easing, interpolate } from "remotion";+import {+ drawnPathProps,+ type IconAnimationProps,+ useIconAnimation,+} from "@/lib/remocn-icons";++const HEAD_PATH =+ "M12 3 A4 4 0 0 1 16 7 A4 4 0 0 1 12 11 A4 4 0 0 1 8 7 A4 4 0 0 1 12 3";+const SHOULDERS_PATH = "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2";++const TIMINGS = {+ drawDurationInFrames: 14,+ actionDelayInFrames: 2,+ actionDurationInFrames: 22,+ loop: false,+} as const;++export function UserIcon({+ 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 headDip = acting+ ? interpolate(actionProgress, [0, 0.45, 1], [0, 1, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ })+ : 0;+ const shoulderRise = acting+ ? interpolate(actionProgress, [0, 0.45, 1], [0, -1, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ })+ : 0;++ const head = drawnPathProps(HEAD_PATH, headDraw);+ const shoulders = drawnPathProps(SHOULDERS_PATH, shouldersDraw);++ 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: `scale(${scale})`,+ }}+ >+ <g transform={`translate(0 ${headDip})`}>+ <path+ d={HEAD_PATH}+ strokeDasharray={head.strokeDasharray}+ strokeDashoffset={head.strokeDashoffset}+ />+ </g>+ <g transform={`translate(0 ${shoulderRise})`}>+ <path+ d={SHOULDERS_PATH}+ strokeDasharray={shoulders.strokeDasharray}+ strokeDashoffset={shoulders.strokeDashoffset}+ />+ </g>+ </svg>+ );+}++export function UserIconStatic({+ 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="12" cy="7" r="4" />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex 584b9627..6a30eac4 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -2134,6 +2134,21 @@}]},+ {+ "name": "icon-user",+ "type": "registry:component",+ "title": "User",+ "description": "Animated Lucide user icon — draws on, then gives a small presence nod: head dips as shoulders rise to meet it.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-user/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-user.tsx"+ }+ ]+ },{"name": "icon-sparkles","type": "registry:component",