Scroll to top button without any additional jquery plugins

jQuery('#back-to-top').bind('click', function () {
        var item_top = jQuery("body").offset().top;
        jQuery("body").animate({scrollTop:item_top}, 1000);
    });


Posted

in

by

Tags: