I've been working on connecting Vue.js with velocity.js. Following a guide, I found an example that doesn't use a named transition. Currently, my transition code looks like this:
<transition name="collapse">
https://v2.vuejs.org/v2/guide/transitions.html#JavaScript-Hooks
In the Vue.js documentation, they show how to set up transition elements with JavaScript hooks:
<transition
v-on:before-enter="beforeEnter"
v-on:enter="enter"
v-on:after-enter="afterEnter"
v-on:enter-cancelled="enterCancelled"
v-on:before-leave="beforeLeave"
v-on:leave="leave"
v-on:after-leave="afterLeave"
v-on:leave-cancelled="leaveCancelled"
>
Is there a way to automate this process without setting it all up manually? It would be ideal to have a named animation without the need for extensive setup.
I was hoping to define methods in my Vue.js component like this:
collapseEnter, collapseEnterCancelled, etc.
However, it appears this approach does not function as expected. Do I really have to configure all the directives or is there a simpler solution available?