Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icon rocket
dev_wandry5e029463eeb9
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex 2e518880..c5c08163 100644--- a/components/docs/icons-gallery.tsx+++ b/components/docs/icons-gallery.tsx@@ -72,6 +72,7 @@ import { PlayIconStatic } from "@/registry/remocn/icon-play";import { PlusIconStatic } from "@/registry/remocn/icon-plus";import { PlusCircleIconStatic } from "@/registry/remocn/icon-plus-circle";import { RefreshCwIconStatic } from "@/registry/remocn/icon-refresh-cw";+import { RocketIconStatic } from "@/registry/remocn/icon-rocket";import { SaveIconStatic } from "@/registry/remocn/icon-save";import { SearchIconStatic } from "@/registry/remocn/icon-search";import { SendIconStatic } from "@/registry/remocn/icon-send";@@ -609,6 +610,12 @@ export const ICONS: IconEntry[] = [category: "Emotion & accents",Static: HeartIconStatic,},+ {+ name: "icon-rocket",+ label: "Rocket",+ category: "Emotion & accents",+ Static: RocketIconStatic,+ },{name: "icon-star",label: "Star",diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex d2fa1b13..5295d52a 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -88,6 +88,7 @@ import { iconPlayConfig } from "@/registry/remocn/icon-play/config";import { iconPlusCircleConfig } from "@/registry/remocn/icon-plus-circle/config";import { iconPlusConfig } from "@/registry/remocn/icon-plus/config";import { iconRefreshCwConfig } from "@/registry/remocn/icon-refresh-cw/config";+import { iconRocketConfig } from "@/registry/remocn/icon-rocket/config";import { iconSaveConfig } from "@/registry/remocn/icon-save/config";import { iconSearchConfig } from "@/registry/remocn/icon-search/config";import { iconSendConfig } from "@/registry/remocn/icon-send/config";@@ -1093,6 +1094,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconRefreshCwConfig,},+ "icon-rocket": {+ load: () =>+ import("@/registry/remocn/icon-rocket").then((m) => ({+ default: m.RocketIcon,+ })),+ config: iconRocketConfig,+ },"icon-save": {load: () =>import("@/registry/remocn/icon-save").then((m) => ({diff --git a/registry/remocn/icon-rocket/config.ts b/registry/remocn/icon-rocket/config.tsnew file mode 100644index 00000000..3e84d7d0--- /dev/null+++ b/registry/remocn/icon-rocket/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconRocketConfig: ComponentConfig = {+ componentName: "RocketIcon",+ importPath: "@/components/remocn/icon-rocket",+ 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: 80,+ fps: FPS,+ compositionWidth: 48,+ compositionHeight: 48,+};diff --git a/registry/remocn/icon-rocket/index.tsx b/registry/remocn/icon-rocket/index.tsxnew file mode 100644index 00000000..f23ea190--- /dev/null+++ b/registry/remocn/icon-rocket/index.tsx@@ -0,0 +1,159 @@+"use client";++import { Easing, interpolate } from "remotion";+import {+ drawnPathProps,+ type IconAnimationProps,+ useIconAnimation,+} from "@/lib/remocn-icons";++const BODY_PATH =+ "M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z";+const FIN_RIGHT_PATH = "M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5";+const FIN_LEFT_PATH = "M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05";+const FLAME_PATH =+ "M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09";++const TIMINGS = {+ drawDurationInFrames: 18,+ actionDelayInFrames: 2,+ actionDurationInFrames: 30,+ loop: false,+} as const;++export function RocketIcon({+ 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 bodyDraw = interpolate(linearDraw, [0, 0.67], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });+ const finsDraw = interpolate(linearDraw, [0.44, 0.89], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });+ const flameDraw = interpolate(linearDraw, [0.67, 1], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });++ const rise = acting+ ? interpolate(actionProgress, [0, 0.45, 1], [0, -4, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ })+ : 0;+ const tilt = acting+ ? interpolate(actionProgress, [0, 0.45, 1], [0, -3, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ })+ : 0;+ const flicker = acting+ ? interpolate(actionProgress, [0, 0.2, 0.4, 0.6, 0.8], [1, 1.2, 1, 1.18, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ })+ : 1;++ const body = drawnPathProps(BODY_PATH, acting ? 1 : bodyDraw);+ const finRight = drawnPathProps(FIN_RIGHT_PATH, acting ? 1 : finsDraw);+ const finLeft = drawnPathProps(FIN_LEFT_PATH, acting ? 1 : finsDraw);+ const flame = drawnPathProps(FLAME_PATH, acting ? 1 : flameDraw);++ const scale = 0.85 + 0.15 * scaleIn;+ const flameTransform = `translate(${4.5 * (1 - flicker)} ${18 * (1 - flicker)}) scale(${flicker})`;++ 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(0 ${rise}) rotate(${tilt} 8 20)`}>+ <path+ d={BODY_PATH}+ strokeDasharray={body.strokeDasharray}+ strokeDashoffset={body.strokeDashoffset}+ />+ <path+ d={FIN_RIGHT_PATH}+ strokeDasharray={finRight.strokeDasharray}+ strokeDashoffset={finRight.strokeDashoffset}+ />+ <path+ d={FIN_LEFT_PATH}+ strokeDasharray={finLeft.strokeDasharray}+ strokeDashoffset={finLeft.strokeDashoffset}+ />+ <g transform={flameTransform}>+ <path+ d={FLAME_PATH}+ strokeDasharray={flame.strokeDasharray}+ strokeDashoffset={flame.strokeDashoffset}+ />+ </g>+ </g>+ </svg>+ );+}++export function RocketIconStatic({+ 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="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5" />+ <path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09" />+ <path d="M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z" />+ <path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05" />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex 90590292..bc3365e1 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -2059,6 +2059,21 @@}]},+ {+ "name": "icon-rocket",+ "type": "registry:component",+ "title": "Rocket",+ "description": "Animated Lucide rocket icon — draws on, then lifts off: the ship rises on a tilt while the flame re-ignites, then eases back to rest.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-rocket/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-rocket.tsx"+ }+ ]+ },{"name": "icon-save","type": "registry:component",