blur background in css code example
Example 1: how to blur background color in css
background: rgba(255,255,255,0.5);
backdrop-filter: blur(5px);
Example 2: how to do a background blur in css
/* Answer to "blur behind element css" */
/*
This blurs everything behind the element it's applied to
*/
backdrop-filter: blur(10px);
Example 3: image blur css
filter: blur(8px);
-webkit-filter: blur(8px);
Example 4: blur css
.mydiv { filter: grayscale(50%) }
/* Graut alle Bilder um 50% aus und macht sie um 10px unscharf */
img {
filter: grayscale(0.5) blur(10px);
}