Streaming live at 10am (PST)

Mix-blend-mode not working


I’m trying to make my fixed menu (on the L and R) invert colours when it scrolls over over sections and their images. I have tried using custom code:

But it’s not working.

I’m not sure what I’m doing wrong here?

Here is my site Read-Only:
(how to share your site Read-Only link)

In order for the mix-blend-mode style to work, you need to have a background color set for your main container element—even if you’re using an image over top of it.

Once I set the background color of the .d-product-grid div to white and applied the code within an embed element, I was able to see the effect:


For reference, here’s the code I added to your HTML Embed element:


Amazing, thank you so much Mike! It’s working :slight_smile:

Hello, I am trying to do a similar thing. I have an embedded SVG in my Nav that I’ve applied mix-blend-mode: difference to. I have the background of the body, and other parent elements set to white. Can’t figure out what the blend mode isn’t working:

You need to make the change on the parent container, not the embed element. Moving the mix-blend-mode: difference to the navbar class enables the effect:

Thanks so much, I could have sworn I tried that…but it did work!