That doesn't make any sense. The callback will only execute after the
slideUp finishes, so this gives you a 1s delay.

Massimiliano, could you provide a test page? I don't understand why
you're animating an element which is invisible (0 opacity).

On May 13, 2:22 am, waseem sabjee <waseemsab...@gmail.com> wrote:
> I have made a slight change in your code. also note you did set the opacity
> to 0 before the slideUp that could effect your code
>
> > function removeChekbox(data){
> >  $.each(data, function(i, val){
> >   $('input[value="'+val+'"]').parents(".item-container").animate({opacity:
>
> 0.0}, "slow", function(){>    $(this).slideUp("500", function(){
>
> setTimeout(function() {
>
> >     $(this).remove();
> },500);
> >    });
> >   });
> >  });
>
> > }
>
> i just added a 0.5 sec delay
>
> On Wed, May 13, 2009 at 1:33 AM, Ricardo <ricardob...@gmail.com> wrote:
>
> > Maybe it's because opacity is already 0?
>
> > Try using animate({ height:'toggle' }) instead
>
> > On May 12, 2:16 pm, Massimiliano Marini <m...@linuxtime.it> wrote:
> > > Hi all,
>
> > > I'm using jQuery 1.3.2 that's the code:
>
> > > function removeChekbox(data){
> > >  $.each(data, function(i, val){
>
> > $('input[value="'+val+'"]').parents(".item-container").animate({opacity:
> > 0.0}, "slow", function(){
> > >    $(this).slideUp("slow", function(){
> > >     $(this).remove();
> > >    });
> > >   });
> > >  });
>
> > > }
>
> > > the code is correct, the remove() works well, but the slideUp()
> > > does not make the animation. Why?

Reply via email to