loading.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. .spinner {
  2. margin: auto;
  3. width: 60px;
  4. height: 60px;
  5. position: absolute ;
  6. left: 0;
  7. top: 0;
  8. right: 0;
  9. bottom: 0;
  10. z-index:1000;
  11. }
  12. .container1 > div, .container2 > div, .container3 > div {
  13. width: 16px;
  14. height: 16px;
  15. /*background-color: #67cf22;*/
  16. background-color: #3498db;
  17. border-radius: 100%;
  18. position: absolute;
  19. -webkit-animation: bouncedelay 1.2s infinite ease-in-out;
  20. animation: bouncedelay 1.2s infinite ease-in-out;
  21. -webkit-animation-fill-mode: both;
  22. animation-fill-mode: both;
  23. }
  24. .spinner .spinner-container {
  25. position: absolute;
  26. width: 100%;
  27. height: 100%;
  28. }
  29. .container2 {
  30. -webkit-transform: rotateZ(45deg);
  31. transform: rotateZ(45deg);
  32. }
  33. .container3 {
  34. -webkit-transform: rotateZ(90deg);
  35. transform: rotateZ(90deg);
  36. }
  37. .circle1 { top: 0; left: 0; }
  38. .circle2 { top: 0; right: 0; }
  39. .circle3 { right: 0; bottom: 0; }
  40. .circle4 { left: 0; bottom: 0; }
  41. .container2 .circle1 {
  42. -webkit-animation-delay: -1.1s;
  43. animation-delay: -1.1s;
  44. }
  45. .container3 .circle1 {
  46. -webkit-animation-delay: -1.0s;
  47. animation-delay: -1.0s;
  48. }
  49. .container1 .circle2 {
  50. -webkit-animation-delay: -0.9s;
  51. animation-delay: -0.9s;
  52. }
  53. .container2 .circle2 {
  54. -webkit-animation-delay: -0.8s;
  55. animation-delay: -0.8s;
  56. }
  57. .container3 .circle2 {
  58. -webkit-animation-delay: -0.7s;
  59. animation-delay: -0.7s;
  60. }
  61. .container1 .circle3 {
  62. -webkit-animation-delay: -0.6s;
  63. animation-delay: -0.6s;
  64. }
  65. .container2 .circle3 {
  66. -webkit-animation-delay: -0.5s;
  67. animation-delay: -0.5s;
  68. }
  69. .container3 .circle3 {
  70. -webkit-animation-delay: -0.4s;
  71. animation-delay: -0.4s;
  72. }
  73. .container1 .circle4 {
  74. -webkit-animation-delay: -0.3s;
  75. animation-delay: -0.3s;
  76. }
  77. .container2 .circle4 {
  78. -webkit-animation-delay: -0.2s;
  79. animation-delay: -0.2s;
  80. }
  81. .container3 .circle4 {
  82. -webkit-animation-delay: -0.1s;
  83. animation-delay: -0.1s;
  84. }
  85. @-webkit-keyframes bouncedelay {
  86. 0%, 80%, 100% { -webkit-transform: scale(0.0) }
  87. 40% { -webkit-transform: scale(1.0) }
  88. }
  89. @keyframes bouncedelay {
  90. 0%, 80%, 100% {
  91. transform: scale(0.0);
  92. -webkit-transform: scale(0.0);
  93. } 40% {
  94. transform: scale(1.0);
  95. -webkit-transform: scale(1.0);
  96. }
  97. }