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;
}	
Logo

前往低代码交流专区

更多推荐