Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS background-blend-mode Property

CSS background-blend-mode Property

Example

Blend modes:

div {
    width: 290px;
    height: 69px;
    background-size: 290px 69px;
    background-repeat:no-repeat;
    background-image: linear-gradient(to right, green 0%, white 100%), url('logo.png');
    background-blend-mode: color-dodge;
}

Try it »


Definition and Usage

The background-blend-mode property defines the blend mode of background layers (images and colors).

Default value: normal
Inherited: no
Animatable: no. Check animatable
Version: CSS3
JavaScript syntax: object.style.backgroundBlendMode="screen"

Browser support

The numbers in the table indicate the version number of the first browser that supports this property.

property
background-blend-mode 35.0 Not supported 30.0 7.1 22.0

CSS Syntax



background-blend-mode: normal|multiply|screen|overlay|darken|lighten|color-dodge|saturation|color|luminosity;


Attribute values

Value Description Example
normal Default value. Sets a normal blend mode. Try it »
multiply Multiply blend mode. Try it »
screen Screen blend mode. Try it »
overlay Overlay blend mode. Try it »
darken Darken blend mode. Try it »
lighten Lighten blend mode. Try it »
color-dodge Color-dodge blend mode. Try it »
saturation Saturation blend mode. Try it »
color Color blend mode. Try it »
luminosity Luminosity blend mode. Try it »

Related Articles

CSS Tutorial: CSS Backgrounds