delay returns the timeout marker (so you can clear it).

qFx.start.delay(...);
qFx.chain(function(){...});

On Tue, Oct 4, 2011 at 2:41 PM, Christian Lallo <
[email protected]> wrote:

> Hello,
>
> In the onSuccess of a .request call, I'm trying to briefly show a
> shopping cart status and then animate it away.  But this code produces
> an undefined function error:
>
> qc.setStyle('display','block');
> qcFx.start.delay(4000, qcFx, {'top':30, 'opacity':1}).chain(function()
> {
>        qxFx.start({'top':0, 'opacity':0}).chain(function(){
>                qc.setStyle('display','none');
>        });
> });
>
>
> The problem seems to be with adding the chain() method on the Fx.start
> when the delay method is added.
>
> If I remove the delay, the code executes perfectly.
>
> Any help would be appreciated.
>
> Cheers,
> Christian
>

Reply via email to