I created a site that uses some hot jQuery parallax scrolling a while back and it used to be pretty smooth, but recently (update of browsers?) it has gotten choppy. I think it has to do with the firing frequency of the jQuery scroll event. Here is a small example sized version of what I am trying to do...
$(window).scroll(function() {
offset = window.pageYOffset;
$('#firstImg').css({
"top" : -750 + (offset/1.5) + "px"
});
});
Basically, it would gradually vertically parallax an image as I scrolled down. You can check out the product here: http://www.davegamache.com/sandbox/best-of-2010/. Campaign Monitor also repurposed my code for their hiring site...check that out here: http://www.campaignmonitor.com/hiring/.
I need to figure out how to prevent the incredibly choppy scrolling. I even created a setInterval and fired the re-positioning code manually (instead of using the .scroll() event) and couldn't get it to be smooth (50m/s was choppy cause it wasn't firing enough, 10m/s just got jumpy cause it seemed to frequent?).
Let me know if anyone can help. Thanks so much!