StealThis .dev

Progressive Blur

A gradient blur effect where content gets progressively more blurry at the edges, like a fade-to-blur overlay.

Open in Lab
css javascript vue svelte
Targets: TS JS HTML React Vue Svelte

Code

Progressive Blur

A gradient blur overlay that progressively blurs content at an edge, creating an elegant fade-to-blur effect. Perfect for truncating content, creating depth, or masking scroll areas.

How it works

  1. A pseudo-element or overlay div is placed over the content edge
  2. CSS backdrop-filter: blur() applies the blur effect
  3. A CSS mask-image linear gradient controls where the blur is visible
  4. The gradient goes from transparent (no blur) to opaque (full blur)

Customization

  • Change direction to blur from top, bottom, left, or right
  • Adjust --blur-intensity to control the maximum blur amount
  • Modify --blur-height to control how much area the blur covers
  • Works on any scrollable or overflowing content area

When to use it

  • Bottom of scrollable content areas (read-more pattern)
  • Image edges that fade into the background
  • Long lists or feeds with a soft content boundary
  • Hero sections with content fading into a solid background