Background Blend Mode = Photoshop in your browser.

A CSS property that everyone should know about.

Not every blend mode has been translated from PhotoShop into CSS: but there are a few main ones that we can use including multiply, screen, overlay, darken,lighten, color-dodge,color-burn, hard-light,soft-light, difference and exclusion, The first three multiply, screen, overlay, are the most effective and have the largest results.

Multiply Mode

It ignores white and makes things darker. If you are old enough, think of the effect of sandwiching two 35mm slides together and trying to look through the joined result. Light moves easily through overlapped areas that are clear or bright, but dark tones reinforce each other.

As an introduction, lets make a quick HTML build up. In HTML the code would be:

Now lets add some CSS.

Our result looks like this!

Pretty cool stuff.

Overlay Mode

A balance between screen and multiply: it ignores mid-tones, making the blended result lighter and darker at the same time. In other words, it increases contrast.

Now lets replace our old CSS with the following CSS:

Our result looks like this!

Even cooler.

Now for the cream of the crop.

Screen Mode

It ignores black, making things lighter. Imagine two projectors splashing images onto the same screen. The combined light pattern cannot make the result darker, and lighter tones will appear washed out.

Add some new HTML code:

Then lets replace our old CSS with the following CSS:

Our result looks like this!

These are a few simple examples of background-blend-mode. Go replace the ones we used with the others in the list and share your results!

Web Developer and Instructor | | @dannypaton_

Web Developer and Instructor | | @dannypaton_