lilymtang Posted February 10, 2021 Share Posted February 10, 2021 Site URL: https://www.lilymtang.com/blog/rae-lakes-loop HTML anchor links by default will jump to a section on the page. For some reason, my anchor links have a smooth scrolling behavior. I don't think I ever added any code to make it that way, but I can't figure out how to get rid of it (is it default in the Brine template?). My pages are very long and the scroll effect is unwieldy and slow, so can someone help me figure out how to get back the default "jump to" behavior of anchor links? I have no code in my site code injection or blog code injection, and the only custom css I have are for width properties. I've tried adding the below into my custom css but it didn't work. html { scroll-behavior: auto !important; } Link to comment
tuanphan Posted February 14, 2021 Share Posted February 14, 2021 Remove html {scroll-behavior: smooth;} code Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
lilymtang Posted February 24, 2021 Author Share Posted February 24, 2021 On 2/13/2021 at 7:06 PM, tuanphan said: Remove html {scroll-behavior: smooth;} code Oh I'm sorry I actually meant I added scroll-behavior: auto. "smooth" is what people add to make it smooth scroll...I realize how ridiculous I must have sounded 🤦♀️ But what I have does NOT work, and explicitly adding the scroll behavior property also did not work. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.