UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
fix: update orbiting circles component
Dillion Verma075c5050e018
diff --git a/registry/components/example/orbiting-circles-demo.tsx b/registry/components/example/orbiting-circles-demo.tsxindex 85f3e2b2..45ffb7d3 100644--- a/registry/components/example/orbiting-circles-demo.tsx+++ b/registry/components/example/orbiting-circles-demo.tsx@@ -2,14 +2,14 @@ import OrbitingCircles from "@/components/magicui/orbiting-circles";export default function OrbitingCirclesDemo() {return (- <div className="relative flex h-[500px] w-full max-w-[32rem] items-center justify-center overflow-hidden rounded-lg border bg-background md:shadow-xl">- <span className="pointer-events-none whitespace-pre-wrap bg-gradient-to-b from-black to-gray-300/80 bg-clip-text text-center text-8xl font-semibold leading-none text-transparent dark:from-white dark:to-slate-900/10">+ <div className="relative flex h-[500px] w-full max-w-lg items-center justify-center overflow-hidden rounded-lg border bg-background md:shadow-xl">+ <span className="pointer-events-none whitespace-pre-wrap bg-gradient-to-b from-black to-gray-300 bg-clip-text text-center text-8xl font-semibold leading-none text-transparent dark:from-white dark:to-black">Circles</span>{/* Inner Circles */}<OrbitingCircles- className="h-[30px] w-[30px] border-none bg-transparent"+ className="size-[30px] border-none bg-transparent"duration={20}delay={20}radius={80}@@ -17,7 +17,7 @@ export default function OrbitingCirclesDemo() {<Icons.whatsapp /></OrbitingCircles><OrbitingCircles- className="h-[30px] w-[30px] border-none bg-transparent"+ className="size-[30px] border-none bg-transparent"duration={20}delay={10}radius={80}@@ -27,7 +27,7 @@ export default function OrbitingCirclesDemo() {{/* Outer Circles (reverse) */}<OrbitingCircles- className="h-[50px] w-[50px] border-none bg-transparent"+ className="size-[50px] border-none bg-transparent"radius={190}duration={20}reverse@@ -35,7 +35,7 @@ export default function OrbitingCirclesDemo() {<Icons.googleDrive /></OrbitingCircles><OrbitingCircles- className="h-[50px] w-[50px] border-none bg-transparent"+ className="size-[50px] border-none bg-transparent"radius={190}duration={20}delay={20}diff --git a/registry/components/magicui/orbiting-circles.tsx b/registry/components/magicui/orbiting-circles.tsxindex c7a19a62..602eee98 100644--- a/registry/components/magicui/orbiting-circles.tsx+++ b/registry/components/magicui/orbiting-circles.tsx@@ -23,7 +23,7 @@ export default function OrbitingCircles({<svgxmlns="http://www.w3.org/2000/svg"version="1.1"- className="pointer-events-none absolute inset-0 h-full w-full"+ className="pointer-events-none absolute inset-0 size-full"><circleclassName="stroke-black/10 stroke-1 dark:stroke-white/10"@@ -31,7 +31,6 @@ export default function OrbitingCircles({cy="50%"r={radius}fill="none"- strokeDasharray={"4 4"}/></svg>)}@@ -45,7 +44,7 @@ export default function OrbitingCircles({} as React.CSSProperties}className={cn(- "absolute flex h-full w-full transform-gpu animate-orbit items-center justify-center rounded-full border bg-black/10 [animation-delay:calc(var(--delay)*1000ms)] dark:bg-white/10",+ "absolute flex size-full transform-gpu animate-orbit items-center justify-center rounded-full border bg-black/10 [animation-delay:calc(var(--delay)*1000ms)] dark:bg-white/10",{ "[animation-direction:reverse]": reverse },className,)}