fixed bug on mobile where button wasn't spinning correctly
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good

This commit is contained in:
cnachtigall1991
2021-10-20 17:34:28 +02:00
parent a73d73c609
commit 34586d44c9

View File

@@ -350,11 +350,13 @@ export default {
}
const RefreshData = async () => {
const refreshButton = document.querySelector('.refresh-btn')
const refreshButton = document.querySelector('.refresh-btn .fas')
refreshButton.classList.add('animate')
await GetPlayer().then(() => {
refreshButton.classList.remove('animate')
setTimeout(() => {
refreshButton.classList.remove('animate')
}, 2000)
})
}
@@ -451,11 +453,12 @@ export default {
.fas {
font-size: 1.3rem;
&.animate {
animation: refresh 2s infinite;
}
}
&.animate {
animation: refresh 2s infinite;
}
}
@keyframes refresh {