Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Change scrollOffset after init #77
First, I was curious how to do it :) I thought would be a good JS exercise and I did not manage.
Second, I have a wordpress theme with your plugin built in and I do not want to change the theme code itself.
I saw that the offset will be deprecated. What about a situation where I do want to scroll to a specific div, but always 100px above? Would that be possible in the new version?
You would use a negative top margin and top padding. You can see it in this example: https://github.com/davist11/jQuery-One-Page-Nav/blob/rewrite-for-v3/top.html