$(".autotranslate-lookspan").on("click",function(){ $("html,body").animate({scrollTop:$("#label").offset().top},1000) })