scrollnav icon indicating copy to clipboard operation
scrollnav copied to clipboard

A dependency free JavaScript plugin for auto generating single page navigation

Results 13 scrollnav issues
Sort by recently updated
recently updated
newest added

When I first into a page ,it can't scroll to the right position ,bug if I resize the window, then it can. To fix this bug: First change: return window.addEventListener("resize",...

Using the newest version of Scrollnav.js: const content = document.querySelector('.main-content'); const nodeTarget = document.querySelector('.main-navigation'); scrollnav.init(content, { sections: 'h1', subSections: 'h2', insertTarget: nodeTarget, scrollOffset: 400 // not working }); Unfortunately, after...

Hi, is there a way to disable scroll animation?

With a strict Content-Security-Policy Header: require-trusted-types-for 'script', the browser will not run scrollnav without a valid policy, because of the use of innerHTML. This can easily be replaced by appendChild.

So that one could see h1's, h2's and h3's in their page. Or it could be made generic to support any depth of nested headings.

Hi, sorry about my english, but i hope you understand my problem. I'm using scrollnav.js plugin on this page (http://edf-re.web36f05.kinghost.net/quem-somos/edf-mundo/), but I'm facing a bug. On click and scroll the...

Changed list creation. Replaced innerHTML with appendChild(). Changes made in createList, createNav and createList.test. Reason: Get the script running with a Content-Security-Policy Header: require-trusted-types-for 'script' and no policy for scrollnav...

For some reason, only subsections in the same parent element are recognised by scrollnav. This is obviously not ideal behavior, as there are various reasons one might be nesting their...

bug

I am missing the possibility to set a fixed position where the dom should be scrolled to, when a navigation item is clicked.