Components

Progressive Blur

A progressive blur effect for React and Tailwind CSS: stacked backdrop-filter bands with overlapping gradient masks fade scrolling content into a smooth blur at any edge, like the toolbars in iOS and macOS. Pure CSS with no JavaScript, so it works in Server Components and costs nothing at runtime.

  • Pure CSS
  • Server Component
  • Any edge
  • Smooth multi-layer ramp
  • pointer-events: none
  1. 1

    Midnight Static

    Neon Harbor

    3:42
  2. 2

    Glass Rain

    Lumen

    4:05
  3. 3

    After Hours

    Kilo Vale

    2:58
  4. 4

    Low Orbit

    Satellite Bloom

    3:21
  5. 5

    Soft Circuit

    Neon Harbor

    5:10
  6. 6

    Paper Moons

    Ivy & Ash

    3:33
  7. 7

    Undertow

    Lumen

    4:47
  8. 8

    Static Bloom

    Kilo Vale

    3:02
  9. 9

    Northern Lines

    Satellite Bloom

    4:18
  10. 10

    Velvet Hour

    Ivy & Ash

    3:55

Installation

$ npx shadcn@latest add https://duskui.com/r/progressive-blur.json

Usage

feed.tsx
import { ProgressiveBlur } from "@/components/dusk/progressive-blur/progressive-blur"

export function Feed() {
  return (
    // The wrapper doesn't scroll, so the blur stays pinned to its edge.
    <div className="relative h-96 overflow-hidden rounded-xl">
      <div className="h-full overflow-y-auto">{/* long content */}</div>
      <ProgressiveBlur position="bottom" height={96} blurIntensity={12} />
    </div>
  )
}

Examples

Use left and right for sideways scrollers. On side edges height is the depth of the band, i.e. its width.

Frame 01
Frame 02
Frame 03
Frame 04
Frame 05
Frame 06
Frame 07
Frame 08

Intensity & height

blurIntensity is the blur in px at the very edge; each band inward halves it. height accepts px or any CSS length, and layers trades smoothness for GPU work.

Night falls over the city as signs flicker on one by one, painting wet streets in mint, violet and amber. Night falls over the city as signs flicker on one by one, painting wet streets in mint, violet and amber.

blurIntensity=4

Night falls over the city as signs flicker on one by one, painting wet streets in mint, violet and amber. Night falls over the city as signs flicker on one by one, painting wet streets in mint, violet and amber.

blurIntensity=12

Night falls over the city as signs flicker on one by one, painting wet streets in mint, violet and amber. Night falls over the city as signs flicker on one by one, painting wet streets in mint, violet and amber.

blurIntensity=32

Caption card

A strong blur plus a tint makes a legible caption area over busy imagery without a hard scrim edge.

Collection

Aurora Studies

Twelve long exposures shot above the Arctic Circle.

API Reference

Also accepts any HTML attribute for the overlay. Place it inside a positioned parent.

PropTypeDefaultDescription
position"top" | "bottom" | "left" | "right" | "both""bottom"Edge the blur builds toward. both = top and bottom.
blurIntensitynumber12Blur in px at the edge; each band inward halves it.
heightnumber | string"30%"Depth of the band from the edge, in px or any CSS length.
layersnumber6Number of stacked bands (min 2).
tintstring—Optional color that fades in toward the edge, e.g. var(--background).
classNamestring—Classes for the overlay (e.g. z-index or rounded corners).

Accessibility

  • The overlay is aria-hidden and pointer-events: none, so content underneath stays clickable, selectable and scrollable.
  • Nothing animates; the effect is static CSS and unaffected by motion preferences.
  • Keep important text out of the blurred band, or add padding to the scroll container so it can scroll clear of it.
  • Without backdrop-filter support only the optional tint is drawn and content stays fully readable.