background-blend-mode
Quick Summary for 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.
Code Usage for background-blend-mode
/* 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: revert; background-blend-mode: unset; 
More Details for background-blend-mode

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: revert; 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
Compositing and Blending Level 2 # background-blend-mode

See also

<blend-mode> mix-blend-mode Select your preferred language English (US)DeutschEspañolFrançais日本語Português (do Brasil)Русский中文 (简体) Change language

No Items Found.

Add Comment
Type in a Nick Name here
 
Other Categories in CSS
css
Search CSS
Search CSS by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote

is backupper a word?
anytrans
Random CSS Property

<length>

The <length> CSS data type represents a distance value. Lengths can be used in numerous CSS properties, such as width, height, margin, padding, border-width, font-size, and text-shadow.
length#vmax css reference