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 RefreshData = async () => {
const refreshButton = document.querySelector('.refresh-btn') const refreshButton = document.querySelector('.refresh-btn .fas')
refreshButton.classList.add('animate') refreshButton.classList.add('animate')
await GetPlayer().then(() => { await GetPlayer().then(() => {
setTimeout(() => {
refreshButton.classList.remove('animate') refreshButton.classList.remove('animate')
}, 2000)
}) })
} }
@@ -451,13 +453,14 @@ export default {
.fas { .fas {
font-size: 1.3rem; font-size: 1.3rem;
}
&.animate { &.animate {
animation: refresh 2s infinite; animation: refresh 2s infinite;
} }
} }
}
@keyframes refresh { @keyframes refresh {
0% { 0% {
transform: rotate(0deg) scale(1); transform: rotate(0deg) scale(1);