Smooth scrolling for anchor tag on same page.

Below is an example of smooth scrolling. We want smooth scroll for the same page anchor tags to sections. Like we have FAQ’s page and we have questions on top and below all answers. We want when user clicks on question it take the user to its answer which is below the page but smoothly. So here is a simple jQuery code to perform the same.

Written by Ranjeet Jha

Ranjeet Jha

Hey there! My name is Ranjeet. I’m a Web Designer & Front-end Developer. I design, code, build & promote all things HTML5, CSS3, JavaScript & jQuery. In this blog you will find solutions of day to day problems faced by you.. Enjoy Coding..

Leave a Reply

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