Menu Riverview Church

BACKGROUND-BLEND-MODE

The background-blend-mode property defines the blending mode of each background layer.

SYNTAX

CSS

background-blend-mode: value;

JS

object.style.backgroundBlendMode = "value";

VALUES

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

This is the default attribute which specifies no blending. The blending formula simply selects the source color.

multiply

The source color is multiplied by the destination color and replaces the destination.

screen

Multiplies the complements of the backdrop and source color values, then complements the result.

overlay

Multiplies or screens the colors, depending on the backdrop color value.

darken

Selects the darker of the backdrop and source colors.

lighten

Selects the lighter of the backdrop and source colors.

color-dodge

Brightens the backdrop color to reflect the source color. Painting with black produces no changes.

color-burn

Darkens the backdrop color to reflect the source color. Painting with white produces no change.

hard-light

Multiplies or screens the colors, depending on the source color value. The effect is similar to shining a harsh spotlight on the backdrop.

soft-light

Darkens or lightens the colors, depending on the source color value. The effect is similar to shining a diffused spotlight on the backdrop.

difference

Subtracts the darker of the two constituent colors from the lighter color.

exclusion

Produces an effect similar to that of the Difference mode but lower in contrast. Painting with white inverts the backdrop color; painting with black produces no change.

hue

Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color.

saturation

Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color. Painting with this mode in an area of the backdrop that is a pure gray (no saturation) produces no change.

color

Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color. This preserves the gray levels of the backdrop and is useful for coloring monochrome images or tinting color images.

luminosity

Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color. This produces an inverse effect to that of the Color mode.

INITIAL

normal

EXAMPLES

COLOR

COLOR-BURN

COLOR-DODGE

DARKEN

DIFFERENCE

EXCLUSION

HARD-LIGHT

HUE

LIGHTEN

LUMINOSITY

MULTIPLY

NORMAL

OVERLAY

SATURATION

SCREEN

SOFT-LIGHT

JS

INTERNAL

mix-blend-mode

EXTERNAL

World Wide Web Consortium (W3C)