jQuery Tip 7 Fixed Header Scroll Event

preview_player
Показать описание
Today we are making jQuery Tip 7 Fixed Header Scroll Event.
What were doing is doing a window scroll event, so when the window object scrolls beyond a certain point we are going to do something and if not we are going to something else.
Рекомендации по теме
Комментарии
Автор

@Luke The $ symbol is used in jQuery which is a JavaScript library

ericbass
Автор

Many thanks. I was actually trying manipulate other elements, but I used your scroll nav idea to make mine. :)

autopilot
Автор

Good, If I have many headers followed by the top one, and I need to fix each header when it reach above 50px top how can I do that? would z-index help in it?

VigneshwaranRenganathan
Автор

Great job man this was hard to find! You made it really simple.
The only issue with my site is that I need the scrolling to begin once a div meets another div, and my layout is responsive I can't use a distance from the top. Any ideas! Thanks

NinjaNye
Автор

when using anchors, how do i make the spacing menu que so the link is always below the menu?

lokfreeze