Recently, I implemented the .blur
class on the body
element to create a blurred effect for the entire website.
CSS
.blur {
filter: blur(1px);
filter: url("blur.svg#gaussian_blur");
-webkit-filter: blur(1px);
-o-filter: blur(2px);
}
HTML
<body class="blur">
...
<div class="mustBeClear"></div> <!-- located somewhere in the page-->
...
</body>
The question arises on how to maintain the clarity of elements with the .mustBeClear
class while applying the overall blur effect.
I attempted the following:
.mustBeClear{
filter: none;
-webkit-filter: none;
-o-filter: none;
}
Unfortunately, this solution did not yield the desired outcome!