HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> img{ width: 250px; height: 125px; } button{ display: block; } </style> </head> <body> <h1>CSS filter Property</h1> <img src="car-left.png"> <button onclick="myFunction()">Click Me</button> <script> var x = document.getElementsByTagName("img")[0]; function myFunction(){ x.style.filter = "blur(5px)"; x.style.WebkitFilter = "blur(5px)"; } </script> <p><strong>Note</strong>: Click on the button to blur the image.</p> </body> </html>
OUTPUT
×

Save as Private