Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icon lock
dev_wandrycd758e703136
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex 7efe0261..59fee403 100644--- a/components/docs/icons-gallery.tsx+++ b/components/docs/icons-gallery.tsx@@ -35,6 +35,7 @@ import { InfoIconStatic } from "@/registry/remocn/icon-info";import { LayoutGridIconStatic } from "@/registry/remocn/icon-layout-grid";import { LinkIconStatic } from "@/registry/remocn/icon-link";import { LoaderIconStatic } from "@/registry/remocn/icon-loader";+import { LockIconStatic } from "@/registry/remocn/icon-lock";import { MaximizeIconStatic } from "@/registry/remocn/icon-maximize";import { MenuIconStatic } from "@/registry/remocn/icon-menu";import { MicIconStatic } from "@/registry/remocn/icon-mic";@@ -255,6 +256,12 @@ export const ICONS: IconEntry[] = [category: "Actions & UI",Static: BookmarkIconStatic,},+ {+ name: "icon-lock",+ label: "Lock",+ category: "Actions & UI",+ Static: LockIconStatic,+ },{name: "icon-play",label: "Play",diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 7b23cf67..d43015bd 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -51,6 +51,7 @@ import { iconInfoConfig } from "@/registry/remocn/icon-info/config";import { iconLayoutGridConfig } from "@/registry/remocn/icon-layout-grid/config";import { iconLinkConfig } from "@/registry/remocn/icon-link/config";import { iconLoaderConfig } from "@/registry/remocn/icon-loader/config";+import { iconLockConfig } from "@/registry/remocn/icon-lock/config";import { iconMaximizeConfig } from "@/registry/remocn/icon-maximize/config";import { iconMenuConfig } from "@/registry/remocn/icon-menu/config";import { iconMicConfig } from "@/registry/remocn/icon-mic/config";@@ -792,6 +793,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconLoaderConfig,},+ "icon-lock": {+ load: () =>+ import("@/registry/remocn/icon-lock").then((m) => ({+ default: m.LockIcon,+ })),+ config: iconLockConfig,+ },"icon-maximize": {load: () =>import("@/registry/remocn/icon-maximize").then((m) => ({diff --git a/registry/remocn/icon-lock/config.ts b/registry/remocn/icon-lock/config.tsnew file mode 100644index 00000000..823ee449--- /dev/null+++ b/registry/remocn/icon-lock/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconLockConfig: ComponentConfig = {+ componentName: "LockIcon",+ importPath: "@/components/remocn/icon-lock",+ 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-lock/index.tsx b/registry/remocn/icon-lock/index.tsxnew file mode 100644index 00000000..27efaf3d--- /dev/null+++ b/registry/remocn/icon-lock/index.tsx@@ -0,0 +1,127 @@+"use client";++import { Easing, interpolate } from "remotion";+import {+ drawnPathProps,+ type IconAnimationProps,+ useIconAnimation,+} from "@/lib/remocn-icons";++const BODY_PATH =+ "M5 11H19A2 2 0 0 1 21 13V20A2 2 0 0 1 19 22H5A2 2 0 0 1 3 20V13A2 2 0 0 1 5 11Z";+const SHACKLE_PATH = "M7 11V7a5 5 0 0 1 10 0v4";++const TIMINGS = {+ drawDurationInFrames: 16,+ actionDelayInFrames: 2,+ actionDurationInFrames: 22,+ loop: false,+} as const;++export function LockIcon({+ 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 bodyDraw = interpolate(linearDraw, [0, 0.75], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });+ const shackleDraw = interpolate(linearDraw, [0.5, 1], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });++ const lift = acting+ ? interpolate(actionProgress, [0, 0.35, 0.7], [0, -2.5, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.in(Easing.quad),+ })+ : 0;+ const pop = acting+ ? interpolate(actionProgress, [0.7, 0.85, 1], [1, 1.05, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ })+ : 1;++ const body = drawnPathProps(BODY_PATH, bodyDraw);+ const shackle = drawnPathProps(SHACKLE_PATH, shackleDraw);++ const scale = (0.85 + 0.15 * scaleIn) * 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})`,+ }}+ >+ <path+ d={BODY_PATH}+ strokeDasharray={body.strokeDasharray}+ strokeDashoffset={body.strokeDashoffset}+ />+ <g transform={`translate(0 ${lift})`}>+ <path+ d={SHACKLE_PATH}+ strokeDasharray={shackle.strokeDasharray}+ strokeDashoffset={shackle.strokeDashoffset}+ />+ </g>+ </svg>+ );+}++export function LockIconStatic({+ 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"+ >+ <rect width="18" height="11" x="3" y="11" rx="2" ry="2" />+ <path d={SHACKLE_PATH} />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex da53ca99..5821f80f 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -2089,6 +2089,21 @@}]},+ {+ "name": "icon-lock",+ "type": "registry:component",+ "title": "Lock",+ "description": "Animated Lucide lock icon — the body draws on, then the shackle lifts and slams shut with a confirming pop.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-lock/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-lock.tsx"+ }+ ]+ },{"name": "icon-sparkles","type": "registry:component",