Vue study notes [19] - Animation (CSS animation using third-party libraries) in Vue

  1. Import animation library:

 <link rel="stylesheet" type="text/css" href="./lib/animate.css">
  1. Define transition and attributes:

 <transition
  enter-active-class="fadeInRight"
    leave-active-class="fadeOutRight"
    :duration="{ enter: 500, leave: 800 }">
  <div class="animated" v-show="isshow">动画哦</div>
 </transition>

Guess you like

Origin www.cnblogs.com/superjishere/p/11921223.html