animate scrollTop glitches [solved]
Hi guys.
When you click an item in the portfolio, it pulls the horizontal and vertical scroll to the proper position, but animating the scrolltop is giving me glitches. It looks like the page jumps to the top, then returns and animates.
Here's what I'm doing:
- $('html,body').animate({
- scrollTop: lastChildOffset.top - 140
- }, 500);
Pretty basic. I tried using the scrollTo plugin, and cut out the other animations for the horizontal scrolling and scroll knob positioning, and no cigar.
any ideas?