The background-blend-mode CSS property defines the blending mode of each background layer.
object.style.backgroundBlendMode = "value";
<'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
This is the default attribute which specifies no blending. The blending formula simply selects the source color.
The source color is multiplied by the destination color and replaces the destination.
Multiplies the complements of the backdrop and source color values, then complements the result.
Multiplies or screens the colors, depending on the backdrop color value.
Selects the darker of the backdrop and source colors.
Selects the lighter of the backdrop and source colors.
Brightens the backdrop color to reflect the source color. Painting with black produces no changes.
Darkens the backdrop color to reflect the source color. Painting with white produces no change.
Multiplies or screens the colors, depending on the source color value. The effect is similar to shining a harsh spotlight on the backdrop.
Darkens or lightens the colors, depending on the source color value. The effect is similar to shining a diffused spotlight on the backdrop.
Subtracts the darker of the two constituent colors from the lighter color.
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.
Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color.
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.
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.
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.
© 2021 Osbo Design