Okay here is an example of what I'm trying to ask, usatoday navigation bar.
I am using bootstrap affix. here is my code
<div class="header"> <div class="header-1"> <h1>this is some logo</h1> </div> <div class="header-2"> <h3>this is some heading</h3> </div> </div> <div class="content" style="height:2500px;"> </div> <div class="footer"> this is a footer </div>
Javascript
$('.header-2').affix({ });
how can I get div header-2 snap at the top (when there is scrolling, and div header-2 just reaches the top position) from the site I mentioned earlier?
I would like to see header-1 and header-2 , but some scrolls should hide header-1 and insert header-2 at the very top.
thanks
source share