jQuery-One-Page-Nav
jQuery-One-Page-Nav copied to clipboard
Smooth scrolling and smart navigation when user scrolls on one-page sites.
Currrently if you change the order of nav-items, the plugin stops working. So a sort method helps to always forEach the sections ins the same order, regardless of its DOM...
So i'm using a fix navbar, so i had to put an offset so that when the user clicks on one of the nav's buttons the header of that section...
Hi developers! I'm new here and just test this script in my new project. Great work, had to look around a long time to find one like this! There is...
If the first section and the last section is too short Unable to trigger threshold. Anyone met the same problem?
Hi, I'm having a problem where the plugin adds current to the third section even when on the first. When I scroll to the second, it highlights the 4th. It's...
Also have a look at: https://github.com/davist11/jQuery-One-Page-Nav/pull/114
If mode is enabled, just the active section will be shown. All other sections are hidden. The mode is tested in visibilitytest.html
3.0 Features
- [x] Remove reliance on scrollTo plugin - [ ] Works both horizontally and vertically - [ ] Add class to section when it's active (to trigger animations) - [...
You have to update `location.hash` before scrolling or the browser history will break and not jump to the correct positions in the document.
I added a dropdown in the top menu, it is not highlighted current section