Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: icon flame

dev_wandry980dda97f4df
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index 143d65ab..1faefb75 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -13,6 +13,7 @@ import { CheckCircleIconStatic } from "@/registry/remocn/icon-check-circle";
import { CheckIconStatic } from "@/registry/remocn/icon-check";
import { CopyIconStatic } from "@/registry/remocn/icon-copy";
import { DownloadIconStatic } from "@/registry/remocn/icon-download";
+import { FlameIconStatic } from "@/registry/remocn/icon-flame";
import { HeartIconStatic } from "@/registry/remocn/icon-heart";
import { InfoIconStatic } from "@/registry/remocn/icon-info";
import { LoaderIconStatic } from "@/registry/remocn/icon-loader";
@@ -166,6 +167,12 @@ export const ICONS: IconEntry[] = [
category: "Emotion & accents",
Static: ZapIconStatic,
},
+ {
+ name: "icon-flame",
+ label: "Flame",
+ category: "Emotion & accents",
+ Static: FlameIconStatic,
+ },
];
const CATEGORY_ORDER: IconCategory[] = [
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index ed3d7bd8..9f1a14b6 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -30,6 +30,7 @@ import { iconCheckCircleConfig } from "@/registry/remocn/icon-check-circle/confi
import { iconCheckConfig } from "@/registry/remocn/icon-check/config";
import { iconCopyConfig } from "@/registry/remocn/icon-copy/config";
import { iconDownloadConfig } from "@/registry/remocn/icon-download/config";
+import { iconFlameConfig } from "@/registry/remocn/icon-flame/config";
import { iconHeartConfig } from "@/registry/remocn/icon-heart/config";
import { iconInfoConfig } from "@/registry/remocn/icon-info/config";
import { iconLoaderConfig } from "@/registry/remocn/icon-loader/config";
@@ -612,6 +613,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconDownloadConfig,
},
+ "icon-flame": {
+ load: () =>
+ import("@/registry/remocn/icon-flame").then((m) => ({
+ default: m.FlameIcon,
+ })),
+ config: iconFlameConfig,
+ },
"icon-heart": {
load: () =>
import("@/registry/remocn/icon-heart").then((m) => ({
diff --git a/registry/remocn/icon-flame/config.ts b/registry/remocn/icon-flame/config.ts
new file mode 100644
index 00000000..b199a86f
--- /dev/null
+++ b/registry/remocn/icon-flame/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconFlameConfig: ComponentConfig = {
+ componentName: "FlameIcon",
+ importPath: "@/components/remocn/icon-flame",
+ controls: {
+ animation: {
+ type: "select",
+ default: "both",
+ options: ["draw", "action", "both"],
+ label: "Animation",
+ },
+ loop: {
+ type: "boolean",
+ default: true,
+ 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: 90,
+ fps: FPS,
+ compositionWidth: 48,
+ compositionHeight: 48,
+};
diff --git a/registry/remocn/icon-flame/index.tsx b/registry/remocn/icon-flame/index.tsx
new file mode 100644
index 00000000..5aa43c9f
--- /dev/null
+++ b/registry/remocn/icon-flame/index.tsx
@@ -0,0 +1,123 @@
+"use client";
+
+import { Easing, interpolate } from "remotion";
+import {
+ drawnPathProps,
+ type IconAnimationProps,
+ useIconAnimation,
+} from "@/lib/remocn-icons";
+
+const FLAME_PATH =
+ "M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4";
+
+const TIMINGS = {
+ drawDurationInFrames: 14,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 40,
+ loop: true,
+} as const;
+
+export function FlameIcon({
+ animation = "both",
+ loop,
+ speed,
+ size = 48,
+ color = "currentColor",
+ strokeWidth = 2,
+ className,
+}: IconAnimationProps) {
+ const { drawProgress, actionProgress } = useIconAnimation(
+ { animation, loop, speed },
+ TIMINGS,
+ );
+
+ const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);
+
+ const flameProgress = interpolate(linearDraw, [0, 1], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ });
+ const entrance = interpolate(linearDraw, [0, 1], [0.85, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+
+ const flame = drawnPathProps(FLAME_PATH, flameProgress);
+
+ const flickerEase = {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ } as const;
+ const scaleY = interpolate(
+ actionProgress,
+ [0, 0.25, 0.5, 0.75, 1],
+ [1, 1.06, 0.97, 1.04, 1],
+ flickerEase,
+ );
+ const skew = interpolate(
+ actionProgress,
+ [0, 0.25, 0.5, 0.75, 1],
+ [0, -2, 2, -1, 0],
+ flickerEase,
+ );
+
+ 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(${entrance})`,
+ }}
+ >
+ <g
+ transform={`translate(12 22) scale(1 ${scaleY}) skewX(${skew}) translate(-12 -22)`}
+ >
+ <path
+ d={FLAME_PATH}
+ strokeDasharray={flame.strokeDasharray}
+ strokeDashoffset={flame.strokeDashoffset}
+ />
+ </g>
+ </svg>
+ );
+}
+
+export function FlameIconStatic({
+ 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={FLAME_PATH} />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index 1084cdd8..09d3dfb6 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -1638,6 +1638,21 @@
"target": "components/remocn/icon-zap.tsx"
}
]
+ },
+ {
+ "name": "icon-flame",
+ "type": "registry:component",
+ "title": "Flame",
+ "description": "Animated Lucide flame icon — the outline draws on, then flickers with a looping scale-and-skew wobble for hot features, trending items, or streaks. Loops by default.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-flame/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-flame.tsx"
+ }
+ ]
}
]
}