Forcing animations to finish

1 view
Skip to first unread message

Juergen Schreck

unread,
Dec 5, 2006, 5:33:39 PM12/5/06
to MochiKit
Hi -

Is there a recommended way to make Visual animations finish?

I have a couple of situations with e.g. 'grow' or 'blindDown'. Assume
a 'grow' transition is half done. Clicking another link will first
'shrink' the current node, then swap out content and grow it again.
It will now only grow as far as it got before the shrink was executed.

I offer again the same link as yesterday:

http://www.bwpr.com/new.html

Click on 'Community Relations'.
Click on 'Media Relations', but before the 'shrink' is complete,
click 'Community Relations' again.

See what I mean?

I'm looking to see if there's something that let's me skip to a
finish in the animation. Otherwise, I'm think of setting a 'lock'
variable during transition and ignoring clicks while it is true.

Suggestions?

Thanks,
Juergen


Thomas Hervé

unread,
Dec 6, 2006, 6:58:40 AM12/6/06
to MochiKit
You should look at the scope notion in Effects, and the ScopedQueue
class. You probably only have to add the option 'queue', and set the
scope to 'global'.

--
Thomas

Reply all
Reply to author
Forward
0 new messages