javascript - How do i delay this function -


this question has answer here:

i have code:

$('a[href*=#]').click(function() {    $('html, body').animate({     scrolltop: $($.attr(this, 'href')).offset().top   }, 500);    return false; }); 

but need 600ms delay after click link page have chance perform other actions set 500ms, thank in advance

jquery has delay method

$('a[href*=#]').click(function(){     $('html, body').delay(600).animate({         scrolltop: $( $(this).attr('href') ).offset().top     }, 500);      return false; }); 

Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -