How to remove an element slowly with jQuery?
Solution 1:
$target.hide('slow');
or
$target.hide('slow', function(){ $target.remove(); });
to run the animation, then remove it from DOM
Solution 2:
target.fadeOut(300, function(){ $(this).remove();});
or
$('#target_id').fadeOut(300, function(){ $(this).remove();});
Duplicate: How to "fadeOut" & "remove" a div in jQuery?
Solution 3:
If you need to hide and then remove the element use the remove method inside the callback function of hide method.
This should work
$target.hide("slow", function(){ $(this).remove(); })
Solution 4:
$('#ur_id').slideUp("slow", function() { $('#ur_id').remove();});