I am trying to create an effect that runs in a queue, so that each effect only starts after the previous one is completed. I have been successful, but I'm sure there is a cleaner way.
This is what I still have:
$("tr:last td:nth-child(1) div").slideUp(200, function() { $("tr:last td:nth-child(2) div").slideUp(200, function() { $("tr:last td:nth-child(3) div").slideUp(200, function() { $("tr:last td:nth-child(4) div").slideUp(200, function() { $("tr:last td:nth-child(5) div").slideUp(200, function() { $("tr:last td:nth-child(6) div").slideUp(200, function() { $("tr:last td:nth-child(7) div").slideUp(200, function() { $("tr:last").remove(); }); }); }); }); }); }); });
There must be a cleaner way, right?
Very important in advance.
javascript jquery jquery-animate
rpophessagr
source share