views:

66

answers:

1

Is it possible in yui3 to synchronize multiple animations so they progress together? Something similar to what is mentioned in the jquery 1.4 roadmap and demonstrated in this example http://ejohn.org/files/sync.

A: 

YUI3 doesn't officially support that, but you could do something pretty similar by subscribing to the tween event and modifying the values yourself.

Tivac
Thanks, it also works pretty well to just fire off a set of animations at the same time, but they don't match up perfectly (you can see some jitter). I'll have to try the tween approach sometime, but that would also require manually calculating the interpolation for the animation handled in the tween...
Karl R