Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icon play
dev_wandry4a2d3928d193
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex 948a28a3..f600f877 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 { PlayIconStatic } from "@/registry/remocn/icon-play";import { PlusIconStatic } from "@/registry/remocn/icon-plus";import { RefreshCwIconStatic } from "@/registry/remocn/icon-refresh-cw";import { SearchIconStatic } from "@/registry/remocn/icon-search";@@ -158,6 +159,12 @@ export const ICONS: IconEntry[] = [category: "Actions & UI",Static: SendIconStatic,},+ {+ name: "icon-play",+ label: "Play",+ category: "Media & playback",+ Static: PlayIconStatic,+ },{name: "icon-heart",label: "Heart",diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 0c00add3..1734e6a0 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 { iconPlayConfig } from "@/registry/remocn/icon-play/config";import { iconPlusConfig } from "@/registry/remocn/icon-plus/config";import { iconRefreshCwConfig } from "@/registry/remocn/icon-refresh-cw/config";import { iconSearchConfig } from "@/registry/remocn/icon-search/config";@@ -690,6 +691,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconPartyPopperConfig,},+ "icon-play": {+ load: () =>+ import("@/registry/remocn/icon-play").then((m) => ({+ default: m.PlayIcon,+ })),+ config: iconPlayConfig,+ },"icon-plus": {load: () =>import("@/registry/remocn/icon-plus").then((m) => ({diff --git a/registry/remocn/icon-play/config.ts b/registry/remocn/icon-play/config.tsnew file mode 100644index 00000000..307130c9--- /dev/null+++ b/registry/remocn/icon-play/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconPlayConfig: ComponentConfig = {+ componentName: "PlayIcon",+ importPath: "@/components/remocn/icon-play",+ 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-play/index.tsx b/registry/remocn/icon-play/index.tsxnew file mode 100644index 00000000..8e7eb1d2--- /dev/null+++ b/registry/remocn/icon-play/index.tsx@@ -0,0 +1,104 @@+"use client";++import { Easing, interpolate } from "remotion";+import {+ drawnPathProps,+ type IconAnimationProps,+ useIconAnimation,+} from "@/lib/remocn-icons";++const PLAY_PATH =+ "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z";++const TIMINGS = {+ drawDurationInFrames: 14,+ actionDelayInFrames: 2,+ actionDurationInFrames: 18,+ loop: false,+} as const;++export function PlayIcon({+ animation = "both",+ loop,+ speed,+ size = 48,+ color = "currentColor",+ strokeWidth = 2,+ className,+}: IconAnimationProps) {+ const { drawProgress, scaleIn, actionProgress } = useIconAnimation(+ { animation, loop, speed },+ TIMINGS,+ );++ const dash = drawnPathProps(PLAY_PATH, drawProgress);+ const press = interpolate(+ actionProgress,+ [0, 0.33, 0.66, 1],+ [1, 0.92, 1.1, 1],+ {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ },+ );+ const nudge = interpolate(actionProgress, [0.33, 0.66, 1], [0, 1.5, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });+ const scale = (0.85 + 0.15 * scaleIn) * press;++ 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: `translateX(${nudge}px) scale(${scale})`,+ }}+ >+ <path+ d={PLAY_PATH}+ strokeDasharray={dash.strokeDasharray}+ strokeDashoffset={dash.strokeDashoffset}+ />+ </svg>+ );+}++export function PlayIconStatic({+ 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={PLAY_PATH} />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex 1c4f9d6c..1cb7a6a0 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -1714,6 +1714,21 @@}]},+ {+ "name": "icon-play",+ "type": "registry:component",+ "title": "Play",+ "description": "Animated Lucide play icon — the triangle draws on, then presses in and springs forward like a play button being hit.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-play/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-play.tsx"+ }+ ]+ },{"name": "icon-sparkles","type": "registry:component",