fixed bug on mobile where button wasn't spinning correctly
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user