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
When i was a little kid, I was really scared of the dark. But then I came to understand, dark just means the absence of photons in the visible wavelength -- 400 to 700 nanometers. Then i thought, well, its really silly to be afraid of a lack of photons. Then i wasn't afraid of the dark anymore after that.
Elon Musk
Random CSS Property

scroll-padding-block-end

The scroll-padding-block-end property defines offsets for the end edge in the block dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or to put more breathing room between a targeted element and the edges of the scrollport.
scroll-padding-block-end css reference