-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed
Labels
Description
The menu doesn't stay in place at the top of the site, but rather disappears when you scroll down. Still, there is an offset for the slides, but the menu isn't there. If you set the visibilty of the sections to hidden you can see that the menu is still there, it's just not being displayed. Example:
<ul id="menu">
<li><a href="#firstPage">firstPage</a></li>
<li><a href="#secondPage">secondPage</a></li>
<li><a href="#thirdPage">thirdPage</a></li>
</ul>
<div id="fullpage">
<div class="section">Some section</div>
<div class="section">Some section</div>
<div class="section">Some section</div>
</div>
$(document).ready(function() {
$('#fullpage').fullpage({
scrollingSpeed: 300,
menu: '#menu',
anchors:['firstPage', 'secondPage', 'thirdPage']
});
});
.section{ background-color: olive; } .section:nth-child(2n){ background-color: orange; }
That way, the menu stays in place, but is overlaid when scrolling down.