[jQuery] Re: animate & hide

2007-09-14 Thread Tony
Try this: msg.css("background-color","#faa") .animate({backgroundColor:'#fff'}, 1000) .fadeOut("fast"); -- Tony Chen

[jQuery] Re: animate & hide

2007-09-13 Thread Stefan Kilp [sk-software]
PM > To: jquery-en@googlegroups.com > Subject: [jQuery] Re: animate & hide > > > This should work. > msg.css("background-color","#faa").animate({'backgroundColor':'#fff'}, > 1000).hide(); > > If it doesn't, use the callback. &g

[jQuery] Re: animate & hide

2007-09-13 Thread Stefan Kilp [sk-software]
the callback did the trick, thanks a lot > This should work. > msg.css("background-color","#faa").animate({'backgroundColor':'#fff'}, > 1000).hide(); > > If it doesn't, use the callback. > msg.css("background-color","#faa").animate({'backgroundColor':'#fff'}, 1000, > function(){ > // this i

[jQuery] Re: animate & hide

2007-09-13 Thread Andy Matthews
rsday, September 13, 2007 2:24 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: animate & hide This should work. msg.css("background-color","#faa").animate({'backgroundColor':'#fff'}, 1000).hide(); If it doesn't, use the callback. msg.css("

[jQuery] Re: animate & hide

2007-09-13 Thread Joan Piedra
This should work. msg.css("background-color","#faa").animate({'backgroundColor':'#fff'}, 1000).hide(); If it doesn't, use the callback. msg.css("background-color","#faa").animate({'backgroundColor':'#fff'}, 1000, function(){ // this is the callback $(this).hide(); }) On 9/13/07, Stefan Ki

[jQuery] Re: animate & hide

2007-09-13 Thread Stefan Kilp [sk-software]
same problem :-( hides at once > > Chain the methods, like so: > > msg.css("background-color","#faa").animate({'backgroundColor':'#fff'}, > 1000).hide(); > > Then jQuery will perform them in order. > > -Original Message- > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] O

[jQuery] Re: animate & hide

2007-09-13 Thread Andy Matthews
Chain the methods, like so: msg.css("background-color","#faa").animate({'backgroundColor':'#fff'}, 1000).hide(); Then jQuery will perform them in order. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Kilp [sk-software] Sent: Thursday,