diff --git a/public/app-loading.css b/public/app-loading.css index b48a929..25fe3d8 100644 --- a/public/app-loading.css +++ b/public/app-loading.css @@ -1,48 +1,45 @@ -#app-loading, -#app-loading:before, -#app-loading:after { - border-radius: 50%; - width: 2.5em; - height: 2.5em; - animation-fill-mode: both; - animation: loadingAnimation 1.8s infinite ease-in-out; -} +/* 白屏阶段会执行的 CSS 加载动画 */ #app-loading { position: relative; top: 45vh; margin: 0 auto; - font-size: 10px; color: #409eff; - text-indent: -9999em; - animation-delay: -0.16s; - transform: translateZ(0); - transform: translate(-50%, 0); + font-size: 12px; +} + +#app-loading, +#app-loading:before, +#app-loading:after { + width: 2em; + height: 2em; + border-radius: 50%; + animation: 2s ease-in-out infinite app-loading-animation; } #app-loading:before, #app-loading:after { content: ""; position: absolute; - top: 0; } #app-loading:before { - left: -3.5em; - animation-delay: -0.32s; + left: -4em; + animation-delay: -0.2s; } #app-loading:after { - left: 3.5em; + left: 4em; + animation-delay: 0.2s; } -@keyframes loadingAnimation { +@keyframes app-loading-animation { 0%, 80%, 100% { - box-shadow: 0 2.5em 0 -1.3em; + box-shadow: 0 2em 0 -2em; } 40% { - box-shadow: 0 2.5em 0 0; + box-shadow: 0 2em 0 0; } }