As I delve into AngularJS animations, I am currently working on a slide-show animation:
app.animation('slide-show', function () {
return {
setup: function (element) {
},
start: function (element, done) {
element.slideDown(400, done);
}
};
} );
app.animation('slide-hide', function () {
return {
setup: function (element) {
},
start: function (element, done) {
element.slideUp(400, done);
}
};
} );
My goal now is to enhance this animation by providing an additional "complete" callback as a parameter to the start()
methods. This callback would then be used with the jQuery methods in order to further manipulate the animation effects. Can this functionality be achieved using the animation directives in AngularJS?