loading.wxss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. .spinner {
  28. margin: 100px auto;
  29. width: 20px;
  30. height: 20px;
  31. position: relative;
  32. }
  33. .container1 > ._div,
  34. .container2 > ._div,
  35. .container3 > ._div {
  36. width: 6px;
  37. height: 6px;
  38. background-color: #333;
  39. border-radius: 100%;
  40. position: absolute;
  41. -webkit-animation: bouncedelay 1.2s infinite ease-in-out;
  42. animation: bouncedelay 1.2s infinite ease-in-out;
  43. -webkit-animation-fill-mode: both;
  44. animation-fill-mode: both;
  45. }
  46. .spinner .spinner-container {
  47. position: absolute;
  48. width: 100%;
  49. height: 100%;
  50. }
  51. .container2 {
  52. -webkit-transform: rotateZ(45deg);
  53. transform: rotateZ(45deg);
  54. }
  55. .container3 {
  56. -webkit-transform: rotateZ(90deg);
  57. transform: rotateZ(90deg);
  58. }
  59. .circle1 {
  60. top: 0;
  61. left: 0;
  62. }
  63. .circle2 {
  64. top: 0;
  65. right: 0;
  66. }
  67. .circle3 {
  68. right: 0;
  69. bottom: 0;
  70. }
  71. .circle4 {
  72. left: 0;
  73. bottom: 0;
  74. }
  75. .container2 .circle1 {
  76. -webkit-animation-delay: -1.1s;
  77. animation-delay: -1.1s;
  78. }
  79. .container3 .circle1 {
  80. -webkit-animation-delay: -1.0s;
  81. animation-delay: -1.0s;
  82. }
  83. .container1 .circle2 {
  84. -webkit-animation-delay: -0.9s;
  85. animation-delay: -0.9s;
  86. }
  87. .container2 .circle2 {
  88. -webkit-animation-delay: -0.8s;
  89. animation-delay: -0.8s;
  90. }
  91. .container3 .circle2 {
  92. -webkit-animation-delay: -0.7s;
  93. animation-delay: -0.7s;
  94. }
  95. .container1 .circle3 {
  96. -webkit-animation-delay: -0.6s;
  97. animation-delay: -0.6s;
  98. }
  99. .container2 .circle3 {
  100. -webkit-animation-delay: -0.5s;
  101. animation-delay: -0.5s;
  102. }
  103. .container3 .circle3 {
  104. -webkit-animation-delay: -0.4s;
  105. animation-delay: -0.4s;
  106. }
  107. .container1 .circle4 {
  108. -webkit-animation-delay: -0.3s;
  109. animation-delay: -0.3s;
  110. }
  111. .container2 .circle4 {
  112. -webkit-animation-delay: -0.2s;
  113. animation-delay: -0.2s;
  114. }
  115. .container3 .circle4 {
  116. -webkit-animation-delay: -0.1s;
  117. animation-delay: -0.1s;
  118. }
  119. @-webkit-keyframes bouncedelay {
  120. 0%,
  121. 80%,
  122. 100% {
  123. -webkit-transform: scale(0);
  124. }
  125. 40% {
  126. -webkit-transform: scale(1);
  127. }
  128. }
  129. @keyframes bouncedelay {
  130. 0%,
  131. 80%,
  132. 100% {
  133. transform: scale(0);
  134. -webkit-transform: scale(0);
  135. }
  136. 40% {
  137. transform: scale(1);
  138. -webkit-transform: scale(1);
  139. }
  140. }