CSS Smooth Scrolling - CSS Tips
You can make your website better by smooth scrolling in just 1 minute with pure CSS. To be honest before I found this trick I was using JavaScript to implement smooth scrolling. With only 1 line of code you can have smooth scrolling in your site.
First create a simple markup with 2 or 3 sections. And link the CSS file. In the CSS file select html
and type scroll-behavior: smooth;
. That's It. ๐
html {
scroll-behavior: smooth;
}
Just like that smooth scroll is there!! ๐. I know this isn't a blog post. But I hope you guys enjoyed it. What do you think about this trick. Let's discuss below!
ย