CSS Progressive Blur

A blur that gets stronger toward the bottom edge, made from stacked backdrop-filter layers with gradient masks.

  • progressive blur
  • gradient blur
  • backdrop-filter
  • mask
  • image caption
  • fade
HTML
<figure class="pblur">
  <div class="pblur-layers" aria-hidden="true"><i></i><i></i><i></i><i></i></div>
  <figcaption>Golden hour · Lisbon</figcaption>
</figure>
CSS
.pblur {
  position: relative;
  width: 240px;
  height: 160px;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  /* Replace with your photo: url(photo.jpg) center / cover */
  background:
    radial-gradient(circle at 70% 30%, #fde047 0 14%, transparent 15%),
    repeating-linear-gradient(115deg, #fb923c 0 14px, #f43f5e 14px 28px, #7c3aed 28px 42px);
}

.pblur-layers {
  position: absolute;
  inset: 40% 0 0;
}

.pblur-layers i {
  position: absolute;
  inset: 0;
}

.pblur-layers i:nth-child(1) {
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  -webkit-mask: linear-gradient(transparent, #000 25%, #000 50%, transparent 75%);
  mask: linear-gradient(transparent, #000 25%, #000 50%, transparent 75%);
}

.pblur-layers i:nth-child(2) {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  -webkit-mask: linear-gradient(transparent 25%, #000 50%, #000 75%, transparent);
  mask: linear-gradient(transparent 25%, #000 50%, #000 75%, transparent);
}

.pblur-layers i:nth-child(3) {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-mask: linear-gradient(transparent 50%, #000 75%);
  mask: linear-gradient(transparent 50%, #000 75%);
}

.pblur-layers i:nth-child(4) {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask: linear-gradient(transparent 75%, #000);
  mask: linear-gradient(transparent 75%, #000);
}

.pblur figcaption {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  color: #fff;
  font: 700 15px system-ui, sans-serif;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

About this CSS Progressive Blur

This CSS Progressive Blur is 60 lines of pure CSS (1.6 KB) with no JavaScript and no dependencies. It uses linear gradients, radial gradients, text shadows and backdrop filters. It works in current versions of Chrome, Edge, Safari and Firefox. It works in any stack: plain HTML, React, Vue, Svelte, Astro, WordPress or Webflow.

CSS features used

Customize it

The colors in this snippet. Search and replace them to match your brand:

  • #fde047
  • #fb923c
  • #f43f5e
  • #7c3aed
  • #000
  • #fff

How to use this progressive blur

  1. Copy the HTML and paste it where you want the element to appear.
  2. Copy the CSS into your stylesheet, or inside a <style> tag.
  3. Keep the .pblur class name, or rename it in both places. Then tweak colors, sizes and timing to match your design.
  4. Using React or Next.js? Change class to className in the HTML. The CSS works as is, including in Tailwind projects (put it in your global stylesheet).

Building with an AI tool?

“Copy for AI” copies a short prompt for Cursor, Claude Code, Lovable, Bolt or v0. Your AI tool opens the Markdown version of this snippet and reads the HTML, CSS and setup notes there. If your tool can't open links, with the code instead. More ways to use copy CSS with AI.

Feedback