nicbrancato Posted January 20, 2023 Share Posted January 20, 2023 The following url on my site goes to an anchor that is mid-way down the page: https://www.nicolebrancato.com/discography/#video when you click the link, the top of the page loads first, then there is some lag time, then it scrolls quickly to the anchor point. If you are already on the top of the page "discography" and follow the link "video" through the dropdown menu ("watch/listen" in the header, then to "video"), it will scroll right down. My question is this: can I make the anchor link (https://www.nicolebrancato.com/discography/#video) load straight awayto the anchor point, instead of the top of the page loading first and then having lag time? Thanks in advance for the help! Link to comment
Solution nicbrancato Posted January 21, 2023 Author Solution Share Posted January 21, 2023 I figured it out! It was this line of code: html {scroll-behavior: smooth} 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