asscroll
asscroll copied to clipboard
URL Anchors not working in safari
<a href="#my-section">Scroll to link</a>
...
<section id="my-section"></section>
Expected: after link is clicked, page should scroll to section.
This works in Chrome using asscroll.js, but doesn't work in Safari (Version 14.1.2 (16611.3.10.1.6)) Is this a bug, or am I missing something?
I know it can be implemented using asscroll.scrollTo, but this doesn't look clean.