I’m working on a one page website and would like to include named anchors across it for each section.
I also would like it so when you click a hyperlink on the navigation, it scrolls down/up the page smoothly rather than a quick jump.
What is the simplest copy and paste type jQuery script that I could use?
Thanks
this is a quick little script that should do the trick:
replace
awith the selector of your links in the navigation. I’ve found scrollingbody, htmlmakes the scrolling a lot smoother