jQuery - 菜单滚动项效果示例 - 它叫什么?
Does anyone know what the jQuery effect on this page is called? http://crushlovely.com/
As you scroll down the page, a different left menu item selects based on your scroll location.
I need to know what the effect is called or how to re-create it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信您正在寻找类似于此的教程
http://www.distractedbysquirrels.com/blog/one-page-layout-with-fixed-navigation-and-jquery/
我将其称为“固定”菜单/导航”,或者有时人们称之为“粘性菜单/导航”。通过使用position:fixed CSS 并从那里开始工作,它很容易完成。
希望有帮助
I believe your looking for a tutorial along the lines of this
http://www.distractedbysquirrels.com/blog/one-page-layout-with-fixed-navigation-and-jquery/
I would call it a 'fixed menu/nav', or sometimes people call it a 'sticky menu/nav'. Its done pretty easily by using the position:fixed CSS and working on from there.
Hope that helps
你可以做这样的事情:
获取滚动条的位置,如果该距离大于 div 顶部距离,你可以添加激活的类,
如返回顶部按钮,类似这样:
这样你就可以很容易地创建该布局,
只需记住针对 javascript 或 jQuery 更正此代码,就可以了
You can do something like this:
get the position of the scrollbar and if that distance is bigger then the div top distance you add the class activated
like back to top buttons, something like that:
with that you can create that layout pretty easy,
just remember to correct this code for javascript or jQuery and you'l be fine