Home » jQuery » jQuery Smooth Scroll to the ID

jQuery Smooth Scroll to the ID

This article will show you how to do jQuery Smooth Scroll to the ID. There is a lot of ways to use smooth scrolling to the given ID but using jQuery with few lines of code will make it easy. For example, if you click on a tag #hash link, this will help to reach the given ID. Using the below jQuery code you will adjust the speed of scrolling and the animation for that you just need to change to whatever you want, Here I used 600 milliseconds and for animation swing.

Use the below code to use on your website.

HTML
CSS
jQuery

Conclusion:

I hope this article will help you to do the smooth scroll to the given ID with jQuery. If you like this article kindly share it with your friends.

Preview & Download

 

Was this article helpful?

Yes No
×

How can we improve it?

×

We appreciate your helpul feedback!

Your answer will be used to improve our content. The more feedback you give us, the better our pages can be.

Follow us on social media:

Facebook Pinterest

Mraj

Creative Designer & Developer specialist by the spirit and a loving blogger by thoughts.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top