app-loading.css 675 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /** 白屏阶段会执行的 CSS 加载动画 */
  2. #app-loading {
  3. position: relative;
  4. top: 45vh;
  5. margin: 0 auto;
  6. color: #409eff;
  7. font-size: 12px;
  8. }
  9. #app-loading,
  10. #app-loading::before,
  11. #app-loading::after {
  12. width: 2em;
  13. height: 2em;
  14. border-radius: 50%;
  15. animation: 2s ease-in-out infinite app-loading-animation;
  16. }
  17. #app-loading::before,
  18. #app-loading::after {
  19. content: "";
  20. position: absolute;
  21. }
  22. #app-loading::before {
  23. left: -4em;
  24. animation-delay: -0.2s;
  25. }
  26. #app-loading::after {
  27. left: 4em;
  28. animation-delay: 0.2s;
  29. }
  30. @keyframes app-loading-animation {
  31. 0%,
  32. 80%,
  33. 100% {
  34. box-shadow: 0 2em 0 -2em;
  35. }
  36. 40% {
  37. box-shadow: 0 2em 0 0;
  38. }
  39. }