Jquery - Slide on scroll
jQuery(window).scroll(function() { if (jQuery(this).scrollTop() > 100) { jQuery('.totop').stop().animate({ right: '0px' }); } else { jQuery('.totop').stop().animate({ right: '-300px' }); } });