Components
A layered backdrop-blur overlay that fades content at the edges of a container — useful for overflow hints, content fades, and scroll masks.
Loading preview...
import { ProgressiveBlur } from "@/components/ui/progressive-blur";
const navItems = [
"Overview",
"Components",
"Motion",
"Scroll",
"Hover",
"Layout",
"Marquee",
"Background",
"Navigation",
];
export default function ProgressiveBlurNav() {
return (
<div className="flex min-h-50 w-full items-center justify-center px-6">
<div className="relative h-12 w-full max-w-lg overflow-hidden rounded-full border border-border bg-card">
<div className="flex h-full items-center gap-1 px-3">
{navItems.map((item) => (
<button
className="shrink-0 rounded-full px-3 py-1.5 font-medium text-muted-foreground text-sm transition-colors hover:bg-muted hover:text-foreground"
key={item}
>
{item}
</button>
))}
</div>
<ProgressiveBlur
blurIntensity={0.35}
blurLayers={5}
className="absolute inset-y-0 right-0 w-20 rounded-r-full"
direction="right"
/>
</div>
</div>
);
}