index.wxss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. .wux-spin {
  2. position: relative;
  3. display: inline-block
  4. }
  5. .wux-spin__spinning {
  6. opacity: 1;
  7. position: static;
  8. display: inline-block;
  9. vertical-align: middle;
  10. text-align: center;
  11. font-size: 28rpx;
  12. line-height: 1.5;
  13. color: #FA7D22
  14. }
  15. .wux-spin__spinning--nested {
  16. vertical-align: middle;
  17. text-align: center;
  18. font-size: 28rpx;
  19. line-height: 1.5;
  20. color: #FA7D22;
  21. display: block;
  22. position: absolute;
  23. height: 100%;
  24. max-height: 640rpx;
  25. width: 100%;
  26. z-index: 4
  27. }
  28. .wux-spin--nested {
  29. display: block;
  30. height: 100%;
  31. }
  32. .wux-spin--nested .wux-spin__tip {
  33. position: absolute;
  34. top: 50%;
  35. width: 100%;
  36. padding-top: 12rpx;
  37. text-shadow: 0 2rpx 4rpx #fff
  38. }
  39. .wux-spin__dots {
  40. width: 40rpx;
  41. height: 40rpx;
  42. overflow: hidden;
  43. display: inline-block;
  44. transform: rotate(45deg);
  45. animation: rotate 1.2s infinite linear
  46. }
  47. .wux-spin--nested .wux-spin__dots {
  48. position: absolute;
  49. top: 50%;
  50. left: 50%;
  51. margin: -20rpx
  52. }
  53. .wux-spin__dot {
  54. width: 18rpx;
  55. height: 18rpx;
  56. border-radius: 100%;
  57. background-color: #FA7D22;
  58. transform: scale(.75);
  59. display: block;
  60. position: absolute;
  61. opacity: .3;
  62. animation: spinMove 1s infinite linear alternate;
  63. transform-origin: 50% 50%;
  64. text-indent: -999em
  65. }
  66. .wux-spin__dot:first-child {
  67. left: 0;
  68. top: 0
  69. }
  70. .wux-spin__dot:nth-child(2) {
  71. right: 0;
  72. top: 0;
  73. animation-delay: .4s
  74. }
  75. .wux-spin__dot:nth-child(3) {
  76. right: 0;
  77. bottom: 0;
  78. animation-delay: .8s
  79. }
  80. .wux-spin__dot:nth-child(4) {
  81. left: 0;
  82. bottom: 0;
  83. animation-delay: 1.2s
  84. }
  85. .wux-spin--show-text.wux-spin--nested .wux-spin__dots {
  86. margin-top: -40rpx
  87. }
  88. .wux-spin__container {
  89. position: relative;
  90. transition: opacity .3s;
  91. zoom: 1
  92. }
  93. .wux-spin__container--blur {
  94. overflow: hidden;
  95. opacity: .5;
  96. filter: blur(1rpx);
  97. transform: translateZ(0)
  98. }
  99. .wux-spin--small .wux-spin__tip {
  100. padding-top: 6rpx
  101. }
  102. .wux-spin--small .wux-spin__dots {
  103. width: 28rpx;
  104. height: 28rpx
  105. }
  106. .wux-spin--small.wux-spin--nested .wux-spin__dots {
  107. margin: -14rpx
  108. }
  109. .wux-spin--small .wux-spin__dot {
  110. width: 12rpx;
  111. height: 12rpx
  112. }
  113. .wux-spin--small.wux-spin--show-text.wux-spin--nested .wux-spin__dots {
  114. margin-top: -34rpx
  115. }
  116. .wux-spin--large .wux-spin__tip {
  117. padding-top: 24rpx
  118. }
  119. .wux-spin--large .wux-spin__dots {
  120. width: 64rpx;
  121. height: 64rpx
  122. }
  123. .wux-spin--large.wux-spin--nested .wux-spin__dots {
  124. margin: -32rpx
  125. }
  126. .wux-spin--large .wux-spin__dot {
  127. width: 28rpx;
  128. height: 28rpx
  129. }
  130. .wux-spin--large.wux-spin--show-text.wux-spin--nested .wux-spin__dots {
  131. margin-top: -52rpx
  132. }
  133. @keyframes rotate {
  134. to {
  135. transform: rotate(405deg)
  136. }
  137. }
  138. @keyframes spinMove {
  139. to {
  140. opacity: 1
  141. }
  142. }