HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> #point{ padding: 25px; height: 240px; width:240px; margin-bottom:15px; background: url(husky.jpg); background-color: #ff4d4d; background-repeat: no-repeat; background-blend-mode: normal; } </style> </head> <body> <h1>CSS background-blend-mode Property</h1> <div id="point"></div> <button onclick="myFunction()">Click Me</button> <script> var x = document.getElementById("point"); function myFunction(){ x.style.backgroundBlendMode = "multiply" } </script> <p><strong>Note</strong>: Click on the button to change the 'background-blend-mode' from normal to multiply.</p> </body> </html>
OUTPUT
×

Save as Private