Smooth Scrolling with scroll-behavior in CSS


Enable smooth scrolling for anchor links within a page using scroll-behavior.

Source Code

html {
    scroll-behavior: smooth;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments