UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
🐛 fix: safari rendering
Dillion Vermac4a0ef3a1c37
diff --git a/registry/components/example/bento-demo.tsx b/registry/components/example/bento-demo.tsxindex c1ec8264..915c90a1 100644--- a/registry/components/example/bento-demo.tsx+++ b/registry/components/example/bento-demo.tsx@@ -60,7 +60,7 @@ const features = ["relative w-32 cursor-pointer overflow-hidden rounded-xl border p-4","border-gray-950/[.1] bg-gray-950/[.01] hover:bg-gray-950/[.05]","dark:border-gray-50/[.1] dark:bg-gray-50/[.10] dark:hover:bg-gray-50/[.15]",- "blur-[1px] transition-all duration-300 ease-out hover:blur-none",+ "transform-gpu blur-[1px] transition-all duration-300 ease-out hover:blur-none",)}><div className="flex flex-row items-center gap-2">diff --git a/registry/components/magicui/bento-grid.tsx b/registry/components/magicui/bento-grid.tsxindex 80c43431..859e97dd 100644--- a/registry/components/magicui/bento-grid.tsx+++ b/registry/components/magicui/bento-grid.tsx@@ -44,13 +44,13 @@ const BentoCard = ({// light styles"bg-white [box-shadow:0_0_0_1px_rgba(0,0,0,.03),0_2px_4px_rgba(0,0,0,.05),0_12px_24px_rgba(0,0,0,.05)]",// dark styles- "dark:bg-transparent dark:backdrop-blur-md dark:[border:1px_solid_rgba(255,255,255,.1)] dark:[box-shadow:0_-20px_80px_-20px_#ffffff1f_inset]",+ "transform-gpu dark:bg-transparent dark:backdrop-blur-md dark:[border:1px_solid_rgba(255,255,255,.1)] dark:[box-shadow:0_-20px_80px_-20px_#ffffff1f_inset]",className,)}><div>{background}</div>- <div className="pointer-events-none z-10 flex flex-col gap-1 p-6 transition-all duration-300 group-hover:-translate-y-10">- <Icon className="h-12 w-12 text-neutral-700 transition-all duration-300 ease-in-out group-hover:h-9 group-hover:w-9" />+ <div className="pointer-events-none z-10 flex transform-gpu flex-col gap-1 p-6 transition-all duration-300 group-hover:-translate-y-10">+ <Icon className="h-12 w-12 transform-gpu text-neutral-700 transition-all duration-300 ease-in-out group-hover:scale-75" /><h3 className="text-xl font-semibold text-neutral-700 dark:text-neutral-300">{name}</h3>@@ -59,9 +59,7 @@ const BentoCard = ({<divclassName={cn(- "pointer-events-none flex flex-row items-center p-4 transition-all duration-300 group-hover:translate-y-0 group-hover:opacity-100",- "translate-y-10 opacity-0",- "absolute bottom-0 w-full",+ "pointer-events-none absolute bottom-0 flex w-full translate-y-10 transform-gpu flex-row items-center p-4 opacity-0 transition-all duration-300 group-hover:translate-y-0 group-hover:opacity-100",)}><Button variant="ghost" asChild size="sm" className="pointer-events-auto">@@ -71,7 +69,7 @@ const BentoCard = ({</a></Button></div>- <div className="pointer-events-none absolute inset-0 transition-all duration-300 group-hover:bg-black/[.03] group-hover:dark:bg-neutral-800/10" />+ <div className="pointer-events-none absolute inset-0 transform-gpu transition-all duration-300 group-hover:bg-black/[.03] group-hover:dark:bg-neutral-800/10" /></div>);diff --git a/registry/components/magicui/magic-card.tsx b/registry/components/magicui/magic-card.tsxindex d2e89db0..e5cb377b 100644--- a/registry/components/magicui/magic-card.tsx+++ b/registry/components/magicui/magic-card.tsx@@ -217,7 +217,7 @@ const MagicCard: React.FC<MagicCardProps> = ({{spotlight && (<divclassName={- "blur-xs pointer-events-none absolute left-0 top-0 h-full w-full rounded-2xl bg-[radial-gradient(var(--mask-size)_circle_at_var(--mouse-x)_var(--mouse-y),var(--spotlight-color),transparent_40%)] transition-opacity duration-500"+ "pointer-events-none absolute left-0 top-0 h-full w-full transform-gpu rounded-2xl bg-[radial-gradient(var(--mask-size)_circle_at_var(--mouse-x)_var(--mouse-y),var(--spotlight-color),transparent_40%)] blur-sm transition-opacity duration-500"}/>)}