Tuesday 15 April 2014

jquery - On scroll navigation -


I searched for Stackoverflow lot before posting the answer.

So I want an extra navigation that will be displayed only when you scroll down..and by the end of the page.

When you scroll up, you live there, but as you approach the top, it will hide and show the main static navigation.

Here's an example of navigation.

 $ (window) .bind ("scroll" , Function () {var scrollPos = $ (window) .scrollTop (); if (scrollPos & gt; = 100 & amp; !! ('# hidden- menu'). Haclus ('twenty')) {$ (' # Hidden menu ') AddClass (' vis ');} if (scrollbox <= 100 & amp; $ (' # hidden-menu '). Haclus (' twenty ')) {$ (' # hidden- Menu '). RemoveClass (' vis');}};    

No comments:

Post a Comment