Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icons circle check
dev_wandryc795b261641b
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex 8a54013c..c22b0e86 100644--- a/components/docs/icons-gallery.tsx+++ b/components/docs/icons-gallery.tsx@@ -7,6 +7,7 @@ import { useEffect, useMemo, useRef, useState } from "react";import { usePrefersReducedMotion } from "@/lib/use-prefers-reduced-motion";import { cn } from "@/lib/utils";import registry, { type RegistryEntry } from "@/registry/__index__";+import { CheckCircleIconStatic } from "@/registry/remocn/icon-check-circle";import { CheckIconStatic } from "@/registry/remocn/icon-check";export type IconCategory =@@ -33,6 +34,12 @@ export const ICONS: IconEntry[] = [category: "Status & feedback",Static: CheckIconStatic,},+ {+ name: "icon-check-circle",+ label: "Check Circle",+ category: "Status & feedback",+ Static: CheckCircleIconStatic,+ },];const CATEGORY_ORDER: IconCategory[] = [diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex d5855249..25ab0151 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -24,6 +24,7 @@ import { githubStarsConfig } from "@/registry/remocn/github-stars/config";import { glassCodeBlockConfig } from "@/registry/remocn/glass-code-block/config";import { glassCodeWalkConfig } from "@/registry/remocn/glass-code-walk/config";import { grainDissolveConfig } from "@/registry/remocn/grain-dissolve/config";+import { iconCheckCircleConfig } from "@/registry/remocn/icon-check-circle/config";import { iconCheckConfig } from "@/registry/remocn/icon-check/config";import { infiniteBentoPanConfig } from "@/registry/remocn/infinite-bento-pan/config";import { infiniteMarqueeConfig } from "@/registry/remocn/infinite-marquee/config";@@ -565,6 +566,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconCheckConfig,},+ "icon-check-circle": {+ load: () =>+ import("@/registry/remocn/icon-check-circle").then((m) => ({+ default: m.CheckCircleIcon,+ })),+ config: iconCheckCircleConfig,+ },"wave-wipe": {load: () =>import("@/components/docs/examples/wave-wipe-example").then((m) => ({diff --git a/registry/remocn/icon-check-circle/config.ts b/registry/remocn/icon-check-circle/config.tsnew file mode 100644index 00000000..931d7f9e--- /dev/null+++ b/registry/remocn/icon-check-circle/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconCheckCircleConfig: ComponentConfig = {+ componentName: "CheckCircleIcon",+ importPath: "@/components/remocn/icon-check-circle",+ 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-check-circle/index.tsx b/registry/remocn/icon-check-circle/index.tsxnew file mode 100644index 00000000..b94b9acd--- /dev/null+++ b/registry/remocn/icon-check-circle/index.tsx@@ -0,0 +1,116 @@+"use client";++import { Easing, interpolate } from "remotion";+import {+ drawnPathProps,+ type IconAnimationProps,+ useIconAnimation,+} from "@/lib/remocn-icons";++const CIRCLE_PATH =+ "M12 2 A10 10 0 0 1 22 12 A10 10 0 0 1 12 22 A10 10 0 0 1 2 12 A10 10 0 0 1 12 2";+const CHECK_PATH = "M9 12 11 14 15 10";++const TIMINGS = {+ drawDurationInFrames: 20,+ actionDelayInFrames: 2,+ actionDurationInFrames: 18,+ loop: false,+} as const;++export function CheckCircleIcon({+ animation = "both",+ loop,+ speed,+ size = 48,+ color = "currentColor",+ strokeWidth = 2,+ className,+}: IconAnimationProps) {+ const { drawProgress, scaleIn, actionProgress } = useIconAnimation(+ { animation, loop, speed },+ TIMINGS,+ );++ const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);++ const circleProgress = interpolate(linearDraw, [0, 0.85], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ });+ const checkProgress = interpolate(linearDraw, [0.6, 1], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });++ const circle = drawnPathProps(CIRCLE_PATH, circleProgress);+ const check = drawnPathProps(CHECK_PATH, checkProgress);++ const pop = interpolate(actionProgress, [0, 0.4, 1], [0, 1, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ });+ const scale = (0.85 + 0.15 * scaleIn) * (1 + 0.12 * 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={CIRCLE_PATH}+ strokeDasharray={circle.strokeDasharray}+ strokeDashoffset={circle.strokeDashoffset}+ />+ <path+ d={CHECK_PATH}+ strokeDasharray={check.strokeDasharray}+ strokeDashoffset={check.strokeDashoffset}+ />+ </svg>+ );+}++export function CheckCircleIconStatic({+ 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="10" />+ <path d={CHECK_PATH} />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex af17aa3f..7374a023 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -1353,6 +1353,21 @@"target": "components/remocn/icon-check.tsx"}]+ },+ {+ "name": "icon-check-circle",+ "type": "registry:component",+ "title": "Check Circle",+ "description": "Animated Lucide circle-check icon — the ring draws clockwise, the checkmark traces in, then the whole mark pops to confirm a completed or successful state.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-check-circle/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-check-circle.tsx"+ }+ ]}]}