I want to fade the edges of an element that has a transparent background and backdrop-filter: blur()
on it.
Normally, when using the backdrop filter the edges are crisp and straight.
So basically, I want less blur towards the edges.
.blur,
.behind-blur {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.blur {
backdrop-filter: blur(1px);
}
.behind-blur {
width: 100px;
}
<div class="behind-blur">le le le le le le le le le le le le le le le le le le le le le le le le</div>
<div class="blur">la la la la la</div>