# Progressive Blur

> Fade content into a soft blur toward one edge, with the blur ramping up smoothly instead of in one hard step.

Source: https://www.honestui.com/docs/animated/progressive-blur

```tsx
import { ProgressiveBlur } from "@/registry/default/animated/progressive-blur";

const items = [
  { title: "Deploy finished", detail: "Production is live on main", time: "2m" },
  { title: "New comment", detail: "Avery replied on the pricing page", time: "9m" },
  { title: "Invoice paid", detail: "Northwind paid INV-2041", time: "24m" },
  { title: "Review requested", detail: "Sam asked for a review on #482", time: "1h" },
  { title: "Usage alert", detail: "API usage reached 80% of the plan", time: "2h" },
  { title: "Teammate joined", detail: "Jordan accepted the invite", time: "3h" },
  { title: "Backup complete", detail: "Nightly snapshot stored in us-east", time: "5h" },
  { title: "Domain verified", detail: "docs.example.com is ready", time: "8h" },
];

export function ProgressiveBlurDemo() {
  return (
    <div className="relative h-80 w-80 overflow-hidden rounded-xl border border-border bg-card">
      <div className="h-full overflow-y-auto px-4 py-10 [scrollbar-width:none]! [&::-webkit-scrollbar]:hidden!">
        <ul className="flex flex-col gap-2">
          {items.map((item) => (
            <li key={item.title} className="rounded-lg border border-border bg-background px-3 py-2.5">
              <div className="flex items-center justify-between gap-3">
                <span className="text-[13px] font-medium text-foreground">{item.title}</span>
                <span className="text-xs text-muted-foreground tabular-nums">{item.time}</span>
              </div>
              <p className="mt-0.5 text-xs text-muted-foreground">{item.detail}</p>
            </li>
          ))}
        </ul>
      </div>
      <ProgressiveBlur direction="top" intensity={8} className="absolute inset-x-0 top-0 h-12" />
      <ProgressiveBlur direction="bottom" className="absolute inset-x-0 bottom-0 h-24" />
    </div>
  );
}

```

## Overview [#overview]

Progressive Blur stacks several `backdrop-filter` layers whose radius doubles toward one edge. Each layer is masked to an overlapping band, so the content behind it softens gradually: sharp where it is read, blurred where it scrolls out of view. Use it at the edges of scrolling lists, over the bottom of an image card behind a caption, or under a floating toolbar.

It blurs whatever is behind it, so place it over the content it should soften, usually absolutely positioned against one edge of a container. It ignores the pointer, so the content underneath stays scrollable and clickable.

## Installation [#installation]

<CliBlock commands="[&#x22;progressive-blur&#x22;]" />

## Usage [#usage]

```tsx
import { ProgressiveBlur } from "@/components/animated/progressive-blur"

<div className="relative overflow-hidden">
  {/* scrolling content */}
  <ProgressiveBlur direction="bottom" className="absolute inset-x-0 bottom-0 h-24" />
</div>
```

The height of the element sets how far the ramp reaches. Combine two for a list that softens at both ends, with a shorter, gentler blur at the top.

## Accessibility [#accessibility]

The blur is decorative and hidden from assistive technology. Blurred content is still in the page, so it stays readable to screen readers and reachable by keyboard. Do not use the blur to hide information people need: anything under the strongest part of the blur should also be available by scrolling it into the clear area.

`backdrop-filter` costs more to paint than a plain gradient. Keep the number of layers modest on large areas, and test scrolling performance on lower-powered devices.

## API Reference [#api-reference]


  ### `direction`

type: `&#x22;top&#x22; | &#x22;bottom&#x22; | &#x22;left&#x22; | &#x22;right&#x22;` · default: `&#x22;bottom&#x22;`

Edge where the blur is strongest.

  ### `layers`

type: `number` · default: `8`

Number of stacked blur layers. More layers give a smoother ramp.

  ### `intensity`

type: `number` · default: `16`

Blur radius at the strongest edge, in px.

  ### `className`

type: `string`

Position and size the blur, for example 

    `absolute inset-x-0 bottom-0 h-24`

    .


Other `div` props are passed to the root element.
