[Vuejs]-Pass function into Vue animation done callback

0👍

Answering own stupid question, it was pretty simple, just return it from callback. Documantation just messed me, there is "done" just called at the end of the hook.
https://v2.vuejs.org/v2/guide/transitions.html

    enter: function(e, done) {

         element.animate({
             // ...   
         }, duration, function() {
             // do something
             return done()
         })

    }

Leave a comment