Previously, we discussed anchor links, a special type of links that points to specific sections of a webpage. And by default, when you click on that link, you will jump to the linked element directly, without any transitions.
Open demo in new tabYou can implement a smooth scrolling phase by setting the scroll-behavior
property to smooth
.