Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icon pause
dev_wandrybb3ba79ccb3c
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex f600f877..6b533a8c 100644--- a/components/docs/icons-gallery.tsx+++ b/components/docs/icons-gallery.tsx@@ -24,6 +24,7 @@ import { HeartIconStatic } from "@/registry/remocn/icon-heart";import { InfoIconStatic } from "@/registry/remocn/icon-info";import { LoaderIconStatic } from "@/registry/remocn/icon-loader";import { PartyPopperIconStatic } from "@/registry/remocn/icon-party-popper";+import { PauseIconStatic } from "@/registry/remocn/icon-pause";import { PlayIconStatic } from "@/registry/remocn/icon-play";import { PlusIconStatic } from "@/registry/remocn/icon-plus";import { RefreshCwIconStatic } from "@/registry/remocn/icon-refresh-cw";@@ -165,6 +166,12 @@ export const ICONS: IconEntry[] = [category: "Media & playback",Static: PlayIconStatic,},+ {+ name: "icon-pause",+ label: "Pause",+ category: "Media & playback",+ Static: PauseIconStatic,+ },{name: "icon-heart",label: "Heart",diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 1734e6a0..c5553a6e 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -40,6 +40,7 @@ import { iconHeartConfig } from "@/registry/remocn/icon-heart/config";import { iconInfoConfig } from "@/registry/remocn/icon-info/config";import { iconLoaderConfig } from "@/registry/remocn/icon-loader/config";import { iconPartyPopperConfig } from "@/registry/remocn/icon-party-popper/config";+import { iconPauseConfig } from "@/registry/remocn/icon-pause/config";import { iconPlayConfig } from "@/registry/remocn/icon-play/config";import { iconPlusConfig } from "@/registry/remocn/icon-plus/config";import { iconRefreshCwConfig } from "@/registry/remocn/icon-refresh-cw/config";@@ -691,6 +692,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconPartyPopperConfig,},+ "icon-pause": {+ load: () =>+ import("@/registry/remocn/icon-pause").then((m) => ({+ default: m.PauseIcon,+ })),+ config: iconPauseConfig,+ },"icon-play": {load: () =>import("@/registry/remocn/icon-play").then((m) => ({diff --git a/registry/remocn/icon-pause/config.ts b/registry/remocn/icon-pause/config.tsnew file mode 100644index 00000000..9b07983f--- /dev/null+++ b/registry/remocn/icon-pause/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconPauseConfig: ComponentConfig = {+ componentName: "PauseIcon",+ importPath: "@/components/remocn/icon-pause",+ 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: 60,+ fps: FPS,+ compositionWidth: 48,+ compositionHeight: 48,+};diff --git a/registry/remocn/icon-pause/index.tsx b/registry/remocn/icon-pause/index.tsxnew file mode 100644index 00000000..c464e72c--- /dev/null+++ b/registry/remocn/icon-pause/index.tsx@@ -0,0 +1,127 @@+"use client";++import { Easing, interpolate } from "remotion";+import {+ drawnPathProps,+ type IconAnimationProps,+ useIconAnimation,+} from "@/lib/remocn-icons";++const LEFT_PATH =+ "M6 21A1 1 0 0 1 5 20V4A1 1 0 0 1 6 3H9A1 1 0 0 1 10 4V20A1 1 0 0 1 9 21H6Z";+const RIGHT_PATH =+ "M18 21A1 1 0 0 0 19 20V4A1 1 0 0 0 18 3H15A1 1 0 0 0 14 4V20A1 1 0 0 0 15 21H18Z";++const TIMINGS = {+ drawDurationInFrames: 14,+ actionDelayInFrames: 2,+ actionDurationInFrames: 20,+ loop: false,+} as const;++export function PauseIcon({+ animation = "both",+ loop,+ speed,+ size = 48,+ color = "currentColor",+ strokeWidth = 2,+ className,+}: IconAnimationProps) {+ const { drawProgress, scaleIn, actionProgress } = useIconAnimation(+ { animation, loop, speed },+ TIMINGS,+ );++ const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);++ const leftProgress = interpolate(linearDraw, [0, 0.88], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });+ const rightProgress = interpolate(linearDraw, [0.12, 1], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });++ const left = drawnPathProps(LEFT_PATH, leftProgress);+ const right = drawnPathProps(RIGHT_PATH, rightProgress);++ const pinch = interpolate(actionProgress, [0, 0.45, 1], [0, 1.5, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ });+ const squash = interpolate(actionProgress, [0, 0.45, 1], [1, 0.94, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ });++ 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: `scaleX(${scale}) scaleY(${scale * squash})`,+ }}+ >+ <g transform={`translate(${pinch} 0)`}>+ <path+ d={LEFT_PATH}+ strokeDasharray={left.strokeDasharray}+ strokeDashoffset={left.strokeDashoffset}+ />+ </g>+ <g transform={`translate(${-pinch} 0)`}>+ <path+ d={RIGHT_PATH}+ strokeDasharray={right.strokeDasharray}+ strokeDashoffset={right.strokeDashoffset}+ />+ </g>+ </svg>+ );+}++export function PauseIconStatic({+ 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 x="14" y="3" width="5" height="18" rx="1" />+ <rect x="5" y="3" width="5" height="18" rx="1" />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex 1cb7a6a0..34bbde58 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -1729,6 +1729,21 @@}]},+ {+ "name": "icon-pause",+ "type": "registry:component",+ "title": "Pause",+ "description": "Animated Lucide pause icon — the two bars draw on, then pinch toward each other and settle like a held breath.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-pause/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-pause.tsx"+ }+ ]+ },{"name": "icon-sparkles","type": "registry:component",