苗火 Nicholas
[JS] How to jump to an anchor slowly
2015-10-29 萧


How to jump to an anchor slowly?



 



function goto(id){

 var top = jQuery("#"+id).offset().top;

 jQuery("html,body").animate({scrollTop:top},1000);

}

发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容