CSS Filters
CSS Filters
The CSS filter property lets you apply graphical effects like blurring or drop shadow or grayscale or sepia to an element. Filters are commonly used to adjust the rendering of images, backgrounds, and borders.
Drop-shadow Function
drop-shadow(w h b c) creates a shadow effect that extends beyond an image for the width w and height h with blur b and color c.
Syntax:-
Its syntax is:-
< style >
element{
filter:drop-shadow(h-shadow v-shadow blur spread color);
}
< /style >
Further Explanation:-
Filter | Description |
---|---|
drop-shadow(h-shadow v-shadow blur spread color) | Applies a drop shadow effect to the image. |