Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icon link
dev_wandry11c508721489
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex 74a36807..de86b70d 100644--- a/components/docs/icons-gallery.tsx+++ b/components/docs/icons-gallery.tsx@@ -32,6 +32,7 @@ import { HeartIconStatic } from "@/registry/remocn/icon-heart";import { ImageIconStatic } from "@/registry/remocn/icon-image";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 { MaximizeIconStatic } from "@/registry/remocn/icon-maximize";import { MenuIconStatic } from "@/registry/remocn/icon-menu";@@ -241,6 +242,12 @@ export const ICONS: IconEntry[] = [category: "Actions & UI",Static: SaveIconStatic,},+ {+ name: "icon-link",+ label: "Link",+ category: "Actions & UI",+ Static: LinkIconStatic,+ },{name: "icon-play",label: "Play",diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 42ec0e57..da7eb7dc 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -48,6 +48,7 @@ import { iconHeartConfig } from "@/registry/remocn/icon-heart/config";import { iconImageConfig } from "@/registry/remocn/icon-image/config";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 { iconMaximizeConfig } from "@/registry/remocn/icon-maximize/config";import { iconMenuConfig } from "@/registry/remocn/icon-menu/config";@@ -769,6 +770,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconLayoutGridConfig,},+ "icon-link": {+ load: () =>+ import("@/registry/remocn/icon-link").then((m) => ({+ default: m.LinkIcon,+ })),+ config: iconLinkConfig,+ },"icon-loader": {load: () =>import("@/registry/remocn/icon-loader").then((m) => ({diff --git a/registry/remocn/icon-link/config.ts b/registry/remocn/icon-link/config.tsnew file mode 100644index 00000000..68cd3082--- /dev/null+++ b/registry/remocn/icon-link/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconLinkConfig: ComponentConfig = {+ componentName: "LinkIcon",+ importPath: "@/components/remocn/icon-link",+ 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-link/index.tsx b/registry/remocn/icon-link/index.tsxnew file mode 100644index 00000000..faafd7af--- /dev/null+++ b/registry/remocn/icon-link/index.tsx@@ -0,0 +1,118 @@+"use client";++import { Easing, interpolate } from "remotion";+import {+ drawnPathProps,+ type IconAnimationProps,+ useIconAnimation,+} from "@/lib/remocn-icons";++const TOP_PATH =+ "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71";+const BOTTOM_PATH =+ "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71";++const TIMINGS = {+ drawDurationInFrames: 14,+ actionDelayInFrames: 2,+ actionDurationInFrames: 20,+ loop: false,+} as const;++export function LinkIcon({+ animation = "both",+ loop,+ speed,+ size = 48,+ color = "currentColor",+ strokeWidth = 2,+ className,+}: IconAnimationProps) {+ const { drawProgress, scaleIn, actionProgress, actionFrame } =+ useIconAnimation({ animation, loop, speed }, TIMINGS);++ const acting = animation !== "draw" && actionFrame >= 0;++ const pull = acting+ ? interpolate(actionProgress, [0, 0.4, 0.75], [0, 1.06, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ })+ : 0;+ const pop = acting+ ? interpolate(actionProgress, [0.6, 0.78, 1], [1, 1.06, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ })+ : 1;++ const top = drawnPathProps(TOP_PATH, drawProgress);+ const bottom = drawnPathProps(BOTTOM_PATH, drawProgress);++ 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})`,+ }}+ >+ <g transform={`translate(${pull} ${-pull})`}>+ <path+ d={TOP_PATH}+ strokeDasharray={top.strokeDasharray}+ strokeDashoffset={top.strokeDashoffset}+ />+ </g>+ <g transform={`translate(${-pull} ${pull})`}>+ <path+ d={BOTTOM_PATH}+ strokeDasharray={bottom.strokeDasharray}+ strokeDashoffset={bottom.strokeDashoffset}+ />+ </g>+ </svg>+ );+}++export function LinkIconStatic({+ 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={TOP_PATH} />+ <path d={BOTTOM_PATH} />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex 3e0e0f8f..2cebe211 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -2059,6 +2059,21 @@}]},+ {+ "name": "icon-link",+ "type": "registry:component",+ "title": "Link",+ "description": "Animated Lucide link icon — two chain halves draw on, pull apart, and click together.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-link/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-link.tsx"+ }+ ]+ },{"name": "icon-sparkles","type": "registry:component",