If I have the following markup:
<ol class='source'>
<li id='1'>first</li>
</ol>
<ol class='target'>
<li id='2'>second</li>
</ol>
How do I use jQuery to 'tween' animate moving li#1
to ol.target
. I can imagine how to do this in a raw way with $.animate
, but I may be re-inventing the wheel. This seems like a common enough use case that I'm just missing part of the API or a plugin.
How would you do this?
span
right before the item you want to tween (insertBefore
)appendTo
)height
, width
, offset
)insertAfter
)