Hi, I would like to add a background color to the header menu navbar when the user scrolls to the first section after hero image on a portfolio item. I tried with css and js but could do it. (logo en burger menu are confused with the content sometimes)
Hi, I would like to add a background color to the header menu navbar when the user scrolls to the first section after hero image on a portfolio item. I tried with css and js but could do it. (logo en burger menu are confused with the content sometimes)
Hello Juan,
Setting the menu background color is relatively easy with CSS
header.classic-menu {
background-color: #000 !important;
}
the difficulty is detecting when the scroll is past the hero section.
in /js/scripts.js you have a function function HeroSection() you can modify to achieve this.
Thank you.
Clapat Support
https://www.clapat.com/
Review Envato Item Support Policy