UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
fix: update animated grid pattern styles
Dillion Vermaadf319aa271c
diff --git a/registry/components/example/animated-grid-pattern-demo.tsx b/registry/components/example/animated-grid-pattern-demo.tsxindex 0b03d553..a95dea69 100644--- a/registry/components/example/animated-grid-pattern-demo.tsx+++ b/registry/components/example/animated-grid-pattern-demo.tsx@@ -1,26 +1,22 @@-"use client";-import { cn } from "@/lib/utils";import AnimatedGridPattern from "@/components/magicui/animated-grid-pattern";-const AnimatedGridPatternDemo = () => {+export default function AnimatedGridPatternDemo() {return (- <div className="relative flex h-full w-full max-w-[32rem] items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-xl">+ <div className="relative flex h-[500px] w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-xl"><p className="z-10 whitespace-pre-wrap text-center text-5xl font-medium tracking-tighter text-black dark:text-white">Animated Grid Pattern</p><AnimatedGridPatternnumSquares={30}- maxOpacity={0.5}+ maxOpacity={0.1}duration={3}repeatDelay={1}className={cn(- "[mask-image:radial-gradient(300px_circle_at_center,white,transparent)]",+ "[mask-image:radial-gradient(500px_circle_at_center,white,transparent)]","inset-x-0 inset-y-[-30%] h-[200%] skew-y-12",)}/></div>);-};--export default AnimatedGridPatternDemo;+}