Hi, i’m working on a ‘back to top’ button however I’ve already implemented the scroll back to the top and i only need the fade-in.
$(function(){$(window).scroll(function(){if($(this).scrollTop()>100){$(“#fixed-backtotop”).fadeIn(1000)}else{$(“#fixed-backtotop”).fadeOut(750)}})};$(“#fixed-backtotop”).click(function(){$(“html, body”).animate({scrollTop:0},600);return false})});
i want to remove the
$(“#fixed-backtotop”).click(function(){$(“html, body”).animate({scrollTop:0},600);return false
However, i can’t get the syntax right, can anyone help ?