CSS background-blend-mode Property

Use the background-blend-mode property to set the blending mode of each background layer with CSS. You can try to run the following code to implement the background-blend-mode property and set the mode to darken


Live Demo

<!DOCTYPE html>
         #myDIV {
            width: 250px;
            height: 170px;
            background-repeat: no-repeat, repeat;
            background-image: url("https://www.tutorialspoint.com/assets/videotutorials/courses/3d_animation_online_training/380_course_211_image.jpg"),
               url( https://www.tutorialspoint.com/latest/dc.js.png);
            background-blend-mode: darken;
      <h1>Set Blend Mode</h1>
      <div id = "myDIV"></div>

karthikeya Boyini
karthikeya Boyini

I love programming (: That's all I know

Updated on: 25-Jun-2020


Kickstart Your Career

Get certified by completing the course

Get Started