Answers for "scroll top with animation in jquery"

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 "scroll top with animation in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language