css brightness code example
Example 1: css brightness
/*
In order to use CSS Brightness you need to use the Filter property
You can use a percent or a decimal or an integer
*/
filter: brightness(100%);
/* OR above 100% */
filter: brightness(200%);
Example 2: 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 3: brightness css
brightness(0%) /* Completely black */
brightness(0.4) /* 40% brightness */
brightness(1) /* No effect */
brightness(200%) /* Double brightness */