Answer the question
In order to leave comments, you need to log in
How to execute a function at the end of the animation?
Hello! Tell me please. I have some class that inherits from Fx:
var cl = new Class({
Extends: Fx,
initialize: function (elem) {
this.elem = elem;
},
set: function (now) {
this.setStyle('opacity', now);
}
});
Answer the question
In order to leave comments, you need to log in
initialize: function (elem) {
//...
this.addEvent('complete', function(){ ... });
},
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question