refresh button stops animation, when data is loaded

This commit is contained in:
cnachtigall1991
2021-10-20 17:28:38 +02:00
parent 3f56db51c2
commit a73d73c609

View File

@@ -353,11 +353,9 @@ export default {
const refreshButton = document.querySelector('.refresh-btn')
refreshButton.classList.add('animate')
refreshButton.addEventListener('animationend', ()=> {
await GetPlayer().then(() => {
refreshButton.classList.remove('animate')
})
await GetPlayer()
}
const TrackPlayer = async () => {
@@ -456,7 +454,7 @@ export default {
}
&.animate {
animation: refresh 2s 3 forwards;
animation: refresh 2s infinite;
}
}