現(xiàn)在要把搞一個(gè)自定義指令,這個(gè)自定義指令類似v-animation 這樣,然后要的效果就是<p v-animation animate="bounceInLeft bounceOutLeft">大概這樣定義后就跑到animate.css里面走這個(gè)過渡效果,現(xiàn)在就是單獨(dú)一個(gè)bounceInLeft 可以實(shí)現(xiàn),關(guān)鍵是過渡效果分進(jìn)入跟出去,這個(gè)放一個(gè)只會(huì)有進(jìn)入的效果,但是這里公司不讓用vue自己下面的這種方式<trasition enter-active-class="animated pulse" leave-active-class="animated bounce"></trasition>非要自己封一個(gè),現(xiàn)在實(shí)現(xiàn)一個(gè)bounceInLeft 的方法如下,比較嘍還請(qǐng)大神指教<p v-animation animate="bounceInLeft">
vuejs跟animate.css過渡動(dòng)畫整合使用
慕哥9229398
2018-12-19 18:15:21