I have a pattern background animation in jQuery made like this.
banner.css('backgroundPosition', x + 'px' + ' ' + y + 'px');
window.setInterval(function() {
banner.css("backgroundPosition", x + 'px' + ' ' + y + 'px');
y--;
}, 150);
Live example http://codepen.io/anon/pen/emMxXa
But it is rather 'jittery'. How can I make something like this to run more smoothly and slowly.