Take a look at this link Fun Wake Park click on the menu and you will notice that before the slide effect happens, the page go to the destination and come back quick with a wink, what can this be? I'm using jquery.easing
, they told me to use ScrollTo
of Tweenmax
but I found it complicated I did not understand how it applied.
Can you help me with this one?
Code that calls the plugin:
$(function() {
$('a').bind('click',function(event){
var $anchor = $(this);
$('html, body').stop().animate({scrollTop: $($anchor.attr('href')).offset().top}, 2000,'easeInOutExpo');
});
});