I am using this code, for making page scroll down to a class on page load:
$(function(){
$('html, body').delay(2000).animate({
scrollTop: $('.myDiv').offset().top
}, 2000);
return false;
});
When page load, and i scroll contemporary with the animation it conflicts. How can I disable scrolling during the delay - or before the animation starts.
I have searched and found several examples of how to disable scrolling on a click function, but I can't figure out to implement it into my code.
Thank you . I really hope you can help me. Excuse my english.