UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
"use client"
import { ScrollArea } from "@/components/ui/scroll-area"
import { ProgressiveBlur } from "@/registry/magicui/progressive-blur"
export default function ProgressiveBlurDemo() {
return (
<div className="relative w-full rounded-xl border">
<ScrollArea className="relative h-[400px] overflow-hidden">
<div className="flex flex-col gap-2 p-4">
{Array.from({ length: 20 }).map((_, index) => (
<div
key={index}
className="bg-card flex h-20 w-full items-center justify-center rounded-xl border"
>
{index}
</div>
))}
</div>
<ProgressiveBlur position="bottom" height="40%" />
</ScrollArea>
</div>
)
}