CSS Image Filters

Please Share On:

In this tutorial, I am going to show you how can you use image filters.

CSS Image Filters are used to add visual effects like blur, brightness, saturation, contrast, and so on. Image filters are used a method called. For example: blur(), brightness() etc.

Let me tell you in advance, you can use multiple image filter effects by separating each with a space.

Syntax:

filter : blur();
filter : brightness();
filter : contrast();
filter : drop-shadow;
filter : grayscale();
filter : hue-rotate();
filter : invert();
filter : opacity();
filter : saturate();
filter : sepia();
filter : url();

How to use it?

Image Filter FunctionsSyntaxTry It
blur()filter : blur(px);Try It
brightness()filter : brightness(%);Try It
contrast()filter : contrast(%);Try It
drop-shadow()filter : drop-shadow(h-shadow(px) v-shadow(px) blur color);Try It
grayscale()filter : grayscale(%);Try It
hue-rotate()filter : hue-rotate(deg);Try It
invert()filter : invert(%);Try It
opacity()filter : opacity(%);Try It
saturate()filter : saturate(%);Try It
sepia()filter : sepia(%);Try It
url()filter : url(svg-url#element-id);Try It




You may be interested in the following topics:

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright @2023. All Right Reserved.


Social media & sharing icons powered by UltimatelySocial