Why Does .animate To Scrolltop Jump To 0 Before Animating?
I am playing with Parallax scrolling like on that nike site. So I have been using scrollTop to determine the user's vertical position on the page and then I've been adjusting elem
Solution 1:
Probably because you're using a link with href="#"
.
Add return false;
to your onclick
attribute.
<ahref="#"onClick="goTo(2160);return false;">< Prev | </a>
Post a Comment for "Why Does .animate To Scrolltop Jump To 0 Before Animating?"