Answers for "transitions vue js"

0

vue transition v-if else

<div id="demo">
    <button v-on:click="show = !show">
        Toggle
    </button>
    <transition name="fade">
        <p key=1 v-if="show">hello</p>
        <p key=2 v-else>Goodbye</p>
    </transition>
</div>
Posted by: Guest on October-14-2020
2

transition vue

.fade-enter-active, .fade-leave-active {
  transition: opacity 3s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
  opacity: 0;
}
Posted by: Guest on June-15-2021

Browse Popular Code Answers by Language