1
take a look at this link Fun Wake Park click on the menu and you will notice that before the sliding effect happens, the page goes to the destination and comes back quickly with a blink, what can this be? I’m using the jquery.easing
, told me to use the ScrollTo
of Tweenmax
but I found it complicated I didn’t understand how it applies.
Can you help me with this ?
Code calling the plugin:
$(function() {
$('a').bind('click',function(event){
var $anchor = $(this);
$('html, body').stop().animate({scrollTop: $($anchor.attr('href')).offset().top}, 2000,'easeInOutExpo');
});
});
The JS on the page is all minified... difficult to help. It seems to me a FOUC but the page is not loading... forehead
event.preventDefault()
to prevent the browser from scrolling and in the millisecond after that comes jQuery’s Animate.– Sergio
Through what you flw went to search, and tested add a false Return; in function and apparently testing in place worked out. Thanks
– user27585
And tested with
event.preventDefault()
?– Sergio
I tested yes, I do not know if I did wrong but it ended up working, only the Return worked.
– user27585