A user seeks to create a transparent header that turns white on scroll for their Shopify store using Dawn theme version 12.0.0.
Solution Provided:
Custom CSS code targets the sticky-header element to set transparent background initially and white background when active/scrolling
JavaScript code (added to theme.liquid file above </body> tag) handles the scroll detection and applies the ‘active’ class
Screenshots demonstrate where to paste code in Shopify’s theme editor
Key Modifications:
To apply only on homepage: wrap JavaScript in Liquid conditional {% if template.name == 'index' %}
Users can adjust icon colors and other styling within the provided CSS
Current Status:
Multiple users confirmed the solution works successfully. A later user on Dawn 15 reports it doesn’t work and seeks a solution similar to fearofgod.com (transparent on homepage, opaque on other pages). Another contributor shares YouTube tutorial links as alternative resources. One user asks how to ensure the sticky menu background becomes white on scroll, suggesting potential refinement needed.
Summarized with AI on November 3.
AI used: claude-sonnet-4-5-20250929.
Hi! I want to make my header background transparent, and then make it white once you start scrolling down. I already tried every single solution there is to find on this forum, and no line of code has worked on my page.
Hi, I’ve tried your solution and it doesn’t work, I was wondering if this solution only works for an older version or something? I’m using Dawn 15. I’m trying to get a transparent header like the fearofgod.com website, where it’s transparent on the homepage but appears once you’ve scrolled. On their other pages, it’s opaque and follows you as you scroll. I’ve added the CSS and the Javascript that you reccomended to Ilhanakin. Thank you in advance
Hello MRamzan, thanks for the video and the codes worked perfectly! But how to make the sticky menu background be white colour when scroll down? Thank you!