nickstein Posted January 30, 2022 Share Posted January 30, 2022 Site URL: https://florianbrooks.squarespace.com Hi folks, I'm looking for a way to make a button/scroll indicator/link scroll to the next section on a 7.1 site. I'm not looking for an anchor link solution as such. I'm hoping there is a specific code (probably javascript) which will make the button scroll to the next section, regardless which section is there. That way, if I change the order of sections, there is no need to update the anchor links, it simply scrols to whatever section is next. The site I'm working on is florianbrooks.squarespace.com pw: florian Thanks in advance Nick Link to comment
Beyondspace Posted January 31, 2022 Share Posted January 31, 2022 (edited) On 1/30/2022 at 5:46 PM, nickstein said: Site URL: https://florianbrooks.squarespace.com Hi folks, I'm looking for a way to make a button/scroll indicator/link scroll to the next section on a 7.1 site. I'm not looking for an anchor link solution as such. I'm hoping there is a specific code (probably javascript) which will make the button scroll to the next section, regardless which section is there. That way, if I change the order of sections, there is no need to update the anchor links, it simply scrols to whatever section is next. The site I'm working on is florianbrooks.squarespace.com pw: florian Thanks in advance Nick Change your href link from /home#scroll to /#scroll and add to Home > Design > Custom Css to make the scroll effect smooth html { scroll-behavior: smooth; } Edited January 31, 2022 by bangank36 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
nickstein Posted February 1, 2022 Author Share Posted February 1, 2022 @bangank36 - Thanks for replying. What I'm looking for is a solution that does not require the anchor link (#scroll). I'd like the button to scroll to whatever the following section is, even if I move the section order around. I tried the smooth scrolling code but that messed with the back to top function so I removed it again. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment