I am trying to animate a window image by changing its position on the mouse.
I can make it move once, but I need to set it up so that it moves over the image every time. I want users to "chase" a window around the screen.
Is it preferable that the animation loop so that the user can never catch the image?
Here is an example of what I have so far , and below is my jQuery code:
$(document).ready(function() { $('#img').mouseover(function() { $(this).animate({ left: '500px' }); }); });
Thank you, million!
source share