Posted on 24th July 2024|42 views
How to smoothly scroll to an element using JQuery?
Posted on 24th July 2024| views
If you want to smoothly scroll to an element in jQuery then you can do something like this
$(document).ready(function() {
$("#btn").click(function()
{
$("body,html").animate(
{ scrollTop: $("#menudiv").offset().top },
500 //speed );
});
});
If you are looking for the Jquery certification course, you can check out this Jquery course by Mindmajix.