I found this on the internet lately and trying to understand how I can do something similar with webflow. Goal is to have a specific .png image with higher z-index over a regular image and make only the area created by the overlaying .png image invert the colors of the image in the lower z-index.
In the example link it is the image of the letter “W” that creates the inverted effect for the image under it.
You can do that with Background Clipping. You’ll have one version of the image in the background, then over it you’ll have an element covering it with the b&w picture, and your objects you want to animate. You’ll use CSS background clipping so the bg clips at the objects edges, and you’ll be able to move the objects and keep the effect.
Yes. And I may have given you an incorrect answer.
Because I’m trying to animate it right now, and I can’t. Seems when it gets the clipping it’s baked in what the browser renders and it’'s no more animatable. I tried adding parents and animating them but no.
But there are many techniques I think to achieve this.
Yes. Here is a stylesheet to use on your page, with all the blending modes. That’s the one I use on my blog. You add it inside a custom code element in the page and then you add the classmnames to elements in the designer (mbm-name)
You can experiment with all the blend modes. And you can can pile them up. If you put difference on the bg and the foreground object, the clipped part will be normal and the bg inverted…