feat: add transition to audio controls

This commit is contained in:
Fernando Fernández 2021-01-07 23:20:24 +01:00
parent 8f356f14a7
commit 3afdd2079f
2 changed files with 18 additions and 6 deletions

View File

@ -55,6 +55,16 @@ body {
opacity: 0;
}
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.5s;
}
.fade-enter,
.fade-leave-to {
opacity: 0;
}
/* Vuetify overrides */
// We can't set these through variables, so override them here */

View File

@ -94,12 +94,14 @@
<v-main>
<nuxt />
</v-main>
<v-footer
v-if="isPlaying && getCurrentlyPlayingMediaType() === 'Audio'"
app
>
<audio-controls />
</v-footer>
<transition name="fade" mode="in-out">
<v-footer
v-if="isPlaying && getCurrentlyPlayingMediaType() === 'Audio'"
app
>
<audio-controls />
</v-footer>
</transition>
<!-- Utilities and global systems -->
<snackbar />
<player-manager />