Closed daun closed 3 years ago
cool stuff!
I was always against this option and was in favor of this approach instead, but over time I see, I'm the only one that thinks that. ๐ Let's merge it once we're done with the comments above. โ๏ธ
I was always against this option and was in favor of this approach instead, but over time I see, I'm the only one that thinks that. ๐
The CSS solution is definitely more elegant, but you have to remember to do that for every possible anchor on your page...
I added the proposed changes and documentation on the element argument.
Published 1.1.0. Really nice work. ๐ I'll update the docs site.
Add an option to offset the final scroll position by a specific amount. Can be either a static number or a function that calculates the offset on demand before each scroll.