css filter blur code example
Example 1: filter for css white color
.custom-2 {
filter: brightness(0) invert(1);
}
Example 2: image blur css
filter: blur(8px);
-webkit-filter: blur(8px);
Example 3: how to filter css red
/*Add this to a CSS selector to turn it red*/
filter: grayscale(100%) brightness(40%) sepia(100%) hue-rotate(-50deg) saturate(600%) contrast(0.8);
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);
}
Example 5: css blur background
/* Keyword value */
backdrop-filter: none;
/* URL to SVG filter */
backdrop-filter: url(commonfilters.svg
/* <filter-function> values */
backdrop-filter: blur(2px);
backdrop-filter: brightness(60%);
backdrop-filter: contrast(40%);
backdrop-filter: drop-shadow(4px 4px 10px blue);
backdrop-filter: grayscale(30%);
backdrop-filter: hue-rotate(120deg);
backdrop-filter: invert(70%);
backdrop-filter: opacity(20%);
backdrop-filter: sepia(90%);
backdrop-filter: saturate(80%);
/* Multiple filters */
backdrop-filter: url(filters.svg
/* Global values */
backdrop-filter: inherit;
backdrop-filter: initial;
backdrop-filter: unset;
Example 6: js filter blur Property
document.getElementById("AllBlurANT").style.filter = "blur(5px)";