animation.css 1.9 KB

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