i am playing with the animate of jquery
here’s what i have
$('p:first').animate({
'paddingLeft':'+=300px','opacity':'-=1'
},10000,'swing',function(){
$(this).fadeOut('fast',function(){
$('<p>test</p>').insertBefore($('p#2nd'));
});
});
now , my question is, how to repeat the same animate action on the inserterd
after the fadeOut effect ?, or, there’s a better way to do this ?
http://jsfiddle.net/efortis/2DKA9/2
startClouds()is called recursively until there are no more paragraphs.