Blending Modes

Blending Modes

I am Javier, a guy starting in this world of web development. My background is the filmmaking business, especially the video edition. I am writing this article to help guys like me that are learning web development or everyone that considers the design or the “look” of a webpage one of their passions. Back in my days of video-editor one cool thing that I found in the software video and design editors was the ability to blend two images or more in order to display better. So if you just put an image in a given color background you can start to discover how the different values can make interesting looks.


Blending Modes is a CSS data type that handles how elements overlap, it takes the color of the layers or elements stacked, mix them and create a new combination or output. You can play with blend modes with two CSS properties: and . The first one is used with background images and the values work with the images that are just inside the background property of the element. This would be how it looks in the code:


<background-blend-mode>

In the HTML:

<div class="parent">
<h1 class="street">Blend Modes </h1>
</div>

In the css

.parent {
background: url("assets/textureBricks.jpg");
height: 600px;
}
.child {
mix-blend-mode: screen;
}







These ones just play with RGB values of both layers





Multiply

Dog
Dog

Screen

Dog
Dog

From here you will see in the left part, the image that goes below,
and will be blended with my picture, which is on top with the property mix-blend-mode.





Overlay

Dog
Dog Dog
Dog Dog

Hard Light

Dog
Dog
Dog Dog

Soft Light

Dog
Dog
Dog Dog

Color Dodge

Dog
Dog
Dog Dog

Color Burn

Dog
Dog
Dog Dog

Darken

Dog
Dog
Dog Dog

Lighten

Dog
Dog
Dog Dog

Difference

Dog
Dog
Dog Dog

Exclusion

Dog
Dog
Dog Dog

Exclusion

Dog
Dog
Dog Dog

Hue, saturation and luminosity blend modes

Hue

Dog

The degrade now is on top and the picture below

Saturation

Dog

The degrade now is on top and the picture below

Color

Dog

The degrade now is on top and the picture below

Luminosity

Dog

The degrade now is on top and the picture below

logo
logo
logo