I have this animation that work just fine in jquery, except it's pretty lagy. onclick, it scroll down smoothly to the wanted element.
$('#aboutMenu').click(function(){
$('html, body').animate({
scrollTop: $( $(this).attr('href') ).offset().top -200
}, 900);
return false;
According to this webpage: http://julian.com/research/velocity/
I should be able to simply "Download Velocity, include it on your page, and replace all instances of jQuery's $.animate() with $.velocity(). You will immediately see a performance boost across all browsers and devices — especially on mobile."
Well I do it, but then when I click, nothing happen anymore.
What am I missing ?