My website has a horizontal navigation at the top with a header image above it. I am using fullPage.js for my layout, and the default setting keeps the navbar on top at all times. However, I want the header image to only appear on the first section and be hidden on all other sections. I was considering a jQuery solution where the header margin-top would change to [header_img_height] when moving through each section, except for the first one where it should return to margin-top: 0px.
Current markup for my header:
<header>
<div id="header_banner">
</div>
<ul id="nav_cont">
<li data-menuanchor="section1">
<a id="home_hover" href="#section1">Home</a>
</li>
<li data-menuanchor="section2">
<a id="about_hover" href="#section2/1">About</a>
</li>
<li data-menuanchor="section3">
<a id="gallery_hover" href="#section3">Gallery</a>
</li>
<li data-menuanchor="section4">
<a id="literature_hover" href="#section4">Literature</a>
</li>
<li data-menuanchor="section5">
<a id="contact_hover" href="#section5">Contact</a>
</li>
</ul>
</header>
<div id="fullpage">
<div class="section" id="Home">
<div class="container"></div>
</div>
.
.
.
other sections
This is my desired outcome: