I have a scrollTop function in jQuery but I can\'t animate it. Is it possible?
$(\".loadmore\").click(function() { $(this).toggleClass(\"up-arrow\", 1000);
$('#ID').click(function(){ $("html, body").animate({ scrollTop: 0 }, 1000); return false; });
Try this code of Jquery