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, September 13, 2007 2:21 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] animate & hide


it is certainly only a newbie problem ...

i try to set my message to red, animate it to white an the hide it

        msg.css("background-color","#faa");
        msg.animate({'backgroundColor':'#fff'}, 1000);
        msg.hide();

but it will be hidden at once, without animating.

if i remove 
        
        msg.hide() 

then the animation is shown.

any hint for me

thanks
stefan


--
Stefan Kilp
SK-Software, Entwicklung & Beratung

email: [EMAIL PROTECTED]

fon  : +49 6151 93344-0
fax  : +49 6151 93344-20
Herta-Mansbacher-Str. 98
64289 Darmstadt, Germany.
-----------------------------------------------------


Reply via email to