fix pacman translation overflow

This commit is contained in:
Axolotle 2020-11-24 12:44:49 +01:00
parent f9a488fc67
commit 7b33b223b6

View file

@ -8,7 +8,7 @@
<template v-slot:overlay> <template v-slot:overlay>
<b-card no-body> <b-card no-body>
<div v-if="!error" class="d-flex justify-content-center mt-3"> <div v-if="!error" class="mt-3 px-3">
<!-- <b-spinner /> --> <!-- <b-spinner /> -->
<img class="pacman" src="@/assets/ajax-loader.gif"> <img class="pacman" src="@/assets/ajax-loader.gif">
</div> </div>
@ -116,13 +116,14 @@ export default {
} }
.pacman { .pacman {
width: 24px;
animation: back-and-forth 4s linear infinite; animation: back-and-forth 4s linear infinite;
@keyframes back-and-forth { @keyframes back-and-forth {
0%, 100% { transform: translateX(-50vw) scale(1); } 0%, 100% { transform: scale(1); margin-left: 0; }
49% { transform: translateX(50vw) scale(1); } 49% { transform: scale(1); margin-left: calc(100% - 24px);}
50% { transform: translateX(50vw) scale(-1); } 50% { transform: scale(-1); margin-left: calc(100% - 24px);}
99% { transform: translateX(-50vw) scale(-1); } 99% { transform: scale(-1); margin-left: 0;}
} }
} }
</style> </style>