loading12.css 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. .lds-spinner {
  2. color: official;
  3. display: inline-block;
  4. position: relative;
  5. width: 64px;
  6. height: 64px;
  7. }
  8. .lds-spinner view {
  9. transform-origin: 32px 32px;
  10. animation: lds-spinner 1.2s linear infinite;
  11. }
  12. .lds-spinner view:after {
  13. content: " ";
  14. display: block;
  15. position: absolute;
  16. top: 3px;
  17. left: 29px;
  18. width: 5px;
  19. height: 14px;
  20. border-radius: 20%;
  21. background: #42b983;//可修改颜色
  22. }
  23. .lds-spinner view:nth-child(1) {
  24. transform: rotate(0deg);
  25. animation-delay: -1.1s;
  26. }
  27. .lds-spinner view:nth-child(2) {
  28. transform: rotate(30deg);
  29. animation-delay: -1s;
  30. }
  31. .lds-spinner view:nth-child(3) {
  32. transform: rotate(60deg);
  33. animation-delay: -0.9s;
  34. }
  35. .lds-spinner view:nth-child(4) {
  36. transform: rotate(90deg);
  37. animation-delay: -0.8s;
  38. }
  39. .lds-spinner view:nth-child(5) {
  40. transform: rotate(120deg);
  41. animation-delay: -0.7s;
  42. }
  43. .lds-spinner view:nth-child(6) {
  44. transform: rotate(150deg);
  45. animation-delay: -0.6s;
  46. }
  47. .lds-spinner view:nth-child(7) {
  48. transform: rotate(180deg);
  49. animation-delay: -0.5s;
  50. }
  51. .lds-spinner view:nth-child(8) {
  52. transform: rotate(210deg);
  53. animation-delay: -0.4s;
  54. }
  55. .lds-spinner view:nth-child(9) {
  56. transform: rotate(240deg);
  57. animation-delay: -0.3s;
  58. }
  59. .lds-spinner view:nth-child(10) {
  60. transform: rotate(270deg);
  61. animation-delay: -0.2s;
  62. }
  63. .lds-spinner view:nth-child(11) {
  64. transform: rotate(300deg);
  65. animation-delay: -0.1s;
  66. }
  67. .lds-spinner view:nth-child(12) {
  68. transform: rotate(330deg);
  69. animation-delay: 0s;
  70. }
  71. @keyframes lds-spinner {
  72. 0% {
  73. opacity: 1;
  74. }
  75. 100% {
  76. opacity: 0;
  77. }
  78. }