$('a[href^="#"]').click(function() { $('html,body').animate({scrollTop:$(this.hash).offset().top}, 200); return false; });
$('a[href^="#"]').click(function() { $('html,body').animate({ scrollTop: $(this.hash).offset().top }, 200, "swing"); return false;});
how can i alter this code so that i can add a easing effect like swing to it please help me