Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icon eye close
dev_wandry2734ba5b2ecf
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex c7afc1e2..b7efd4b4 100644--- a/components/docs/icons-gallery.tsx+++ b/components/docs/icons-gallery.tsx@@ -24,6 +24,7 @@ import { ChevronUpIconStatic } from "@/registry/remocn/icon-chevron-up";import { CopyIconStatic } from "@/registry/remocn/icon-copy";import { DownloadIconStatic } from "@/registry/remocn/icon-download";import { ExternalLinkIconStatic } from "@/registry/remocn/icon-external-link";+import { EyeOffIconStatic } from "@/registry/remocn/icon-eye-off";import { EyeIconStatic } from "@/registry/remocn/icon-eye";import { FilterIconStatic } from "@/registry/remocn/icon-filter";import { FlameIconStatic } from "@/registry/remocn/icon-flame";@@ -227,6 +228,12 @@ export const ICONS: IconEntry[] = [category: "Actions & UI",Static: EyeIconStatic,},+ {+ name: "icon-eye-off",+ label: "Eye Off",+ category: "Actions & UI",+ Static: EyeOffIconStatic,+ },{name: "icon-play",label: "Play",diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 5d5c2371..15603ca3 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -40,6 +40,7 @@ import { iconChevronUpConfig } from "@/registry/remocn/icon-chevron-up/config";import { iconCopyConfig } from "@/registry/remocn/icon-copy/config";import { iconDownloadConfig } from "@/registry/remocn/icon-download/config";import { iconExternalLinkConfig } from "@/registry/remocn/icon-external-link/config";+import { iconEyeOffConfig } from "@/registry/remocn/icon-eye-off/config";import { iconEyeConfig } from "@/registry/remocn/icon-eye/config";import { iconFilterConfig } from "@/registry/remocn/icon-filter/config";import { iconFlameConfig } from "@/registry/remocn/icon-flame/config";@@ -711,6 +712,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconExternalLinkConfig,},+ "icon-eye-off": {+ load: () =>+ import("@/registry/remocn/icon-eye-off").then((m) => ({+ default: m.EyeOffIcon,+ })),+ config: iconEyeOffConfig,+ },"icon-eye": {load: () =>import("@/registry/remocn/icon-eye").then((m) => ({diff --git a/registry/remocn/icon-eye-off/config.ts b/registry/remocn/icon-eye-off/config.tsnew file mode 100644index 00000000..f41a04b7--- /dev/null+++ b/registry/remocn/icon-eye-off/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconEyeOffConfig: ComponentConfig = {+ componentName: "EyeOffIcon",+ importPath: "@/components/remocn/icon-eye-off",+ 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-eye-off/index.tsx b/registry/remocn/icon-eye-off/index.tsxnew file mode 100644index 00000000..95b99ead--- /dev/null+++ b/registry/remocn/icon-eye-off/index.tsx@@ -0,0 +1,137 @@+"use client";++import { Easing, interpolate } from "remotion";+import {+ drawnPathProps,+ type IconAnimationProps,+ useIconAnimation,+} from "@/lib/remocn-icons";++const FRAG1_PATH =+ "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49";+const FRAG2_PATH = "M14.084 14.158a3 3 0 0 1-4.242-4.242";+const FRAG3_PATH =+ "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143";+const SLASH_PATH = "M2 2 22 22";++const TIMINGS = {+ drawDurationInFrames: 16,+ actionDelayInFrames: 2,+ actionDurationInFrames: 22,+ loop: false,+} as const;++const FRAGMENTS = [+ { path: FRAG1_PATH, drawWindow: [0, 0.69] },+ { path: FRAG2_PATH, drawWindow: [0.19, 0.88] },+ { path: FRAG3_PATH, drawWindow: [0.375, 1] },+] as const;++export function EyeOffIcon({+ 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 slashProgress = acting+ ? interpolate(actionProgress, [0, 0.45], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ })+ : 0;+ const fragOpacity = acting+ ? interpolate(actionProgress, [0.09, 0.5, 1], [1, 0.35, 0.6], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ })+ : 1;++ const slash = drawnPathProps(SLASH_PATH, slashProgress);+ 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 opacity={fragOpacity}>+ {FRAGMENTS.map((frag) => {+ const drawn = acting+ ? 1+ : interpolate(linearDraw, [...frag.drawWindow], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });+ const dash = drawnPathProps(frag.path, drawn);+ return (+ <path+ key={frag.path}+ d={frag.path}+ strokeDasharray={dash.strokeDasharray}+ strokeDashoffset={dash.strokeDashoffset}+ />+ );+ })}+ </g>+ <path+ d={SLASH_PATH}+ strokeDasharray={slash.strokeDasharray}+ strokeDashoffset={slash.strokeDashoffset}+ />+ </svg>+ );+}++export function EyeOffIconStatic({+ 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={FRAG1_PATH} />+ <path d={FRAG2_PATH} />+ <path d={FRAG3_PATH} />+ <path d={SLASH_PATH} />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex 792822f9..8d0d437d 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -2029,6 +2029,21 @@}]},+ {+ "name": "icon-eye-off",+ "type": "registry:component",+ "title": "Eye Off",+ "description": "Animated Lucide eye-off icon — the eye fragments draw on, then the slash cuts through and visibility dims.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-eye-off/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-eye-off.tsx"+ }+ ]+ },{"name": "icon-sparkles","type": "registry:component",