Questions tagged [background-blend-mode]

The background-blend-mode CSS property describes how the element's background images should blend with each other and the element's background color.

The background-blend-mode CSS property describes how the element's background images should blend with each other and the element's background color.

43 questions
17
votes
5 answers

Remove mix-blend-mode from child element

How can I set mix-blend-mode on an element, but not it's children? Setting the children to the default value of normal does not seem to work: http://jsfiddle.net/uoq916Ln/1/
Choylton B. Higginbottom
  • 2,236
  • 3
  • 24
  • 34
15
votes
4 answers

CSS grayscale filter and background-blend-mode at same time?

I'm trying to treat an image the same way it is in a photoshop file - desaturating the image to grayscale, and then applying a color overlay with a multiply blend mode. To this end, I am styling a CSS background image with... .someclass { /*…
Jeff
  • 13,943
  • 11
  • 55
  • 103
12
votes
3 answers

mix-blend-mode is broken by 3D transformations on page

I was fiddling with the mix-blend-mode property. Everything works fine until I add something like transform: perspective(100px) or any other 3d transformation anywhere on the page, then it breaks completely. The transformation is applied but the…
9
votes
4 answers

CSS: A background-blend-mode fallback for iPhone Safari

I'm susccesfully using background-blend-mode on my header here: https://yogrow.co/ecommerce-stack However I've noticed that the background-blend-mode is not working on iPhone. I just get no background color. Here is the CSS I am…
ejntaylor
  • 1,900
  • 1
  • 25
  • 43
7
votes
3 answers

Different result when using mix-blend-mode and background-blend-mode

I've noticed that when using mix-blend-mode the result is different than when using background-blend-mode even though you're using the same blending mode. For example, compare the 2 results below: I've copied in my setup and JSFiddles…
user2019515
  • 4,495
  • 1
  • 29
  • 42
7
votes
3 answers

Multiply mode in CSS?

In Photoshop if you import a JPG image with a white background into a document with a blue background, you can make the white background of the image disappear by setting the image to "multiply" mode. Can I do exactly the same thing with CSS alone?
drake035
  • 3,955
  • 41
  • 119
  • 229
7
votes
1 answer

background-blend-mode with Gradient and Image

currently I am not able to blend a PNG Image with a CSS-rendered Gradient. The Code looks like this: background: linear-gradient(to right, red , blue), url(img/water.png); background-blend-mode: overlay; The Blend Mode is not applied when using a…
Adrian MK
  • 173
  • 1
  • 2
  • 12
5
votes
1 answer

Why don't CSS blend modes work when applied against the document body?

Here's an example of CSS blend modes working against a specified "background" element: body { position: relative; } .background { position: absolute; top: 0; left: 0; height: 100%; width: 100%; background:…
benjaminben
  • 113
  • 2
  • 7
5
votes
1 answer

Is the background-blend-mode not supported in Edge / IE

I am curious why this doesn't work in MS Edge / IE browsers. Is the blend-mode property not available there? I was not able to dig up any information on it. .blended { background-image: url(image.png); background-color: red; …
3
votes
1 answer

How to ignore transparent pixels with background blend mode

See this JSFiddle .goblin { background-image: url("https://gameartpartners.com/wp-content/uploads/edd/2015/06/goblin_featured.png"); width: 600px; height: 500px; background-color: red; background-blend-mode: normal; } .goblin:hover { …
satnam
  • 10,719
  • 5
  • 32
  • 42
3
votes
1 answer

Animate Blend Mode with opacity and transition

I'm looking for a way to change the opacity of background-color-blend-mode like Photoshop. My goal is to animate the opacity of the blend-mode to make it disappear. Any ideas ? #img-esadvalence { background-image:…
Léo Durand
  • 215
  • 1
  • 4
  • 13
2
votes
2 answers

Blend mode with parent DIV

The standard way to blend an image with a colour is to use the following CSS: background-image: url(photo.jpg); background-color: red; background-blend-mode: multiply; I want to do this without using CSS to specify the photo, because the IMG is…
Gaelen
  • 305
  • 5
  • 19
2
votes
1 answer

CSS background blend mode black mask

Using css background-blend-mode I'm trying setup a mask where the first background image white parts apply a black color mask on the last one. Here is a code sample showing where I'm stuck: https://codepen.io/BackNight/pen/YzQgyjo .container { …
Vincent Caggiari
  • 307
  • 2
  • 10
2
votes
1 answer

Transparent background becomes white on image resize

I have an HTML page where I need to render 3 images, one on top of each other.
with the following CSS #preview{ background-image:url(layer0-image), url(layer1-image); …
2
votes
2 answers

What is the order of application of multiple blend modes?

I have following CSS code: div { background: url('image-url'), linear-gradient(gradient), url('image-url-2'); background-blend-mode: blend-mode-1, blend-mode-2; } The position of gradients or url backgrounds can change. I think that should have…
SanJeet Singh
  • 1,291
  • 2
  • 15
  • 28
1
2 3