CSS backdrop-filter Property

Beginner
⏱️ 6 min read
📚 Updated: Jun 2026
🎯 4 Examples
Effects & UI

What You’ll Learn

The backdrop-filter property applies visual effects to the area behind an element. It is widely used for frosted glass panels, modal overlays, navigation bars, and modern glassmorphism UI.

01

Backdrop Effects

Style what is behind a box.

02

Syntax

Use blur, brightness, and more.

03

Glass UI

Build frosted overlays.

04

none Default

No effect until you set one.

05

Transparency

Pair with rgba backgrounds.

06

vs filter

Know when to use each.

Definition and Usage

The backdrop-filter CSS property lets you apply filter effects to the backdrop of an element. Unlike filter, which changes the element itself, backdrop-filter changes only the pixels that show through the element from behind it.

This makes it ideal for overlays, cards, and panels that sit on top of photos, gradients, or page content. A common pattern is a semi-transparent background plus backdrop-filter: blur(8px); to create a soft frosted-glass look.

💡
Beginner Tip

For the effect to be visible, the element usually needs some transparency and there must be something colorful or detailed behind it.

📝 Syntax

Write backdrop-filter with one or more filter functions, or the keyword none:

syntax.css
selector {
  backdrop-filter: <filter-function> | none;
}

Basic Example

backdrop-filter.css
.overlay {
  background-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

Supported Filter Functions

  • blur() — softens the backdrop with a Gaussian blur
  • brightness() — makes the backdrop lighter or darker
  • contrast() — increases or reduces backdrop contrast
  • grayscale() — removes color from the backdrop
  • hue-rotate() — shifts backdrop colors around the color wheel
  • invert(), opacity(), saturate(), and sepia()

Syntax Rules

  • You can combine multiple functions in one declaration, separated by spaces.
  • The syntax mirrors the filter property, but the target is the backdrop instead of the element.
  • Use a semi-transparent background so the filtered backdrop remains visible.
  • The initial value is none, which applies no backdrop effect.
  • Heavy blur values can affect performance on large areas, so use them thoughtfully.

⚡ Quick Reference

QuestionAnswer
Initial valuenone
Applies toAll elements
InheritedNo
AnimatableYes, in supporting browsers
Common useGlass overlays, modals, nav bars, and frosted cards

Default Value

The initial value of backdrop-filter is none. That means no visual effect is applied to the backdrop until you add a filter function such as blur() or brightness().

💎 Property Values

These are the most common backdrop-filter values you will use in real projects.

ValueExampleMeaning
blur()backdrop-filter: blur(8px);Creates a frosted-glass blur behind the element
brightness()backdrop-filter: brightness(120%);Makes the backdrop lighter than normal
contrast()backdrop-filter: contrast(120%);Increases backdrop contrast
grayscale()backdrop-filter: grayscale(100%);Turns the backdrop fully grayscale
Combined filtersbackdrop-filter: blur(10px) saturate(160%);Applies multiple effects at once
nonebackdrop-filter: none;Removes all backdrop effects
blur(10px)

The classic frosted overlay effect used in modals and glass panels.

Blur

Softens details behind the panel.

grayscale(100%)

Removes color from the backdrop while leaving the panel content normal.

Grayscale

Useful for focus states and overlays.

brightness(130%)

Brightens the backdrop for lighter glass surfaces.

Bright

Often paired with blur in UI design.

blur() saturate()

A common glassmorphism combo for modern cards and nav bars.

Glass

Blur plus extra color richness.

When backdrop-filter Works Best

For beginners, these conditions make the effect easiest to see and most reliable:

  • Transparent or translucent background — Use rgba, hsla, or partial opacity so the backdrop can show through.
  • Visible content behind the element — Photos, gradients, text, or patterns give the filter something to affect.
  • Overlay-style UI — Modals, sticky headers, cards, and pop-ups are common use cases.
  • Fallback design — Keep text readable even if the blur effect is unsupported.

backdrop-filter vs filter

PropertyAffectsBest for
backdrop-filterThe area behind the elementGlass overlays, frosted nav bars, modal backdrops
filterThe element and its contentsBlurring an image, icon, or entire component

👀 Live Preview

This card uses a translucent background plus backdrop-filter: blur(10px) saturate(150%); over a colorful gradient:

Frosted Glass Card

The gradient behind this card is blurred through the panel.

The text stays sharp while only the backdrop receives the blur and saturation boost.

Examples Gallery

Try backdrop-filter with blur overlays, glass cards, grayscale panels, and combined filter stacks.

📚 Overlay Effects

Use backdrop-filter on semi-transparent panels to enhance what sits behind them.

Example 1 — Blurred Overlay

Apply a simple blur to the backdrop of a translucent overlay panel.

blur-overlay.html
<style>
  .overlay {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    padding: 20px;
  }
</style>

<div class="overlay">
  <h1>Blurred Background</h1>
  <p>The background behind this overlay is blurred.</p>
</div>
Try It Yourself

How It Works

The panel stays readable, while the colorful backdrop behind it is softened by blur(8px).

Example 2 — Glassmorphism Card

Combine blur, saturation, transparency, and a light border for a modern glass card.

glass-card.css
.glass-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px) saturate(160%);
}
Try It Yourself

