I'm removing a div from body with a fadeout effect with a delay.
$('#mydata div').each(function(i) {
$(this).delay(200*i).fadeOut(1000);
$(this).animate({
"opacity" : "0",
});
});
$('#mydata').remove();
But if i use $('#mydata').remove() animation doesn't work any solutions .. ?
Something like this :
$('#mydata div').each(function(i) {
$(this).delay(200*i).fadeOut(1000);
$(this).animate({
"opacity" : "0",
},{
"complete" : function() {
$('#mydata').remove();
}
});
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With