Blur looks effortless. For your device it is anything but. A frosted panel asks the graphics processor to gather, average and redraw thousands of pixels, possibly sixty times a second. Understanding what happens under the hood makes it easy to keep glass smooth, and to know when you have asked for too much.
What the browser does
To draw an element with backdrop-filter: blur(), the browser roughly:
- Renders everything behind the element into an off-screen image.
- Blurs that image.
- Clips it to the element’s shape, including rounded corners.
- Draws the element’s own background, border and content on top.
- Composites the result with the rest of the page.
Steps 1 and 2 are the expensive part, and they repeat whenever anything behind the element changes: on scroll, on animation, on video.
What makes blur expensive
| Factor | Effect on cost |
|---|---|
| Area of the blurred element | Larger area, more pixels to process |
| Blur radius | Bigger radius, more neighbours sampled per pixel |
| Device pixel ratio | A ratio of 3 means nine times the pixels of a ratio of 1 |
| Number of blurred elements | Each is a separate pass |
| How often the backdrop changes | Static is cheap; scrolling or animating is constant work |
| Overlap | Stacked translucent layers are drawn repeatedly, known as overdraw |
Browsers are clever about it. A Gaussian blur can be split into a horizontal and a vertical pass, and large blurs are often computed on a scaled-down copy and stretched back up, since blurry things do not need full resolution. Even so, the work is real.
filter vs backdrop-filter
filter: blur()blurs the element itself. If the element does not change, the browser can blur it once and reuse the result. Moving it withtransformis then nearly free.backdrop-filter: blur()blurs whatever is behind. If that changes, the blur must be redone.
This is why the drifting blobs on this site are fine: each is a plain shape with a fixed filter: blur(), moved by transform. The glass cards on top are the costlier part, because the blobs move behind them.
Seven ways to keep it smooth
1. Keep radii moderate
Past about 20 pixels, extra blur adds cost without much visible change. Use 8 to 16 for most panels.
2. Limit how many
A handful of glass elements is fine. A grid of forty is not. Group items inside one frosted container.
3. Keep them small
A full-screen blurred overlay is the most expensive case. If you need one, make it brief, or use a pre-blurred image.
4. Never animate the blur value
Transitioning from blur(0) to blur(20px) recomputes the effect at a new radius every frame. Fade the panel’s opacity instead; the look is nearly identical.
5. Animate only transform and opacity
These are handled by the compositor without redoing layout or paint. Add will-change: transform to elements that move constantly, and only to those; overusing it wastes memory.
6. Pre-blur what never changes
A decorative background that is always blurred should be a blurred image file, not a live filter. It costs nothing at runtime and compresses to a few kilobytes.
7. Reduce on small screens
Fewer moving parts, smaller radii, or solid fallbacks below a breakpoint. Details in making blur look good on mobile.
Measuring instead of guessing
- Frame rate. Our refresh rate test shows what your device achieves on a page with a moving, blurred wallpaper. Chrome’s rendering tools also have a frame-rate overlay.
- Performance panel. Record while scrolling and look for long frames. Time under “Raster” and “GPU” points to paint-heavy effects.
- Layers panel. Shows how many compositor layers exist and how much memory they use.
- Toggle test. Disable the
backdrop-filterrule in developer tools. If scrolling becomes smooth, you have found the cost. - The hand test. If a phone gets warm on your page, something is working too hard.
Frame budgets
| Refresh rate | Time per frame |
|---|---|
| 60 Hz | 16.7 ms |
| 90 Hz | 11.1 ms |
| 120 Hz | 8.3 ms |
Everything, scripts, layout, paint and blur, must fit in that slice. On a 120 Hz phone the budget is half that of a 60 Hz one, so effects that were fine before may now drop frames.
Battery and heat
A constantly animating blurred background keeps the GPU awake. On a laptop that means fans; on a phone, heat and battery drain. Be kind:
- Slow animations down. Thirty to sixty second loops are calm and cheap.
- Pause animation when the page is hidden or the element is off screen.
- Stop movement under
prefers-reduced-motion.
Browser quirks
- Rounded corners and clipping on blurred elements add work on some engines.
- Very large blur radii can show banding or dark edges near the viewport boundary.
- Nested backdrop filters behave inconsistently; keep glass layers as siblings.
- Software rendering, on machines without GPU acceleration, makes all of this dramatically slower. That is what the solid
@supportsfallback is for; see browser support.
A quick checklist
- Blur radius 8–16px, never animated.
- Under about eight glass elements on desktop, three on mobile.
- Moving things use
transform, withwill-changeonly where needed. - Static blurred backgrounds are image files.
- Tested on a mid-range phone.
- Reduced-motion and fallback styles in place.
The short version
Blur costs in proportion to area, radius, pixel density and how often the background changes. Keep panels few and modest, never animate the blur itself, move things with transforms, and pre-blur anything static. Then measure on a real device. Run the refresh rate test on your phone to see where you stand.
FAQ
In moderation it is fine. Many large or animated blurred elements can cause dropped frames, especially on phones.
No. Animate opacity or transform instead; changing the blur radius each frame is costly.
It helps elements that move, by promoting them to their own layer. It does not make the blur itself cheaper.