index.wxss 2.6 KB

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