Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icon help
dev_wandry192ea61b7486
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex 3d5d48a5..5031fb05 100644--- a/components/docs/icons-gallery.tsx+++ b/components/docs/icons-gallery.tsx@@ -31,6 +31,7 @@ import { EyeIconStatic } from "@/registry/remocn/icon-eye";import { FilterIconStatic } from "@/registry/remocn/icon-filter";import { FlameIconStatic } from "@/registry/remocn/icon-flame";import { HeartIconStatic } from "@/registry/remocn/icon-heart";+import { HelpCircleIconStatic } from "@/registry/remocn/icon-help-circle";import { ImageIconStatic } from "@/registry/remocn/icon-image";import { InboxIconStatic } from "@/registry/remocn/icon-inbox";import { InfoIconStatic } from "@/registry/remocn/icon-info";@@ -147,6 +148,12 @@ export const ICONS: IconEntry[] = [category: "Status & feedback",Static: ShieldIconStatic,},+ {+ name: "icon-help-circle",+ label: "Help Circle",+ category: "Status & feedback",+ Static: HelpCircleIconStatic,+ },{name: "icon-search",label: "Search",diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 0e2a0b21..646468e7 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -47,6 +47,7 @@ import { iconEyeConfig } from "@/registry/remocn/icon-eye/config";import { iconFilterConfig } from "@/registry/remocn/icon-filter/config";import { iconFlameConfig } from "@/registry/remocn/icon-flame/config";import { iconHeartConfig } from "@/registry/remocn/icon-heart/config";+import { iconHelpCircleConfig } from "@/registry/remocn/icon-help-circle/config";import { iconImageConfig } from "@/registry/remocn/icon-image/config";import { iconInboxConfig } from "@/registry/remocn/icon-inbox/config";import { iconInfoConfig } from "@/registry/remocn/icon-info/config";@@ -776,6 +777,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconHeartConfig,},+ "icon-help-circle": {+ load: () =>+ import("@/registry/remocn/icon-help-circle").then((m) => ({+ default: m.HelpCircleIcon,+ })),+ config: iconHelpCircleConfig,+ },"icon-image": {load: () =>import("@/registry/remocn/icon-image").then((m) => ({diff --git a/registry/remocn/icon-help-circle/config.ts b/registry/remocn/icon-help-circle/config.tsnew file mode 100644index 00000000..c07002cc--- /dev/null+++ b/registry/remocn/icon-help-circle/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconHelpCircleConfig: ComponentConfig = {+ componentName: "HelpCircleIcon",+ importPath: "@/components/remocn/icon-help-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-help-circle/index.tsx b/registry/remocn/icon-help-circle/index.tsxnew file mode 100644index 00000000..8a354eac--- /dev/null+++ b/registry/remocn/icon-help-circle/index.tsx@@ -0,0 +1,135 @@+"use client";++import { Easing, interpolate } from "remotion";+import {+ drawnPathProps,+ type IconAnimationProps,+ useIconAnimation,+} from "@/lib/remocn-icons";++const RING_PATH = "M12 2a10 10 0 1 0 0 20 10 10 0 1 0 0-20Z";+const CURVE_PATH = "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3";+const DOT_PATH = "M12 17h.01";++const PIVOT_X = 12;+const PIVOT_Y = 8;++const TIMINGS = {+ drawDurationInFrames: 18,+ actionDelayInFrames: 2,+ actionDurationInFrames: 20,+ loop: false,+} as const;++export function HelpCircleIcon({+ 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 ringDraw = interpolate(linearDraw, [0, 0.6], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });+ const curveDraw = interpolate(linearDraw, [0.4, 0.85], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });+ const dotDraw = interpolate(linearDraw, [0.75, 1], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });++ const tilt = acting+ ? interpolate(actionProgress, [0, 0.4, 0.7, 1], [0, 6, -4, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ })+ : 0;++ const ring = drawnPathProps(RING_PATH, acting ? 1 : ringDraw);+ const curve = drawnPathProps(CURVE_PATH, acting ? 1 : curveDraw);+ const dot = drawnPathProps(DOT_PATH, acting ? 1 : dotDraw);++ 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})`,+ }}+ >+ <path+ d={RING_PATH}+ strokeDasharray={ring.strokeDasharray}+ strokeDashoffset={ring.strokeDashoffset}+ />+ <g transform={`rotate(${tilt} ${PIVOT_X} ${PIVOT_Y})`}>+ <path+ d={CURVE_PATH}+ strokeDasharray={curve.strokeDasharray}+ strokeDashoffset={curve.strokeDashoffset}+ />+ <path+ d={DOT_PATH}+ strokeDasharray={dot.strokeDasharray}+ strokeDashoffset={dot.strokeDashoffset}+ />+ </g>+ </svg>+ );+}++export function HelpCircleIconStatic({+ 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"+ >+ <circle cx="12" cy="12" r="10" />+ <path d={CURVE_PATH} />+ <path d={DOT_PATH} />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex cbaa06d1..95619baa 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -2224,6 +2224,21 @@}]},+ {+ "name": "icon-help-circle",+ "type": "registry:component",+ "title": "Help Circle",+ "description": "Animated Lucide help-circle icon — the ring draws on, then the question mark re-draws and tilts like a curious head.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-help-circle/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-help-circle.tsx"+ }+ ]+ },{"name": "icon-user","type": "registry:component",