HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> div{ width: 275px; background:#0080ff; } img{ width: 250px; height: 125px; } </style> </head> <body> <h1>CSS mix-blend-mode Property</h1> <div> <img src="car-left.png"> </div> <button onclick="myFunction()">Click Me</button> <script> var x = document.getElementsByTagName("img")[0]; function myFunction(){ x.style.mixBlendMode = "multiply"; } </script> <p><strong>Note</strong>: Click on the button change the 'mix-blend-mode' from normal to multiply.</p> </body> </html>
OUTPUT
×

Save as Private