[Vuejs]-How can I do a easy image replace with opacity transition in vue?

0👍

Change .fade-enter, .fade-leave-to to .fade-enter-to, .fade-leave-to:

.fade-enter-active, .fade-leave-active {
  transition: opacity .25s ease-in-out;
}

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

Leave a comment