Laraveldeep
3 years ago
51
1
Vue

Correct Way to Do Transition in Custom Vue

Posted 3 years ago by Laraveldeep

Hi,

I am following the tutorial about vue transition and I like to do the same on my custom vue component.

https://laracasts.com/series/learning-vue-step-by-step/episodes/17

What is the correct way to do the 'animate.css' transition with custom vue component?

My component is fine and working. Just wanted to fade out based on the response I get after Ajax request.... something like unsubscribe.

I mean what is the equivalent code of

Vue.transition('fade', {
    enterClass: 'fadeInUp',
    leaveClass: 'fadeOutLeft'
});

inside custom .vue file?

Thanks!

Please sign in or create an account to participate in this conversation.