Lately, I've noticed my parallax code makes a weird left to right jitter movement. The code is very simple:
$(window).scroll(function(){
var body = $('body');
var top = $(this).scrollTop();
$('.carousel-inner img').css('top', top / 2);
});
The same jittering issue can be seen in this demo http://www.bootply.com/vTCajmeQHQ
Why is this happening? Has the way the browser renders the scroll event changed? How can I fix it so it does not jitter anymore? This only started happening a few months ago, it was smooth before.
My markup looks like this <%= image_tag 'img.jpg'%> <%= image_tag 'img1.jpg'%>