Have read a lot of articles, but can’t make animate function to run indefinitely. Help me please.
$.move = function(object, direction) {
$(object).animate({
backgroundPosition:'('+ direction +' -15000px)'
}, 20000, 'linear', function(){ $.move(object, direction) } );
};
Have done!