There is a way to trigger an event after an animation is done? what's the cose for it? I'm very new with YUI libraries and i'm getting lost..
my cose now is
var anim = new Y.Anim({
node: node,
duration: 1.0,
easing: Y.Easing.easeOut
});
...etc
Note: This applies to YUI2.
Yup! Something like:
var myAnim = new YAHOO.util.Anim("yourId", {
left: {from: 0, to:75}
}, 1);
myAnim.onComplete.subscribe(function() {
alert('Done!');
});
See http://developer.yahoo.com/yui/examples/animation/index.html for more examples.