概述
关于vue的过渡本人也是在网上百度得出的实践,实际和CSS3的过渡是差不多的,下面我简单介绍一下(不喜勿喷~):
主体结构:
<button @click="show=!show">show</button>
<transition name="fold"> <div style="width:200px;height:200px;background:blue;"></div> </transition>
<style>
.fold-enter-active { animation-name: fold-in; animation-duration: .5s; } .fold-leave-active { animation-name: fold-out; animation-duration: .5s; } @keyframes fold-in { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes fold-out { 0% { opacity: 1; } 100% { opacity: 0; } }
</style>
最后
以上就是搞怪裙子为你收集整理的vue.js transition的过渡效果介绍~~~~~的全部内容,希望文章能够帮你解决vue.js transition的过渡效果介绍~~~~~所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复