Skip to content

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

feat: icon calendar

dev_wandry97fd5db476e5
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index 8fb207db..a3dd8309 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -16,6 +16,7 @@ import { ArrowUpIconStatic } from "@/registry/remocn/icon-arrow-up";
import { AtSignIconStatic } from "@/registry/remocn/icon-at-sign";
import { BellIconStatic } from "@/registry/remocn/icon-bell";
import { BookmarkIconStatic } from "@/registry/remocn/icon-bookmark";
+import { CalendarIconStatic } from "@/registry/remocn/icon-calendar";
import { CameraIconStatic } from "@/registry/remocn/icon-camera";
import { CheckCircleIconStatic } from "@/registry/remocn/icon-check-circle";
import { CheckIconStatic } from "@/registry/remocn/icon-check";
@@ -168,6 +169,12 @@ export const ICONS: IconEntry[] = [
category: "Status & feedback",
Static: XCircleIconStatic,
},
+ {
+ name: "icon-calendar",
+ label: "Calendar",
+ category: "Time & planning",
+ Static: CalendarIconStatic,
+ },
{
name: "icon-search",
label: "Search",
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index 46c0b75c..b40ed9ce 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -32,6 +32,7 @@ import { iconArrowUpConfig } from "@/registry/remocn/icon-arrow-up/config";
import { iconAtSignConfig } from "@/registry/remocn/icon-at-sign/config";
import { iconBellConfig } from "@/registry/remocn/icon-bell/config";
import { iconBookmarkConfig } from "@/registry/remocn/icon-bookmark/config";
+import { iconCalendarConfig } from "@/registry/remocn/icon-calendar/config";
import { iconCameraConfig } from "@/registry/remocn/icon-camera/config";
import { iconCheckCircleConfig } from "@/registry/remocn/icon-check-circle/config";
import { iconCheckConfig } from "@/registry/remocn/icon-check/config";
@@ -681,6 +682,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconBookmarkConfig,
},
+ "icon-calendar": {
+ load: () =>
+ import("@/registry/remocn/icon-calendar").then((m) => ({
+ default: m.CalendarIcon,
+ })),
+ config: iconCalendarConfig,
+ },
"icon-camera": {
load: () =>
import("@/registry/remocn/icon-camera").then((m) => ({
diff --git a/registry/remocn/icon-calendar/config.ts b/registry/remocn/icon-calendar/config.ts
new file mode 100644
index 00000000..4926dffb
--- /dev/null
+++ b/registry/remocn/icon-calendar/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconCalendarConfig: ComponentConfig = {
+ componentName: "CalendarIcon",
+ importPath: "@/components/remocn/icon-calendar",
+ 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: 75,
+ fps: FPS,
+ compositionWidth: 48,
+ compositionHeight: 48,
+};
diff --git a/registry/remocn/icon-calendar/index.tsx b/registry/remocn/icon-calendar/index.tsx
new file mode 100644
index 00000000..2a0f6848
--- /dev/null
+++ b/registry/remocn/icon-calendar/index.tsx
@@ -0,0 +1,157 @@
+"use client";
+
+import { Easing, interpolate } from "remotion";
+import {
+ drawnPathProps,
+ type IconAnimationProps,
+ useIconAnimation,
+} from "@/lib/remocn-icons";
+
+const FRAME_PATH =
+ "M5 4H19A2 2 0 0 1 21 6V20A2 2 0 0 1 19 22H5A2 2 0 0 1 3 20V6A2 2 0 0 1 5 4Z";
+const RING1_PATH = "M8 2v4";
+const RING2_PATH = "M16 2v4";
+const RULE_PATH = "M3 10H21";
+
+const TIMINGS = {
+ drawDurationInFrames: 18,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 20,
+ loop: false,
+} as const;
+
+export function CalendarIcon({
+ 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 frameDraw = interpolate(linearDraw, [0, 0.6], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+ const ringsDraw = interpolate(linearDraw, [0.4, 0.75], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+ const ruleDraw = interpolate(linearDraw, [0.65, 1], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+
+ const ring1Dip = acting
+ ? interpolate(actionProgress, [0, 0.25, 0.5], [0, 1.5, 0], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ })
+ : 0;
+ const ring2Dip = acting
+ ? interpolate(actionProgress, [0.1, 0.35, 0.6], [0, 1.5, 0], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ })
+ : 0;
+ const pop = acting
+ ? interpolate(actionProgress, [0.5, 0.7, 1], [1, 1.04, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ })
+ : 1;
+
+ const frame = drawnPathProps(FRAME_PATH, acting ? 1 : frameDraw);
+ const ring1 = drawnPathProps(RING1_PATH, acting ? 1 : ringsDraw);
+ const ring2 = drawnPathProps(RING2_PATH, acting ? 1 : ringsDraw);
+ const rule = drawnPathProps(RULE_PATH, acting ? 1 : ruleDraw);
+
+ const scale = (0.85 + 0.15 * scaleIn) * pop;
+
+ 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={FRAME_PATH}
+ strokeDasharray={frame.strokeDasharray}
+ strokeDashoffset={frame.strokeDashoffset}
+ />
+ <g transform={`translate(0 ${ring1Dip})`}>
+ <path
+ d={RING1_PATH}
+ strokeDasharray={ring1.strokeDasharray}
+ strokeDashoffset={ring1.strokeDashoffset}
+ />
+ </g>
+ <g transform={`translate(0 ${ring2Dip})`}>
+ <path
+ d={RING2_PATH}
+ strokeDasharray={ring2.strokeDasharray}
+ strokeDashoffset={ring2.strokeDashoffset}
+ />
+ </g>
+ <path
+ d={RULE_PATH}
+ strokeDasharray={rule.strokeDasharray}
+ strokeDashoffset={rule.strokeDashoffset}
+ />
+ </svg>
+ );
+}
+
+export function CalendarIconStatic({
+ 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="M8 2v4" />
+ <path d="M16 2v4" />
+ <rect width="18" height="18" x="3" y="4" rx="2" />
+ <path d="M3 10h18" />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index 404e691e..8121bf7b 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -2269,6 +2269,21 @@
}
]
},
+ {
+ "name": "icon-calendar",
+ "type": "registry:component",
+ "title": "Calendar",
+ "description": "Animated Lucide calendar icon — the pad draws on, then the binder rings dip and the page snaps into place.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-calendar/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-calendar.tsx"
+ }
+ ]
+ },
{
"name": "icon-user",
"type": "registry:component",