

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to create image filters with CSS
You can try to run the following code to create image filters such as blur, contrast, brightness with CSS −
Example
<!DOCTYPE html> <html> <head> <style> img { height: auto; float: left; } .contrast { -webkit-filter: contrast(180%); filter: contrast(180%); } .brightness { -webkit-filter: brightness(250%); filter: brightness(250%); } .blur { -webkit-filter: blur(4px); filter: blur(4px); } </style> </head> <body> <img src = "https://www.tutorialspoint.com/assets/videos/courses/19/images/course_19_image.png" alt = "Animation Training" width = "200" height = "200"> <img class = "contrast" src = "https://www.tutorialspoint.com/assets/videos/courses/19/images/course_19_image.png" alt = "Animation Training" width = "200" height = "200"> <img class = "brightness" src = "https://www.tutorialspoint.com/assets/videos/courses/19/images/course_19_image.png" alt = "Animation Training" width = "200" height = "200"> <img class="blur" src = "https://www.tutorialspoint.com/assets/videos/courses/19/images/course_19_image.png alt = "Animation Training" width = "200" height = "200"> </body> </html>
- Related Questions & Answers
- Create blurred picture or text with CSS Filters
- Create rounded image with CSS
- Create circled image with CSS
- Create thumbnail image with CSS
- How to create an image gallery with CSS
- How to create a Hero Image with CSS?
- How to create an avatar image with CSS?
- How to create a responsive image with CSS?
- How to create a sticky image with CSS?
- Achieve Glow Effect with CSS Filters
- How to create a responsive image gallery with CSS
- How to create a blurry background image with CSS?
- How to create image overlay hover effect with CSS?
- Create a transparent image with CSS
- Create a mirror image with CSS
Advertisements