This script gives every anchor link on your page a smooth scroll instead of an instant jump. It applies to any link pointing at an id, so menus, tables of contents and mid-page buttons are all covered. The address bar updates as each section is reached, which means any section can be copied and shared as a link, and opening that link later lands in the same place.
To get the code, head to: https://www.memberstack.com/scripts/smooth-anchor-scrolling?via=memberscript-on-youtube
Have you used a Memberscript in your project? We'd love to highlight your work and share it with the community💙: https://airtable.com/appcuIe0ED9BSulEJ/paguhCXUHOO36PIym/form
0 Comments