davist11/jQuery-One-Page-Nav

How to get actual hash when scrolling

MateuszRyaN opened this issue · 2 comments

how to use this method??
I need to do action when scroll is change to other section
scrollChange: function($currentListItem) { //I get fired when you enter a section and I pass the list item of the section }

You can put whatever code you want to execute inside that function.

@MateuszRyaN I think you're looking for a window.location.hash = "hash-name"; or similar.