[jQuery] Re: Removing element from DOM after animate

2009-07-31 Thread waseem sabjee
var elm = (this).parents(".leftbox:first"); elm.animate({height:"hide",opacity:"hide"}, 350); setTimeout(function() { elm.remove(); }, 350); On Fri, Jul 31, 2009 at 7:08 PM, bittermonkey wrote: > > So is there a way I can execute the slide-fade effect, then remove the > element from DOM after t

[jQuery] Re: Removing element from DOM after animate

2009-07-31 Thread bittermonkey
So is there a way I can execute the slide-fade effect, then remove the element from DOM after the animation? On Jul 31, 12:06 pm, waseem sabjee wrote: > here is a chain of animation > $(this).parents(".leftbox:first") >  .animate({opacity: 0.5}, 350) >  .animate({opacity: 0}, 350) >  .remove();

[jQuery] Re: Removing element from DOM after animate

2009-07-31 Thread waseem sabjee
here is a chain of animation $(this).parents(".leftbox:first") .animate({opacity: 0.5}, 350) .animate({opacity: 0}, 350) .remove(); you are actually chaining your events to occur one after the other on a specific element or group of elements in the first piece of code you shared you. it would