A user seeks to replicate a header effect from a reference site: an inverted color scheme with transparency that becomes white on scroll (both desktop and mobile).
Initial Solution:
Dan-From-Ryviu provided CSS code added to theme.liquid after <head> that successfully achieved the basic invert effect on the homepage.
Mobile Hamburger Menu Issue:
The hamburger icon wasn’t affected by the color inversion initially. Multiple CSS solutions were attempted:
BiDeal-Discount suggested targeting the hamburger icon with custom CSS to make it white, then black on scroll
Initial attempts failed when code was added through theme settings
Success achieved when code was added directly to base.css file instead
Current Status:
The solution stopped working after a theme update. BiDeal-Discount identified syntax errors in the user’s base.css file and provided updated CSS targeting the menu drawer container with media queries for mobile screens. The issue remains unresolved as the latest suggested code hasn’t been confirmed working.
Summarized with AI on October 27.
AI used: claude-sonnet-4-5-20250929.
Wow Dan! works amazing.
one thing. The hamburger on mobile is not affected by the invert color, but when scroll down we do see it.
Is it possible to add the effect of invert to white on the hamburger menu on mobile?
It is important when scrolled down it invert back to black .