vue自带的 transition name="slide-fade" 设置动画
时间:2020-06-02 16:25:18
收藏:0
阅读:354
html:
<transition name="slide-fade"> <div ref="treeWrap" class="orgBox" v-show="isShow" @mouseout="hideOrg" @mouseover="ShowOrgs"> <elTree :lazy="propLazy" :request="propTreeRequest" :node.sync="syncNode" @hideTree="hideTree"></elTree> </div> </transition>
css:
vue自带的 transition name="slide-fade" 设置动画
.slide-fade-enter-active { transition: all .25s linear; } .slide-fade-leave-active { transition: all .25s linear; } .slide-fade-enter, .slide-fade-leave-to /* .slide-fade-leave-active for below version 2.1.8 */ { transform: translateY(100px); opacity: 0; }
原文:https://www.cnblogs.com/mmzuo-798/p/13031315.html
评论(0)