fix transition on img
This commit is contained in:
@@ -42,9 +42,8 @@ onUnmounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Transition name="fade" mode="out-in">
|
<Transition v-if="song" name="fade" mode="out-in">
|
||||||
<div
|
<div
|
||||||
v-if="song"
|
|
||||||
@click="nextSong"
|
@click="nextSong"
|
||||||
:key="song.track.id"
|
:key="song.track.id"
|
||||||
class="flex-col center-content center-text"
|
class="flex-col center-content center-text"
|
||||||
@@ -54,13 +53,13 @@ onUnmounted(() => {
|
|||||||
<p><strong>Song:</strong> {{ song.track.name }}</p>
|
<p><strong>Song:</strong> {{ song.track.name }}</p>
|
||||||
<p><strong>Artist:</strong> {{ song.track.artists[0].name }}</p>
|
<p><strong>Artist:</strong> {{ song.track.artists[0].name }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
</Transition>
|
||||||
<div v-else class="flex-col center-content center-text">
|
<div v-else class="flex-col center-content center-text">
|
||||||
<h2>Listening To</h2>
|
<h2>Listening To</h2>
|
||||||
<img src="/img/Untitled.png" />
|
<img src="/img/Untitled.png" />
|
||||||
<p><strong>Song:</strong> >_<</p>
|
<p><strong>Song:</strong> >_<</p>
|
||||||
<p><strong>Artist:</strong> ^_^</p>
|
<p><strong>Artist:</strong> ^_^</p>
|
||||||
</div>
|
</div>
|
||||||
</Transition>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user