LiranCohen / stickUp

stickUp a jQuery Plugin for sticky navigation menus.
GNU Lesser General Public License v3.0
1.54k stars 617 forks source link

Multiple stickUp elements #21

Open mhunt opened 10 years ago

mhunt commented 10 years ago

When applying to multiple elements, the isStuck class is applied to all elements when the first element is made sticky.

I tried a header and a sidebar. Where the header should activate after scrolling past the header and the sidebar should activate when scrolling past the sidebar, but when the page loads, and you scroll past the header, the sidebar is also activated with the isStuck class making both elements show to the top. The sidebar in this case should not have the isStuck class until scrolling down more.