Preventing smooth scrolling with JavaScript | Kilian Valkhof
With scroll-behavior: smooth in your CSS you can tell browsers to animate scrolling to different parts of your site, for example when linking to an ID on a page. The javascript scrollTo API has a behavior option that lets you turn on smooth scrolling for one specific scroll regardless of the CSS being set or […]
Kilian Valkhof | Front-end & user experience developer