Closed SQL-MisterMagoo closed 4 years ago
will this work for all sections?
Yes, but there is a downside because some browsers support smooth scrolling - Firefox, some don't.
To try this, just add the target to your navlinks and remove the JavaScript
Hey I tried this. It works like charm. I'll update the code and add comments. So that the user who needs animation can use JavaScript and who don't need animation can proceed with your suggestion.
Thanks, Abdul Rahman
You might not know , but you can use
target="_top"
on your NavLinks to enable the browser to scroll for you - meaning you can remove all the javascript forscrollTo
etc.