I see this fiddle sample here

I want when "to the top" appear, an click! should scroll to the top smoothly or slow

$(window).scroll(function() {
    if ($(this).scrollTop()) {
        $('#toTop').fadeIn();
    } else {
        $('#toTop').fadeOut();
    }
});
Edit
Report