Are you first timer at Why not join us and start exchange your programming knowledge with everyone. Register today!

jQuery .animate() method

0 votes
added Jun 29, 2018 in jQuery by LC Marshal Captain (25,420 points)
edited Dec 5, 2018 by LC Marshal
//scrollTop for scroll to the top animation
  $('html, body').animate({scrollTop:0}, 'slow');

//example 2
  $('html, body').animate({ scrollTop: 0 }, 600);
  return false;

1 Response

0 votes
responded Jan 24 by LC Marshal Captain (25,420 points)
$('.className').animate({right: "-700px"}, 2000); - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.