
CSS filter property is used to apply effects to an HTML element. Filter is CSS3 property, which is commonly used to render images, background.
filter: none|grayscale()|blur()|brightness()|contrast()|drop-shadow()|hue-rotate()|invert()|opacity()|saturate()|sepia();
CSS Filter property, converts the image in to grayscale, default value is 0%, value of 100% is completely grayscale.
Example 1: CSS filter grayscale() 1
CSS Filter property, converts the image in to blur, blur value can be given in piexel, default value is 0
Example 2: CSS filter blur() 1
CSS Filter property, converts the image in to brightness, default value is 100%, value of 0 is completely dark.
Example 3: CSS filter brightness()
The CSS contrast() function, is use to adjust the constrast level of an image, its value can be specified in number or in percentage like 1 or 100%, 1.5 or 150%, 2 or 200% so no. Negative values are not allowed, default value is 1 or 100%.
Example 4: CSS filter contrast()
The CSS3 drop-shadow() function, is used to apply a drop shadow effect to an element. Syntax: filter: drop-shadow(offset-x offset-y blur-radius color);
Example 5: CSS filter drop-shadow()
The CSS3 hue-rotate() function, is used to apply a color rotation to an image. Syntax: filter: hue-rotate(angle);
Example 6: CSS filter hue-rotate()
Ad: