loadingbar.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. #loadingbar {
  2. position: fixed;
  3. z-index: 2147483647;
  4. top: 0;
  5. left: -6px;
  6. width: 1%;
  7. height: 4px;
  8. -webkit-transition: all 500ms ease-in-out;
  9. -moz-transition: all 500ms ease-in-out;
  10. -ms-transition: all 500ms ease-in-out;
  11. -o-transition: all 500ms ease-in-out;
  12. transition: all 500ms ease-in-out;
  13. -webkit-border-radius: 1px;
  14. -moz-border-radius: 1px;
  15. border-radius: 1px;
  16. }
  17. #loadingbar.left {
  18. right: 0;
  19. left: 100%;
  20. width: 100%;
  21. }
  22. #loadingbar.up {
  23. top: 100%;
  24. bottom: 0;
  25. left: 0;
  26. width: 5px;
  27. height: 100%;
  28. }
  29. #loadingbar.down {
  30. left: 0;
  31. width: 5px;
  32. height: 0;
  33. }
  34. #loadingbar.waiting dd,
  35. #loadingbar.waiting dt {
  36. -webkit-animation: pulse 2s ease-out 0s infinite;
  37. -moz-animation: pulse 2s ease-out 0s infinite;
  38. -ms-animation: pulse 2s ease-out 0s infinite;
  39. -o-animation: pulse 2s ease-out 0s infinite;
  40. animation: pulse 2s ease-out 0s infinite;
  41. }
  42. #loadingbar dt {
  43. right: -80px;
  44. clip: rect(-6px, 90px, 14px, -6px);
  45. width: 180px;
  46. opacity: .6;
  47. }
  48. #loadingbar dd {
  49. right: 0;
  50. clip: rect(-6px, 22px, 14px, 10px);
  51. width: 20px;
  52. opacity: .6;
  53. }
  54. #loadingbar dd,
  55. #loadingbar dt {
  56. position: absolute;
  57. top: 0;
  58. height: 2px;
  59. -webkit-border-radius: 100%;
  60. -moz-border-radius: 100%;
  61. border-radius: 100%;
  62. -webkit-box-shadow: #ff6439 1px 0 6px 1px;
  63. -moz-box-shadow: #fa7753 1px 0 6px 1px;
  64. box-shadow: #ff6439 1px 0 6px 1px;
  65. -ms-box-shadow: #fa7753 1px 0 6px 1px;
  66. }
  67. #loadingbar.left dt {
  68. left: -4px;
  69. clip: rect(-6px, 185px, 14px, 25px);
  70. width: 180px;
  71. opacity: .6;
  72. }
  73. #loadingbar.left dd {
  74. left: 0;
  75. clip: rect(-6px, 22px, 14px, 0px);
  76. width: 20px;
  77. margin: 0;
  78. opacity: .6;
  79. }
  80. #loadingbar.left dd,
  81. #loadingbar.left dt {
  82. top: 0;
  83. height: 2px;
  84. }
  85. #loadingbar.down dt {
  86. top: auto;
  87. bottom: -47px;
  88. clip: rect(-6px, 20px, 130px, -6px);
  89. height: 180px;
  90. opacity: .6;
  91. }
  92. #loadingbar.down dd {
  93. top: auto;
  94. bottom: 0;
  95. clip: rect(-6px, 22px, 20px, 10px);
  96. height: 20px;
  97. margin: 0;
  98. opacity: .6;
  99. }
  100. #loadingbar.down dd,
  101. #loadingbar.down dt {
  102. right: auto;
  103. left: -5px;
  104. width: 10px;
  105. }
  106. #loadingbar.up dt {
  107. top: -10px;
  108. bottom: auto;
  109. clip: rect(13px, 20px, 190px, -6px);
  110. height: 180px;
  111. opacity: .6;
  112. }
  113. #loadingbar.up dd {
  114. top: 0;
  115. bottom: auto;
  116. clip: rect(-6px, 22px, 25px, 10px);
  117. height: 20px;
  118. margin: 0;
  119. opacity: .6;
  120. }
  121. #loadingbar.up dd,
  122. #loadingbar.up dt {
  123. right: auto;
  124. left: -5px;
  125. width: 10px;
  126. }
  127. @keyframes pulse {
  128. 30% {
  129. opacity: .6;
  130. }
  131. 60% {
  132. opacity: 0;
  133. }
  134. 100% {
  135. opacity: .6;
  136. }
  137. }
  138. @-moz-keyframes pulse {
  139. 30% {
  140. opacity: .6;
  141. }
  142. 60% {
  143. opacity: 0;
  144. }
  145. 100% {
  146. opacity: .6;
  147. }
  148. }
  149. @-ms-keyframes pulse {
  150. 30% {
  151. opacity: .6;
  152. }
  153. 60% {
  154. opacity: 0;
  155. }
  156. 100% {
  157. opacity: .6;
  158. }
  159. }
  160. @-webkit-keyframes pulse {
  161. 30% {
  162. opacity: .6;
  163. }
  164. 60% {
  165. opacity: 0;
  166. }
  167. 100% {
  168. opacity: .6;
  169. }
  170. }