Vue transition animation

Vue can provide transition effects when elements or components enter and disappear

  • Use transition:



hello






new Vue({
el:'#demo',
data: {
show: true
}
})



. fade-enter-active, .fade-leave-active {
transition: opacity .5s;
}
.fade-enter, .fade-leave-to /* .fade-leave- active below version 2.1.8 */ {
opacity: 0;
}

Vue will automatically sniff the target element whether CSS transition or animation (transition tag wrap) is applied to it, if Yes, add/remove CSS class names at the right time.
During the transition of entry/exit, there will be 6 class switching:
v-enter: before inserting elements
v-enter-active: entire Entering the transition phase
v-enter-to: entering the end of the transition
v-leave: starting to leave
v-leave-active: the entire leaving transition phase
v-leave-to: leaving the transition End
share picture
For these class names that switch in transition, if you Use a without a name, then v- is the default prefix for these class names. If you use , then v-enter will be replaced with my-transition-enter.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5722 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.