I'm trying to do something very simple: continuously loop a background image. I'm doing this via the "Background Position Animations" plugin.
My current code:
$(function skyloop() {
$('#header').animate ({backgroundPosition:"(-250 0)"}, {duration:1000});
});
I need a way to call the 'skyloop' function at the end of the animation, which would cause it to loop, but I can't seem to find the way to do that.
[EDIT] I've read all of the replies and I can't figure it out; nothing seems to work. It simply refuses to run again. The only thing I can think of is that the issues is caused by the plugin as I'm modifying a background image. I'll try to find another way to move a background image continuously (I'm trying to simulator a sky, by the way).