Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "icon-user-plus",
"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": "registry/remocn-icons/icon-user-plus/index.tsx",
"content": "\"use client\";\n\nimport { Easing, interpolate } from \"remotion\";\nimport {\n drawnPathProps,\n type IconAnimationProps,\n useIconAnimation,\n} from \"@/lib/remocn-icons\";\n\nconst HEAD_PATH =\n \"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\";\nconst SHOULDERS_PATH = \"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\";\nconst PLUS_H_PATH = \"M22 11 16 11\";\nconst PLUS_V_PATH = \"M19 8 19 14\";\n\nconst TIMINGS = {\n drawDurationInFrames: 14,\n actionDelayInFrames: 2,\n actionDurationInFrames: 26,\n loop: false,\n} as const;\n\nexport function UserPlusIcon({\n animation = \"both\",\n loop,\n speed,\n size = 48,\n color = \"currentColor\",\n strokeWidth = 2,\n className,\n}: IconAnimationProps) {\n const { drawProgress, scaleIn, actionProgress, actionFrame } =\n useIconAnimation({ animation, loop, speed }, TIMINGS);\n\n const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);\n const acting = animation !== \"draw\" && actionFrame >= 0;\n\n const headDraw = interpolate(linearDraw, [0, 0.71], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: Easing.out(Easing.quad),\n });\n const shouldersDraw = interpolate(linearDraw, [0.43, 1], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: Easing.out(Easing.quad),\n });\n\n const hProgress = acting\n ? interpolate(actionProgress, [0.08, 0.31], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: Easing.out(Easing.quad),\n })\n : 0;\n const vProgress = acting\n ? interpolate(actionProgress, [0.19, 0.42], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: Easing.out(Easing.quad),\n })\n : 0;\n const plusPop = acting\n ? interpolate(actionProgress, [0.42, 0.65, 1], [1, 1.3, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: Easing.inOut(Easing.quad),\n })\n : 1;\n\n const head = drawnPathProps(HEAD_PATH, headDraw);\n const shoulders = drawnPathProps(SHOULDERS_PATH, shouldersDraw);\n const plusH = drawnPathProps(PLUS_H_PATH, hProgress);\n const plusV = drawnPathProps(PLUS_V_PATH, vProgress);\n\n const scale = 0.85 + 0.15 * scaleIn;\n const plusTransform = `translate(${19 * (1 - plusPop)} ${11 * (1 - plusPop)}) scale(${plusPop})`;\n\n return (\n <svg\n className={className}\n width={size}\n height={size}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke={color}\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n style={{\n overflow: \"visible\",\n transformOrigin: \"center\",\n transform: `scale(${scale})`,\n }}\n >\n <path\n d={HEAD_PATH}\n strokeDasharray={head.strokeDasharray}\n strokeDashoffset={head.strokeDashoffset}\n />\n <path\n d={SHOULDERS_PATH}\n strokeDasharray={shoulders.strokeDasharray}\n strokeDashoffset={shoulders.strokeDashoffset}\n />\n <g transform={plusTransform}>\n <path\n d={PLUS_H_PATH}\n strokeDasharray={plusH.strokeDasharray}\n strokeDashoffset={plusH.strokeDashoffset}\n />\n <path\n d={PLUS_V_PATH}\n strokeDasharray={plusV.strokeDasharray}\n strokeDashoffset={plusV.strokeDashoffset}\n />\n </g>\n </svg>\n );\n}\n\nexport function UserPlusIconStatic({\n size = 48,\n color = \"currentColor\",\n strokeWidth = 2,\n className,\n}: {\n size?: number;\n color?: string;\n strokeWidth?: number;\n className?: string;\n}) {\n return (\n <svg\n className={className}\n width={size}\n height={size}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke={color}\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d={SHOULDERS_PATH} />\n <circle cx=\"9\" cy=\"7\" r=\"4\" />\n <line x1=\"19\" x2=\"19\" y1=\"8\" y2=\"14\" />\n <line x1=\"22\" x2=\"16\" y1=\"11\" y2=\"11\" />\n </svg>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/icon-user-plus.tsx"
}
],
"type": "registry:component"
}