jasonglisson
8/28/2014 - 3:53 PM

Jquery - Slide on scroll

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' });
}
});