vue实现淡入淡出效果
vue实现淡入淡出效果<transition name="hehe">中间需要包住有v-if或v-show的div</transition>.hehe-enter,.hehe-leave-to {opacity: 0;}.hehe-enter-to,.hehe-leave {opacity: 1;}.hehe-enter-active,.hehe-leave-active
·
vue实现淡入淡出效果
<transition name="Fade">
中间需要包住有v-if或v-show的div
</transition>
.Fade-enter,
.Fade-leave-to {
opacity: 0;
}
.Fade-enter-to,
.Fade-leave {
opacity: 1;
}
.Fade-enter-active,
.Fade-leave-active {
transition: all .2s;
}
更多推荐
已为社区贡献1条内容
所有评论(0)