I'm attempting to integrate code seen on this site: http://madesignuk.com/uploader/ from this post: Sliding An Entire Web Page into my site.
So far, I've gotten the divs to animate. The transition to the first div is fine, but when going to a new div, either forward or backward breaks, and the screen doesn't travel the whole distance.
Here's the code I'm using, although it works fine here: http://jsfiddle.net/QZCZh/8/
Adding some alerts to my code shows that the $(".content").css("left")
value is different than what it should be after the transition.
I.E: The:
$(".content").animate({
left: (currPos - (this.windowWidth) + this.scrollbar) + 'px'
}, 'slow');
section shows that (currPos - (this.windowWidth) + this.scrollbar)
is 1519px before the transistion. However, after the transistion $(".content").css("left")
returns -1898.75px, when it should return -1519px. I've looked for about an hour. and I can't seem to find the problem. What am I doing wrong?