While creating my new website I stumbled upon this issue:
I want the everything that is behind the navbar of my website to be blurred. This has to be dynamic, meaning that if the user scrolls the content that gets under the navbar gets blurred. You can view the effect on the Apple homepage, with their navbar.
Here's what I've tried so far:
.div {
filter: blur(10px);
}
<div>
-code of navbar-
</div>
However, this resulted in the navbar being blurred, not what is beneath the navbar.
Is this even possible with pure CSS?