animated artworks

This commit is contained in:
vapormusic 2021-12-07 21:04:03 +07:00
parent 0190beb5b8
commit 44792c0918
8 changed files with 114 additions and 11 deletions

View file

@ -9,6 +9,9 @@
<div class="mediaitem-artwork">
<img :src="app.getMediaItemArtwork(url, size)"
class="mediaitem-artwork--img">
<div v-if="video" class="animatedartwork-view-box">
<animatedartwork-view :video="video"></animatedartwork-view>
</div>
</div>
</template>
</script>
@ -16,7 +19,7 @@
<script>
Vue.component('mediaitem-artwork', {
template: '#mediaitem-artwork',
props: ['size', 'url', 'type'],
props: ['size', 'url', 'type', 'video'],
methods: {
getArtworkStyle() {
return {