I'm working with bootstrap 3 (current version).
I'm trying to create a navigation using the affix-PlugIn. I expect that as long as I'm ABOVE a specific navigation link, then the class of the link is "affix-top" and when I scroll down BELOW this specific link, then the class should change to "affix-bottom".
But: The "affix-bottom"-Class does not appear.
Here are the facts:
-> I have a very long sidebar navigation.
-> Every sidebar-hyperlink links to a different section on a page.
-> I added data-spy="affix" data-offset-top="60" data-offset-bottom="200" to all of the <li>-Elements.
Now, when I scroll down and inspect all the navigation-links with Chrome or firefox I can see that when I scroll down to a specific link, the affix.js-plugin changes the "class"-attribute from class="affix-top" to class="affix" (which is exactly what I expect).
BUT:
When I scroll down FURTHER, then the class-Attributes don't change to class="affix-bottom".
-
What am I doing wrong?
Or is this a bug in Bootstrap?