uni-load-more.wxss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. @charset "UTF-8";
  2. .uni-load-more {
  3. display: -webkit-box;
  4. display: -webkit-flex;
  5. display: flex;
  6. -webkit-box-orient: horizontal;
  7. -webkit-box-direction: normal;
  8. -webkit-flex-direction: row;
  9. flex-direction: row;
  10. height: 80rpx;
  11. -webkit-box-align: center;
  12. -webkit-align-items: center;
  13. align-items: center;
  14. -webkit-box-pack: center;
  15. -webkit-justify-content: center;
  16. justify-content: center
  17. }
  18. .uni-load-more__text {
  19. font-size: 28rpx;
  20. color: #999
  21. }
  22. .uni-load-more__img {
  23. height: 24px;
  24. width: 24px;
  25. margin-right: 10px
  26. }
  27. .uni-load-more__img>.load {
  28. position: absolute
  29. }
  30. .uni-load-more__img>.load .item {
  31. width: 6px;
  32. height: 2px;
  33. border-top-left-radius: 1px;
  34. border-bottom-left-radius: 1px;
  35. background: #999;
  36. position: absolute;
  37. opacity: .2;
  38. -webkit-transform-origin: 50%;
  39. transform-origin: 50%;
  40. -webkit-animation: load 1.56s ease infinite;
  41. animation: load 1.56s ease infinite
  42. }
  43. .uni-load-more__img>.load .item:nth-child(1) {
  44. -webkit-transform: rotate(90deg);
  45. transform: rotate(90deg);
  46. top: 2px;
  47. left: 9px
  48. }
  49. .uni-load-more__img>.load .item:nth-child(2) {
  50. -webkit-transform: rotate(180deg);
  51. transform: rotate(180deg);
  52. top: 11px;
  53. right: 0
  54. }
  55. .uni-load-more__img>.load .item:nth-child(3) {
  56. -webkit-transform: rotate(270deg);
  57. transform: rotate(270deg);
  58. bottom: 2px;
  59. left: 9px
  60. }
  61. .uni-load-more__img>.load .item:nth-child(4) {
  62. top: 11px;
  63. left: 0
  64. }
  65. .load1,
  66. .load2,
  67. .load3 {
  68. height: 24px;
  69. width: 24px
  70. }
  71. .load2 {
  72. -webkit-transform: rotate(30deg);
  73. transform: rotate(30deg)
  74. }
  75. .load3 {
  76. -webkit-transform: rotate(60deg);
  77. transform: rotate(60deg)
  78. }
  79. .load1 .item:nth-child(1) {
  80. -webkit-animation-delay: 0s;
  81. animation-delay: 0s
  82. }
  83. .load2 .item:nth-child(1) {
  84. -webkit-animation-delay: .13s;
  85. animation-delay: .13s
  86. }
  87. .load3 .item:nth-child(1) {
  88. -webkit-animation-delay: .26s;
  89. animation-delay: .26s
  90. }
  91. .load1 .item:nth-child(2) {
  92. -webkit-animation-delay: .39s;
  93. animation-delay: .39s
  94. }
  95. .load2 .item:nth-child(2) {
  96. -webkit-animation-delay: .52s;
  97. animation-delay: .52s
  98. }
  99. .load3 .item:nth-child(2) {
  100. -webkit-animation-delay: .65s;
  101. animation-delay: .65s
  102. }
  103. .load1 .item:nth-child(3) {
  104. -webkit-animation-delay: .78s;
  105. animation-delay: .78s
  106. }
  107. .load2 .item:nth-child(3) {
  108. -webkit-animation-delay: .91s;
  109. animation-delay: .91s
  110. }
  111. .load3 .item:nth-child(3) {
  112. -webkit-animation-delay: 1.04s;
  113. animation-delay: 1.04s
  114. }
  115. .load1 .item:nth-child(4) {
  116. -webkit-animation-delay: 1.17s;
  117. animation-delay: 1.17s
  118. }
  119. .load2 .item:nth-child(4) {
  120. -webkit-animation-delay: 1.3s;
  121. animation-delay: 1.3s
  122. }
  123. .load3 .item:nth-child(4) {
  124. -webkit-animation-delay: 1.43s;
  125. animation-delay: 1.43s
  126. }
  127. @-webkit-keyframes load {
  128. 0% {
  129. opacity: 1
  130. }
  131. 100% {
  132. opacity: .2
  133. }
  134. }