TIL that browsers have now implemented native smooth scrolling

January 18, 2024 · 1 min read

You can just add a smooth scrolling effect via CSS:

html {
  scroll-behavior: smooth;

TailwindCSS (my CSS framework of choice) has a built-in utility for that:

<html class="scroll-smooth">
  <!-- ... -->
Phil-Bastian Berndt
About me

Software engineer with a passion for functional programming. Tech Lead at Naymspace. Let's connect!