Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icon camera
dev_wandryd11843088a09
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex 64f17a22..7b38bd5f 100644--- a/components/docs/icons-gallery.tsx+++ b/components/docs/icons-gallery.tsx@@ -39,6 +39,7 @@ import { ThumbsUpIconStatic } from "@/registry/remocn/icon-thumbs-up";import { ZapIconStatic } from "@/registry/remocn/icon-zap";import { TrashIconStatic } from "@/registry/remocn/icon-trash";import { UploadIconStatic } from "@/registry/remocn/icon-upload";+import { VideoIconStatic } from "@/registry/remocn/icon-video";import { Volume2IconStatic } from "@/registry/remocn/icon-volume-2";import { VolumeXIconStatic } from "@/registry/remocn/icon-volume-x";import { XIconStatic } from "@/registry/remocn/icon-x";@@ -200,6 +201,12 @@ export const ICONS: IconEntry[] = [category: "Media & playback",Static: MicIconStatic,},+ {+ name: "icon-video",+ label: "Video",+ category: "Media & playback",+ Static: VideoIconStatic,+ },{name: "icon-heart",label: "Heart",diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 25af36e0..1784025a 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -54,6 +54,7 @@ import { iconStarConfig } from "@/registry/remocn/icon-star/config";import { iconThumbsUpConfig } from "@/registry/remocn/icon-thumbs-up/config";import { iconTrashConfig } from "@/registry/remocn/icon-trash/config";import { iconUploadConfig } from "@/registry/remocn/icon-upload/config";+import { iconVideoConfig } from "@/registry/remocn/icon-video/config";import { iconVolume2Config } from "@/registry/remocn/icon-volume-2/config";import { iconVolumeXConfig } from "@/registry/remocn/icon-volume-x/config";import { iconXConfig } from "@/registry/remocn/icon-x/config";@@ -794,6 +795,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconUploadConfig,},+ "icon-video": {+ load: () =>+ import("@/registry/remocn/icon-video").then((m) => ({+ default: m.VideoIcon,+ })),+ config: iconVideoConfig,+ },"icon-volume-2": {load: () =>import("@/registry/remocn/icon-volume-2").then((m) => ({diff --git a/registry/remocn/icon-video/config.ts b/registry/remocn/icon-video/config.tsnew file mode 100644index 00000000..d813cb97--- /dev/null+++ b/registry/remocn/icon-video/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconVideoConfig: ComponentConfig = {+ componentName: "VideoIcon",+ importPath: "@/components/remocn/icon-video",+ 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-video/index.tsx b/registry/remocn/icon-video/index.tsxnew file mode 100644index 00000000..cc94f9f4--- /dev/null+++ b/registry/remocn/icon-video/index.tsx@@ -0,0 +1,122 @@+"use client";++import { Easing, interpolate } from "remotion";+import {+ drawnPathProps,+ type IconAnimationProps,+ useIconAnimation,+} from "@/lib/remocn-icons";++const BODY_PATH =+ "M4 6H14A2 2 0 0 1 16 8V16A2 2 0 0 1 14 18H4A2 2 0 0 1 2 16V8A2 2 0 0 1 4 6Z";+const LENS_PATH =+ "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5";++const TIMINGS = {+ drawDurationInFrames: 16,+ actionDelayInFrames: 2,+ actionDurationInFrames: 20,+ loop: false,+} as const;++export function VideoIcon({+ 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 bodyDraw = interpolate(linearDraw, [0, 0.75], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });+ const lensDraw = interpolate(linearDraw, [0.5, 1], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });++ const acting = animation !== "draw" && actionFrame >= 0;++ const pan = acting+ ? interpolate(actionProgress, [0, 0.5, 0.75, 1], [0, 8, -1, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ })+ : 0;++ const body = drawnPathProps(BODY_PATH, bodyDraw);+ const lens = drawnPathProps(LENS_PATH, lensDraw);++ 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={BODY_PATH}+ strokeDasharray={body.strokeDasharray}+ strokeDashoffset={body.strokeDashoffset}+ />+ <g transform={`rotate(${pan} 16 11.75)`}>+ <path+ d={LENS_PATH}+ strokeDasharray={lens.strokeDasharray}+ strokeDashoffset={lens.strokeDashoffset}+ />+ </g>+ </svg>+ );+}++export function VideoIconStatic({+ 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={LENS_PATH} />+ <rect x="2" y="6" width="14" height="12" rx="2" />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex 9ef625a7..10615141 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -1804,6 +1804,21 @@}]},+ {+ "name": "icon-video",+ "type": "registry:component",+ "title": "Video",+ "description": "Animated Lucide video icon — draws on, then the lens wedge pans out and snaps back to its shot.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-video/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-video.tsx"+ }+ ]+ },{"name": "icon-sparkles","type": "registry:component",