News for hackers. Stuff that matters.
Re:Modern CSS One-Line Upgrades by lobsterthief on Monday January 29, 2024 @10:02AM (#39177002)
Won’t you still need some smooth-scrolling JS for cases where you’re scrolling to an element dynamically? Like when updating a route without a full page load or click.
Re:Modern CSS One-Line Upgrades by Vorh on Monday January 29, 2024 @04:29PM (#39182934)
Nope!

    Element.scrollIntoView({ behavior: 'smooth' });
https://developer.mozilla.org/en-US/docs/Web/API/Element/scr...