Smooth scroll to anchor

2023-08-28 html css

Though there are many solutions with JavaScript, there is a simple solution only with CSS.

html{
    scroll-behavior: smooth;
}

https://stackoverflow.com/questions/7717527/smooth-scrolling-when-clicking-an-anchor-link