vue prefix can be self-defined animation

vue animation can be defined from the prefix
1. simply added to the name attribute in

<Transition name = "My">
<H6-IF = V "FLAG2"> This is a H6 </ H6>
</ Transition>
2. The v-enter, v before .v-leave-to name property change on the line
such as

.my-enter,
.my-leave-to{
opacity: 0;
transform: translateY(80px);
}
.my-enter-active,
.my-leave-active{
transition: all 0.8s ease;
}

Guess you like

Origin www.cnblogs.com/cssy/p/11605424.html