animation.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. .loadingBox{
  2. width:100vw;height:100vh;position:fixed;left:0;top:0;display:flex;align-items: center;justify-content: center;z-index:99999999999;background:#ccc
  3. }
  4. .loadEffect{
  5. width: 100px;
  6. height: 100px;
  7. position: relative;
  8. margin: 0 auto;
  9. margin-top:100px;
  10. margin-bottom: 100px;
  11. }
  12. .loadEffect span{
  13. display: inline-block;
  14. width: 20px;
  15. height: 20px;
  16. border-radius: 50%;
  17. background: #409eff;
  18. position: absolute;
  19. -webkit-animation: load 1.04s ease infinite;
  20. animation: load 1.04s ease infinite;
  21. }
  22. @-webkit-keyframes load{
  23. 0%{
  24. -webkit-transform: scale(1.2);
  25. opacity: 1;
  26. }
  27. 100%{
  28. -webkit-transform: scale(.3);
  29. opacity: 0.5;
  30. }
  31. }
  32. @keyframes load{
  33. 0%{
  34. -webkit-transform: scale(1.2);
  35. opacity: 1;
  36. }
  37. 100%{
  38. -webkit-transform: scale(.3);
  39. opacity: 0.5;
  40. }
  41. }
  42. .loadEffect span:nth-child(1){
  43. left: 0;
  44. top: 50%;
  45. margin-top:-10px;
  46. -webkit-animation-delay:0.13s;
  47. animation-delay:0.13s;
  48. }
  49. .loadEffect span:nth-child(2){
  50. left: 14px;
  51. top: 14px;
  52. -webkit-animation-delay:0.26s;
  53. animation-delay:0.26s;
  54. }
  55. .loadEffect span:nth-child(3){
  56. left: 50%;
  57. top: 0;
  58. margin-left: -10px;
  59. -webkit-animation-delay:0.39s;
  60. animation-delay:0.39s;
  61. }
  62. .loadEffect span:nth-child(4){
  63. top: 14px;
  64. right:14px;
  65. -webkit-animation-delay:0.52s;
  66. animation-delay:0.52s;
  67. }
  68. .loadEffect span:nth-child(5){
  69. right: 0;
  70. top: 50%;
  71. margin-top:-10px;
  72. -webkit-animation-delay:0.65s;
  73. animation-delay:0.65s;
  74. }
  75. .loadEffect span:nth-child(6){
  76. right: 14px;
  77. bottom:14px;
  78. -webkit-animation-delay:0.78s;
  79. animation-delay:0.78s;
  80. }
  81. .loadEffect span:nth-child(7){
  82. bottom: 0;
  83. left: 50%;
  84. margin-left: -10px;
  85. -webkit-animation-delay:0.78s;
  86. animation-delay:0.78s;
  87. }
  88. .loadEffect span:nth-child(8){
  89. bottom: 14px;
  90. left: 14px;
  91. -webkit-animation-delay:1.04s;
  92. animation-delay:1.04s;
  93. }
  94. .list-enter,
  95. .list-leave-to {
  96. opacity: 0.5;
  97. }
  98. .list-leave-active {
  99. transition: all 0s ease;
  100. }
  101. .list-enter-active {
  102. transition: all 0.3s ease;
  103. }