Answers for "jquery animate scrolltop to respective div"

1

jquery scroll to top of div animate

$("#yourDivID").animate({scrollTop:0}, "smooth");
Posted by: Guest on January-19-2021
1

jquery scrolltop animate

var body = $("html, body");
body.stop().animate({scrollTop:0}, 500, 'swing', function() { 
   alert("Finished animating");
});
Posted by: Guest on March-18-2021

Code answers related to "jquery animate scrolltop to respective div"

Code answers related to "Javascript"

Browse Popular Code Answers by Language