Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix: add gpu transform

Dillion Vermad264bcd424dc
diff --git a/components/landing/hero-client.tsx b/components/landing/hero-client.tsx
index 9c2ddb45..71fdb03c 100644
--- a/components/landing/hero-client.tsx
+++ b/components/landing/hero-client.tsx
@@ -209,7 +209,7 @@ export default function HeroClient({
>
<div
className={cn(
- "absolute inset-0 bottom-1/2 h-full w-full [filter:blur(120px)] ",
+ "absolute inset-0 bottom-1/2 h-full w-full transform-gpu [filter:blur(120px)]",
// light styles
"[background-image:linear-gradient(to_bottom,rgba(255,189,122,0.2),transparent_30%)]",
diff --git a/registry/blocks/example/hero-1.tsx b/registry/blocks/example/hero-1.tsx
index 6896e8c4..712987d1 100644
--- a/registry/blocks/example/hero-1.tsx
+++ b/registry/blocks/example/hero-1.tsx
@@ -107,7 +107,7 @@ export default function Hero() {
>
<div
className={cn(
- "absolute inset-0 bottom-1/2 h-full w-full [filter:blur(120px)] ",
+ "absolute inset-0 bottom-1/2 h-full w-full transform-gpu [filter:blur(120px)]",
// light styles
"[background-image:linear-gradient(to_bottom,#ffaa40,transparent_30%)]",
diff --git a/registry/blocks/example/hero-2.tsx b/registry/blocks/example/hero-2.tsx
index 22ffaaf8..b084ef2b 100644
--- a/registry/blocks/example/hero-2.tsx
+++ b/registry/blocks/example/hero-2.tsx
@@ -109,7 +109,7 @@ export default function Hero() {
>
<div
className={cn(
- "absolute inset-0 bottom-1/2 h-full w-full [filter:blur(120px)] ",
+ "absolute inset-0 bottom-1/2 h-full w-full transform-gpu [filter:blur(120px)]",
// light styles
"[background-image:linear-gradient(to_bottom,#ffaa40,transparent_30%)]",