I was looking for a property mix-blend-mode
. Everything works fine until I add something like transform: perspective(100px)
or any other 3D transformations anywhere on the page, and then it completely breaks. The conversion is applied, but there is no blending mode.
I tested on chrome and firefox, as well as on linux and windows, and it was the same everywhere, but it worked fine on another computer (I don’t remember which version of chrome it had and ran ubuntu).
Is this something that can be fixed with CSS, or is it just a hardware / GPU problem?
I put background-blend-mode
in tags because the tag mix-blend-mode
does not exist yet, however this property strangely works perfectly fine and is not interrupted by transformations.
Here is the code of what I'm trying to achieve:
http://codepen.io/vnenkpet/pen/avWvRg
Lightning should not have a black background blinking with it, but should blend smoothly with the background of the page.
EDIT:
I just found out that it really works in Firefox. Is this therefore a chrome mistake? As far as I know, 3D Transforms should not interrupt the blending mode ...
source
share