CSS backgroundblendmode Property (original) (raw)

CSS background-blend-mode Property

Last Updated : 23 Aug, 2024

The **background-blend-mode Property defines how the element's background image should blend with each other and with the element's background-color.

**Syntax:

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

**Default Value:

**Property:
**Normal: This is the default value. It sets the blending mode to normal.

background-blend-mode: normal;

background-blend-mode Property

`

**Multiply: It sets the blending mode to multiply. This leads to a darker image than before.

background-blend-mode: multiply;

background-blend-mode Property

`

****Screen:**It sets the blending mode to screen. In this mode both image and color is inverted, multiplied and then inverted. again.

background-blend-mode: screen;

background-blend-mode Property

`

**Darken: It sets the blending mode to darken. In this mode if the background-image is darker than the background-color then the image is replaced, otherwise, it is left as it was.

background-blend-mode: darken;

background-blend-mode Property

`

**Lighten: It sets the blending mode to lighten. In this mode if the background-image is lighter than the background-color then the image is replaced, otherwise, it is left as it was.

background-blend-mode: lighten;

background-blend-mode Property

`

**Color-Dodge: It sets the blending mode to color-dodge. In this mode, the background-color is divided by the inverse of the background-image. This is very similar to the screen blend mode.

background-blend-mode: color-dodge;

background-blend-mode Property

`

**Saturation: It sets the blending mode to lighten. This mode keeps the saturation of the background-image whilst mixing the hue and luminosity of the background color.

background-blend-mode: saturation;

background-blend-mode Property

`

**Difference: It sets the blending mode to difference. This mode is the result by subtracting the darker color of the background-image and the background-color from the lightest one. Often the image will have very high contrast.

background-blend-mode: difference;

background-blend-mode Property

`

**Luminosity: It sets the blending mode to luminosity. In this mode, the luminosity of the top color is preserved whilst using the saturation and hue of the background-color.

background-blend-mode: luminosity;

background-blend-mode Property

`

**Overlay: It sets the blending mode to overlay. In this mode, the background-color is mixed with the background-image to reflect the lightness or darkness of the backdrop.

background-blend-mode: Overlay;

background-blend-mode Property

`

**Supported Browsers: The browser supported by _background-blend-mode property are listed below: