Hacker News new | ask | show | jobs
by marcusjt 2352 days ago
Smooth scrolling is a CSS3 feature implemented by (many but not all) modern browsers so you'll be seeing it around a lot - see https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-beha... + https://drafts.csswg.org/cssom-view/#propdef-scroll-behavior
3 comments

This looks like it will only animate the scrolling when clicking on anchor links? Doesn't seem that bad to me.
Mozilla link says

> Note that any other scrolls, such as those performed by the user, are not affected by this property.

Dear god why?
Better to put it as an "officially supported" standard, where it can be turned off by the user, rather than in some 500kB JS library.