以下是一个示例:https://www.waveapps.com/pro-network/
当您开始滚动时,导航栏将消失然后重新出现。我怎么能实现这样的目标?
I am using Rails as my framework, along with Twitter Bootstrap.
非常感谢任何帮助。
干杯!
答案 0 :(得分:1)
您可以为scroll事件设置事件处理程序,并使用scrollTop()
函数获取当前滚动位置。
这是一个教程:http://www.sutanaryan.com/how-to-create-fixed-menu-when-scrolling-page-with-css-and-jquery/