On 10/03/2007, at 11:24 PM, Yansky wrote:
> I'm just guessing here, but from reading the documentation, you  
> might need to
> un-chain your animation.
> http://interface.eyecon.ro/docs/animate
>
> e.g. Something like this maybe:
> $("#msgContainer").DropInUp(500);
> $("#msgContainer").pause(5000);
> $("#msgContainer").DropOutUp(250);
>
> montare wrote:
>> Based on a few examples I've googled up, I understand I should be  
>> able to
>> pause between animation effects.  I must not understand it properly,
>> though,
>> because I get absolutely no delay-the message drops in and back out
>> instantly.  Here's what I'm doing; as always, thanks for your input.
>>
>> $("#msgContainer").DropInUp(500).pause(5000).DropOutUp(250);

It sounds like you need to use callback functions as the second  
argument thusly:

$("#msgContainer").DropInUp(500,function(){
        $(this).fadeTo(5000,1,function(){
                $(this).DropOutUp(250);
        });
});

I am using the fadeTo instead of pause here - its a cool trick that  
makes an animation occur for (in this case) 5000 milliseconds with no  
visible effect (fade to full opacity from full opacity) so in effect,  
its a pause. Instead of chaining the effects and pauses you need to  
add each subsequent one as a "callback" argument of the one that  
occurs before it. This way, each subsequent effect only begins once  
the previous is fully finished.

Hope I haven't misunderstood your problem.
Joel Birch.

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to