November 2017
Beginner to intermediate
398 pages
8h 42m
English
Like we did with the hand, we will use a transition to animate the overlay.
<transition name="zoom"> <overlay v-if="activeOverlay"> <component :is="'overlay-content-' + activeOverlay" :player="currentPlayer" :opponent="currentOpponent" :players="players" /> </overlay> </transition>
.zoom-enter-active, .zoom-leave-active { transition: opacity .3s, transform .3s; } .zoom-enter, .zoom-leave-to { opacity: 0; transform: scale(.7); }
This is a simple animation that will zoom out the overlay while fading it out.
Read now
Unlock full access