An effect that I find interesting and quite useful, is to show the menu when it is scrolled up, and hide it when it goes down, although, downwards I can easily hide it with a display: none
, using the class is-stuck is-at-top
, of the sticky function of Foundation, however I do not know if this can be achieved in the same way activating it with a display: block
, when scrolling up, the menu more or less goes like this
<div data-sticky-container>
<div class="top-bar" data-sticky data-options="marginTop:0;" style="width:100%;">
<div class="top-bar-left">
<ul class="menu">
<li><button class="hollow button border black-text" data-toggle="offCanvas"><i class="fi-list"></i></button></li>
<li class="black-text"><%= link_to "Inicio", root_path, class: "bold" %></li>
</ul>
</div>
<div class="top-bar-right">
<ul class="menu show-for-large">
<li><%= link_to new_enterprise_registration_path, class: "button bold" do %><i class="fi-torsos-all"></i> Empresas<% end %></li>
</ul>
</div>
</div>
</div>