refresh button stops animation, when data is loaded
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user