Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Fixing resp. pinning the navigation bar to the top of the browser

$
0
0

Please help... I would like to fix the navigation bar on the top of the browser, so when you scroll down the page this navigation bar is staying always on the top of the browser. In this thread http://forums.adobe.com/message/4782547#4782547heathrowe offered this solution:

 

Check  the code for the Stage > compositionReady, as follows, that makes an element 'move' when page scrolls

 

$(window).scroll(function(){

       var element = sym.$("sidebar");

              element

  .stop()

  .animate({"marginTop": ($(window).scrollTop() + 30) + "px"}, "slow" );

})

 

Download sample here

http://www.heathrowe.com/edge/scrolltop3/ScrollTop2.zip

 

It is nice, but the navigation bar is moving, and I would like to have it ALWAYS on the top.

 

Anyone knows how to solve this problem?

 

Thanks in advance...

 

Stanko...


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>