How It Works

The card content stays crisp, while blur and saturation change only the backdrop visible through the translucent surface.

🎨 Filter Variations

Experiment with different backdrop effects beyond basic blur.

Example 3 — Grayscale Backdrop

Desaturate the backdrop to draw attention to the panel content.

grayscale-backdrop.css
.panel {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: grayscale(100%);
}
Try It Yourself

How It Works

The rainbow gradient behind the panel becomes grayscale, but the panel itself is not filtered as a whole element.

Example 4 — Combined Backdrop Filters

Stack multiple functions in one declaration for richer modal and overlay effects.

combined-backdrop.css
.modal {
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(10px) brightness(110%) contrast(120%);
}
Try It Yourself

How It Works

Each function changes a different visual property of the backdrop, and they all apply together in one pass.

🧠 How backdrop-filter Works

1

Content sits behind your panel

A photo, gradient, or page section remains visible underneath the overlay element.

Backdrop content
2

The panel uses transparency

An rgba background lets the browser sample the pixels behind the element.

Translucent layer
3

Filter functions modify that sampled backdrop

Blur, brightness, grayscale, and other functions change only the area behind the element.

Backdrop processing
=

Frosted glass UI

Foreground content stays sharp while the backdrop gets the visual effect.

Universal Browser Support

backdrop-filter is supported in all modern browsers. Provide a readable fallback background when blur is unavailable.

Baseline · Modern browsers

Create glass effects in today’s browsers

Chrome, Edge, Safari, Firefox, and Opera support backdrop-filter in current versions.

94% Modern browser support
Google Chrome76+ · Desktop & Mobile
Full support
Mozilla Firefox103+ · Desktop & Mobile
Full support
Apple Safari9+ · macOS & iOS
Full support
Microsoft Edge79+ · Chromium
Full support
Opera63+ · Modern versions
Full support

Fallback behavior

When unsupported, keep a solid or translucent background so content remains readable without blur.

💻
Internet Explorer No support · Use opaque fallback backgrounds
None
backdrop-filter property 94% supported

Bottom line: Use backdrop-filter as progressive enhancement. A readable rgba background should work even when blur is unavailable.

Conclusion

The backdrop-filter property is a powerful CSS tool for modern UI design. It lets you blur, brighten, or restyle the area behind an element while keeping foreground content sharp and readable.

Start with a simple blur() overlay, then experiment with glassmorphism combinations such as blur(12px) saturate(160%) for cards, nav bars, and modal dialogs.

💡 Best Practices

✅ Do

  • Pair backdrop-filter with semi-transparent rgba backgrounds
  • Keep blur values moderate for better performance and readability
  • Provide a readable fallback background color
  • Test overlays on busy and plain backgrounds
  • Use combined filters intentionally for glass UI effects

❌ Don’t

  • Expect the effect to show on fully opaque elements
  • Confuse backdrop-filter with filter
  • Cover large areas with extreme blur on low-end devices without testing
  • Sacrifice text contrast for decorative blur effects
  • Forget accessibility when background details become harder to see

Key Takeaways

Knowledge Unlocked

Five things to remember about backdrop-filter

Use these points when building glass overlays and modal UI.

5
Core concepts
📝02

Filter Functions

blur(), brightness(), etc.

Values
🟩03

Glass UI

Great for overlays.

Use case
👁04

Needs Transparency

Show backdrop through panel.

Rule
🛠05

Not filter

Differs from element filter.

Compare

❓ Frequently Asked Questions

The backdrop-filter property applies visual effects such as blur, brightness, or grayscale to the area behind an element instead of to the element itself.
The initial value is none, which means no backdrop effect is applied.
filter affects the element and its contents. backdrop-filter affects only the pixels visible through the element, which is why it is popular for glass overlays and modals.
The element usually needs some transparency so the backdrop can show through. There must also be visible content behind the element for the effect to be noticeable.
Yes. You can chain functions in one declaration, such as backdrop-filter: blur(8px) saturate(140%);.

Practice in the Live Editor

Open the HTML editor, apply backdrop-filter, and experiment with frosted glass overlays instantly.

HTML Editor →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

5 people found this page helpful