码迷,mamicode.com
首页 > 其他好文 > 详细

【前端】Vue3常用transition过渡

时间:2021-06-02 16:40:58      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:form   span   bsp   cti   transform   cal   fence   property   常用   

fade

.fade-enter-from,
.fade-leave-to {
 opacity: 0;
}
.fade-leave-from,
.fade-enter-to {
 opacity: 1;
}
.fade-enter-active,
.fade-leave-active {
 transition: all 0.2s;
}

scale

.scale-enter-from,
.scale-leave-to {
 transform: scale(0);
}
.scale-leave-from,
.scale-enter-to {
 transform: scale(1);
}
.scale-enter-active,
.scale-leave-active {
 transition: all 0.2s;
}

left(right/top)

.left-enter-from,
.left-leave-to {
 transform: translate3d(-100%, 0, 0);
}
.left-leave-from,
.left-enter-to {
 transform: translate3d(0, 0, 0);
}
.left-enter-active,
.left-leave-active {
 transition: all 0.2s;
}

 

【前端】Vue3常用transition过渡

标签:form   span   bsp   cti   transform   cal   fence   property   常用   

原文地址:https://www.cnblogs.com/Zeiion/p/14826859.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!