background-blend-mode

The background-blend-mode CSS property sets how an element's background images should blend with each other and with the element's background color.

Blending modes should be defined in the same order as the background-image property. If the blending modes' and background images' list lengths are not equal, it will be repeated and/or truncated until lengths match.

Syntax

/* One value */
background-blend-mode: normal;

/* Two values, one per background */
background-blend-mode: darken, luminosity;

/* Global values */
background-blend-mode: initial;
background-blend-mode: inherit;
background-blend-mode: unset;

Values

<blend-mode>
The blending mode to be applied. There can be several values, separated by commas.

Formal definition

Initial valuenormal
Applies toAll elements. In SVG, it applies to container elements, graphics elements, and graphics referencing elements.. It also applies to ::first-letter and ::first-line.
Inheritedno
Computed valueas specified
Animation typediscrete

Formal syntax

<blend-mode>#

where
<blend-mode> = normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity

Examples

Basic example

.item {
    width: 300px;
    height: 300px;
    background: url('image1.png'),url('image2.png');
    background-blend-mode: screen;
}

Try out different blend modes

Specifications

Specification Status Comment
Compositing and Blending Level 1
The definition of 'background-blend-mode' in that specification.
Candidate Recommendation Initial definition

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
background-blend-modeChrome Full support 35Edge Full support 79Firefox Full support 30IE No support NoOpera Full support 22Safari Full support 8WebView Android Full support ≤37Chrome Android Full support 35Firefox Android Full support 30Opera Android Full support 22Safari iOS Full support 8Samsung Internet Android Full support 3.0

Legend

Full support  
Full support
No support  
No support

See also