[英]jQuery Smooth Scroll + Navigation Update
I know there is a plugin like this, but I'm not sure exactly what it's called so I can't seem to find it. 我知道有一个这样的插件,但是我不确定它到底叫什么,所以我似乎找不到。 Basically, I'm looking to have a smooth scroll single website with a fixed navbar at the top and the current page updates in the navbar as you scroll to that section.
基本上,我希望拥有一个平滑滚动的单个网站,顶部具有固定的导航栏,并且当您滚动到该部分时,导航栏中的当前页面会更新。
Thanks! 谢谢!
Are you referring to something like this? 你指的是这样的东西吗?
http://css-tricks.com/examples/SmoothPageScroll/ http://css-tricks.com/examples/SmoothPageScroll/
Check this out: 看一下这个:
http://css-tricks.com/snippets/jquery/smooth-scrolling/ http://css-tricks.com/snippets/jquery/smooth-scrolling/
Or you may want to check out Twitter Bootstrap: 或者您可能想查看Twitter Bootstrap:
Observe how the links on the side changes as you scroll down on this page ( http://getbootstrap.com/javascript/ or http://www.theredspace.com/ ) 当您向下滚动此页面( http://getbootstrap.com/javascript/或http://www.theredspace.com/ )时,请观察侧面的链接如何变化。
For more information, check out: http://getbootstrap.com/ 有关更多信息,请访问: http : //getbootstrap.com/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.