loading.uvue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <style scoped>
  2. .loader3 {
  3. display: flex;
  4. flex-direction: row;
  5. justify-content: center;
  6. align-items: center;
  7. height: 40px;
  8. }
  9. .bars {
  10. width: 10px;
  11. height: 20px;
  12. margin: 0 2px;
  13. border-radius: 4px;
  14. animation: loader3 3s ease-in-out infinite;
  15. }
  16. .bar1 {
  17. background-color: #4285F4;
  18. animation-delay: -0.8s;
  19. }
  20. .bar2 {
  21. background-color: #4285F4;
  22. animation-delay: -0.7s;
  23. }
  24. .bar3 {
  25. background-color: #4285F4;
  26. animation-delay: -0.6s;
  27. }
  28. .bar4 {
  29. background-color: #4285F4;
  30. animation-delay: -0.5s;
  31. }
  32. .bar5 {
  33. background-color: #4285F4;
  34. animation-delay: -0.4s;
  35. }
  36. .bar6 {
  37. background-color: #4285F4;
  38. animation-delay: -0.3s;
  39. }
  40. .bar7 {
  41. background-color: #4285F4;
  42. animation-delay: -0.2s;
  43. }
  44. .bar8 {
  45. background-color: #4285F4;
  46. animation-delay: -0.1s;
  47. }
  48. .bar9 {
  49. background-color: #4285F4;
  50. animation-delay: 0s;
  51. }
  52. .bar10 {
  53. background-color: #4285F4;
  54. animation-delay: 0.1s;
  55. }
  56. @keyframes loader3 {
  57. 0% {
  58. transform: scale(1);
  59. }
  60. 20% {
  61. transform: scale(1, 2.32);
  62. }
  63. 40% {
  64. transform: scale(1);
  65. }
  66. }
  67. .loading-image {
  68. @apply w-full h-full fixed bg-[#000118] top-0 left-0 flex items-center justify-center;
  69. z-index: 10000;
  70. }
  71. </style>
  72. <template>
  73. <view class="loading-image">
  74. <div class="loader3">
  75. <div class="bars bar1"></div>
  76. <div class="bars bar2"></div>
  77. <div class="bars bar3"></div>
  78. <div class="bars bar4"></div>
  79. <div class="bars bar5"></div>
  80. <div class="bars bar6"></div>
  81. <div class="bars bar7"></div>
  82. <div class="bars bar8"></div>
  83. <div class="bars bar9"></div>
  84. <div class="bars bar10"></div>
  85. </div>
  86. </view>
  87. </template>