Wednesday, 11 September 2013

Loop animation with jquery

Loop animation with jquery

I am pretty new to all this jQuery stuff and now i'm asking myself: What
would be the easiest way to loop an animation. I tried setInterval() but
it doesn't work. Also if I take the method as a callback the animation
just gets kinda laggy.
I created this fiddle with the animation how it should look like, but it
only animates one time.
http://jsfiddle.net/xFZnS/1/ I would be very grateful if someone could
help me.

No comments:

Post a Comment