Filters

Usage

A filter effect is a graphical operation
applied to an image

Filters #Play with filters


A filter effect is a graphical operation that is applied to an image or other element (efor example text) as it is drawn into the document.

CSS filters are commonly used to adjust the rendering of an image, a background, or a border.

There are ten primitive filter effects in CSS, and a filter is applied to an element by passing a filter function to the filter property. Example of usage:

.demo-block {
    background: url(images/sunset_birds.jpg);
    background-size: cover;
    filter: blur(10px); /* filter function */
}

The ten filter functions are (with parameters examples):

We can apply multiple filters and also can use SVG filters. For example: