//scrollTop for scroll to the top animation $('#button').click(function(){ $('html, body').animate({scrollTop:0}, 'slow'); }); //example 2 $('.scroll-top--button').click(function(){ $('html, body').animate({ scrollTop: 0 }, 600); return false; });
$('.className').animate({right: "-700px"}, 2000);
$(close).click(function() { expand.animate({height: '200px', width: '300px'}); });