
Shobha
The best way to predict the future is to invent it
How does the filter property work in CSS?
The filter property in CSS is used to apply visual transformations to an element, such as blurring, adjusting brightness, or applying color effects. It allows you to modify the appearance of elements like images, backgrounds, and text without altering the original content. For example,
img {
filter: blur(5px);
}
In this example, a blur effect of 5 pixels is applied to the image, making it appear out of focus.
img {
filter: blur(5px);
}
In this example, a blur effect of 5 pixels is applied to the image, making it appear out of focus.