Change logo to black on scroll

Change logo to black on scroll

Luxurymrkt
Globetrotter
771 2 164

Hi,

 

when I scroll over white areas of the website I want the logo and drawer icon menu to change the black.

 

my site is https://miintstudios.com/collections/frontpage

 

52B0133E-4D3C-44AB-B2FD-A1ED1BB9C7C4.jpeg

BE25F157-70A5-464F-A37A-2D2D44626D76.jpeg

Thank You | mike
Replies 4 (4)

AnneLuo
Shopify Partner
1370 238 279

You can try this code by following these steps:
Step 1: Go to the online store ->Theme ->Edit Code.
Step 2: Find the theme.liquid file and add the following code before the </head> tag

<style>
.scrolled-past-header .header__heading-logo.motion-reduce,
.scrolled-past-header #Capa_1 {
  filter: invert(1);
}
</style>

Result:

AnneLuo_0-1737425564647.png


Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee

Luxurymrkt
Globetrotter
771 2 164

No thank you. I want it to change to black when over white sections only. not when it goes past the header.

Thank You | mike

EstherBui
Trailblazer
276 39 44

Hi Luxurymrkt

- You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file

.scrolled-past-header .header__heading-logo.motion-reduce, .scrolled-past-header #Capa_1 {
    filter: invert(1);
}

 

Result: 

EstherBui_0-1737426358348.png



Best,
Esther

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Luxurymrkt
Globetrotter
771 2 164

Thank you,  but I want it to change to black only on white sections, not when past header

Thank You | mike