I have a problem with the scrollTo function when it is called by a jQuery animate function.
Here my code:
$("#button").click(function(){     $("body").animate({scrollTop: 1400},"slow"); });   When I click the button, the flicker appears before the body scrolling. For example, I'm on (scroll position) 1000, and when I clicked the button the following happened:
On firefox it always appears, and sometimes on chrome also.
I had the same flickering problem. It was caused by the hash anchor in the link that triggers the function. Fixed it with preventDefault():
$("#button").click(function(e){     e.preventDefault();     $("body").animate({scrollTop: 1400},"slow"); }); 
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With