Search posts, tags, users, and pages
It took me half an hour and countless of stackoverflow pages to find a perfect solution for a smooth scroll for <a> anchor links. So I'm adding here it as a snippet for future googlers. document .querySelectorAll('.nav__item a[href^="#"]') ...
Surjith S M
@surjithctly · Kerala, India
Freelance Web & UX Designer
Freelance Web & UX Designer from Incredible India. I design and develop creative websites, landing pages and applications for startups and e
Markdown supported · ⌘↵ to post
Mohith Gupta Korangi
But we have a CSS property for smooth-scroll, right?? Why not use it??
Trust me I tried that as well.. But in some cases you will feel its not flexible. So this will come in handy.
Emily Boston
Bookmarked, thanks for sharing.
Mohith Gupta Korangi
But we have a CSS property for smooth-scroll, right?? Why not use it??