loading.css 802 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. body {
  2. overflow: hidden;
  3. }
  4. .init-box {
  5. width: 100vw;
  6. height: 100vh;
  7. display: flex;
  8. justify-content: center;
  9. align-items: center;
  10. }
  11. .init-loading {
  12. width: 40px;
  13. height: 40px;
  14. display: flex;
  15. justify-content: space-between;
  16. }
  17. .init-loading-rect {
  18. background-color: #007aff;
  19. height: 100%;
  20. width: 15%;
  21. animation: init-wave 1.2s infinite ease-in-out;
  22. }
  23. .init-loading-rect:nth-child(1) {
  24. animation-delay: -1.2s;
  25. }
  26. .init-loading-rect:nth-child(2) {
  27. animation-delay: -1.1s;
  28. }
  29. .init-loading-rect:nth-child(3) {
  30. animation-delay: -1s;
  31. }
  32. .init-loading-rect:nth-child(4) {
  33. animation-delay: -0.9s;
  34. }
  35. .init-loading-rect:nth-child(5) {
  36. animation-delay: -0.8s;
  37. }
  38. @keyframes init-wave {
  39. 0%,
  40. 40%,
  41. 100% {
  42. transform: scaleY(0.4);
  43. }
  44. 20% {
  45. transform: scaleY(1);
  46. }
  47. }