Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icon at
dev_wandry05c8880dd1b9
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex 0cd83856..63a988e3 100644--- a/components/docs/icons-gallery.tsx+++ b/components/docs/icons-gallery.tsx@@ -13,6 +13,7 @@ import { ArrowDownIconStatic } from "@/registry/remocn/icon-arrow-down";import { ArrowLeftIconStatic } from "@/registry/remocn/icon-arrow-left";import { ArrowRightIconStatic } from "@/registry/remocn/icon-arrow-right";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 { CameraIconStatic } from "@/registry/remocn/icon-camera";@@ -372,6 +373,12 @@ export const ICONS: IconEntry[] = [category: "People & communication",Static: PhoneIconStatic,},+ {+ name: "icon-at-sign",+ label: "At Sign",+ category: "People & communication",+ Static: AtSignIconStatic,+ },{name: "icon-heart",label: "Heart",diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 3c7fba47..662085a2 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -29,6 +29,7 @@ import { iconArrowDownConfig } from "@/registry/remocn/icon-arrow-down/config";import { iconArrowLeftConfig } from "@/registry/remocn/icon-arrow-left/config";import { iconArrowRightConfig } from "@/registry/remocn/icon-arrow-right/config";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 { iconCameraConfig } from "@/registry/remocn/icon-camera/config";@@ -654,6 +655,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconArrowUpConfig,},+ "icon-at-sign": {+ load: () =>+ import("@/registry/remocn/icon-at-sign").then((m) => ({+ default: m.AtSignIcon,+ })),+ config: iconAtSignConfig,+ },"icon-bell": {load: () =>import("@/registry/remocn/icon-bell").then((m) => ({diff --git a/registry/remocn/icon-at-sign/config.ts b/registry/remocn/icon-at-sign/config.tsnew file mode 100644index 00000000..eada2271--- /dev/null+++ b/registry/remocn/icon-at-sign/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconAtSignConfig: ComponentConfig = {+ componentName: "AtSignIcon",+ importPath: "@/components/remocn/icon-at-sign",+ 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-at-sign/index.tsx b/registry/remocn/icon-at-sign/index.tsxnew file mode 100644index 00000000..f4e3c4b2--- /dev/null+++ b/registry/remocn/icon-at-sign/index.tsx@@ -0,0 +1,124 @@+"use client";++import { Easing, interpolate } from "remotion";+import {+ drawnPathProps,+ type IconAnimationProps,+ useIconAnimation,+} from "@/lib/remocn-icons";++const CIRCLE_PATH = "M12 8a4 4 0 1 0 0 8 4 4 0 1 0 0-8Z";+const SWOOSH_PATH = "M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8";++const CENTER = 12;++const TIMINGS = {+ drawDurationInFrames: 18,+ actionDelayInFrames: 2,+ actionDurationInFrames: 22,+ loop: false,+} as const;++export function AtSignIcon({+ 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 circleDraw = interpolate(linearDraw, [0, 0.55], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });+ const swooshDraw = interpolate(linearDraw, [0.35, 1], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });++ const circlePop = acting+ ? interpolate(actionProgress, [0, 0.22, 0.45], [1, 1.15, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ })+ : 1;+ const swooshProgress = acting ? 1 : swooshDraw;+ const circleProgress = acting ? 1 : circleDraw;++ const circle = drawnPathProps(CIRCLE_PATH, circleProgress);+ const swoosh = drawnPathProps(SWOOSH_PATH, swooshProgress);++ const scale = 0.85 + 0.15 * scaleIn;+ const popTransform = `translate(${CENTER * (1 - circlePop)} ${CENTER * (1 - circlePop)}) scale(${circlePop})`;++ 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={popTransform}>+ <path+ d={CIRCLE_PATH}+ strokeDasharray={circle.strokeDasharray}+ strokeDashoffset={circle.strokeDashoffset}+ />+ </g>+ <path+ d={SWOOSH_PATH}+ strokeDasharray={swoosh.strokeDasharray}+ strokeDashoffset={swoosh.strokeDashoffset}+ />+ </svg>+ );+}++export function AtSignIconStatic({+ 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"+ >+ <circle cx="12" cy="12" r="4" />+ <path d={SWOOSH_PATH} />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex f71d8751..8bdeaba4 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -2179,6 +2179,21 @@}]},+ {+ "name": "icon-at-sign",+ "type": "registry:component",+ "title": "At Sign",+ "description": "Animated Lucide at-sign icon — the inner 'a' draws and pops, then the outer swoosh re-traces its tail: a mention landing.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-at-sign/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-at-sign.tsx"+ }+ ]+ },{"name": "icon-user","type": "registry:component",