Let me keep is simple. Scrollit.js, you set a data-scroll attribute on the navigation link, and a data-index where the content you want it to scroll to.
You don't need to set a specific ID on either thing for it to work. So why when I am reading about using data- attributes, the JS always starts with getelementbyID(#..)?
I'm looking to put together a micro-framework that uses this.
datasetattribute. developer.mozilla.org/en/docs/Web/API/HTMLElement/dataset