background-blend-mode

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

心不动则不痛 提交于 2020-05-11 04:15:12
问题 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 { /* grayscale */ -webkit-filter: grayscale(1); filter: gray; filter: grayscale(1); filter: url(desaturate.svg#greyscale); /* multiply */ background-color: rgba(190, 50, 50, 0.65); background-blend-mode: multiply; } The problem with this is that the grayscale

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

和自甴很熟 提交于 2020-01-24 03:28:05
问题 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 blend mode is gone. I tested on chrome and firefox and on linux and windows and it's the same everywhere, however on a different computer it worked fine (I don't remember what version of chrome it had and was running ubuntu). Is that something that

CSS background image screen opacity and saturation with linear gradient [duplicate]

落爺英雄遲暮 提交于 2019-12-20 05:45:35
问题 This question already has answers here : Can I set background image and opacity in the same property? (14 answers) How to apply a CSS filter to a background image (15 answers) Can I set an opacity only to the background image of a div? (8 answers) Closed last month . So i have a landing page design with includes an image, a gradient and a full page grid. I want to have the following: A background to my landing page (a grid) that consists of a linear-gradient(to right, color1, color2) that is

CSS background-blend-mode not working in chrome mobile with viewport meta tag

♀尐吖头ヾ 提交于 2019-12-11 15:25:34
问题 Most blend modes do not work in chrome mobile - I have been able to get 'screen', and 'overlay' to work, but not ones like multiply, darken, exclusion, etc. Does anyone know if this has to do with perhaps the s9's gpu architecture being incompatible here? Code pen Here is a simple example with screen shots: <style> .blended-gradient{ background-blend-mode:exclusion, normal; background:linear-gradient(black 0, white 50%, black 100%), radial-gradient(black 0, white 70%, black 70.1%); height

Remove mix-blend-mode from child element

故事扮演 提交于 2019-11-30 09:12:38
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/ someone commented that the the whole block is rendered with the effect and that is why you're having the issue. I am able to accomplish what you're are trying to do by removing the h1 from the block, position absolute, and a z-index of 1. here is a jsfiddle to show the effect. html <div class="bkdg"> <h1>Header</h1> <div class="blend"> </div> </div> css .blend { background-color: green; mix-blend-mode: multiply; width:

Remove mix-blend-mode from child element

浪尽此生 提交于 2019-11-29 13:38:55
问题 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/ 回答1: someone commented that the the whole block is rendered with the effect and that is why you're having the issue. I am able to accomplish what you're are trying to do by removing the h1 from the block, position absolute, and a z-index of 1. here is a jsfiddle to show the effect. html <div class="bkdg"> <h1>Header</h1>