Answer the question
In order to leave comments, you need to log in
Animate not working in Microsoft Edge?
Made a smooth scroll to the anchor on jquery:
$('a[href^="#"]').click(function () {
elementClick = $(this).attr("href");
destination = $(elementClick).offset().top-120;
if($.browser.safari){
$('body').animate( { scrollTop: destination }, 500 );
}else{
$('html').animate( { scrollTop: destination }, 500 );
}
return false;
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question