backdrop-blur
Utilities for blurring pixels behind translucent frosted-glass cards, popovers, and sidebars.
Interactive Iced
Rust · WASM
Examples
Section titled “Examples”use iced::widget::container;use iss::{tw, TwExt};
let sheet = container(body).tw(tw!( "p-5 bg-zinc-900/65 border border-white/15 rounded-2xl backdrop-blur-lg backdrop-saturate-150"));use iss::typed::*;
let style = IssStyle::new() .p(5) .bg(palette::ZINC_900.alpha(0.65)) .rounded_2xl() .backdrop_blur_lg() .backdrop_saturate(150);Class Reference
Section titled “Class Reference”| Tailwind Class | CSS Property / Effect | iss::typed Builder |
|---|---|---|
backdrop-blur-none |
backdrop-filter: blur(0); |
.backdrop_blur_none() |
backdrop-blur-xs / sm / md / lg |
backdrop-filter: blur(4px / 8px / 12px / 16px); |
.backdrop_blur_md() |
backdrop-blur-xl / 2xl / 3xl |
backdrop-filter: blur(24px / 40px / 64px); |
.backdrop_blur_xl() |
backdrop-blur-[10px] |
backdrop-filter: blur(10px); |
.backdrop_blur_px(10) |
Behavior Notes
Section titled “Behavior Notes”- Pair with a translucent fill like
bg-zinc-900/60so the blurred backdrop shows through; requires the defaulttiny-skiaCargo feature.
Related Utilities
Section titled “Related Utilities”backdrop-filter · backdrop-saturate · backdrop-brightness · blur