The title explains it. Here’s how I discovered it (was writing this as an answer): http://jsfiddle.net/tnk7K/3/
As can be seen in the example, 2 animates to the right and stops after a second. Then, after another second, 2 jumps to the far left, and 3 animates as told, only for it to happen again (and again and again and again…)
It is not caused by the later call to css('left', 'auto'), as that is called after the animation is completed. Besides, removing it doesn’t fix the problem.
Any ideas what that is/how to solve it/am I just wrong? Googling around didn’t find anything.
I think that there happened some misunderstanding. You can set both
leftandrightin CSS.http://jsfiddle.net/tnk7K/5/
You see?
rightdidn’t change,leftset to 0. Butwidthchanged.EDIT:
You just have to set
leftattribute:http://jsfiddle.net/tnk7K/7/