loading.css 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. .first-loading-wrp {
  2. display: flex;
  3. flex-direction: column;
  4. align-items: center;
  5. justify-content: center;
  6. height: 100vh;
  7. min-height: 90vh;
  8. background-color: #ffffff;
  9. }
  10. .first-loading-wrp>h1 {
  11. font-size: 28px;
  12. font-weight: bolder;
  13. }
  14. .first-loading-wrp .loading-wrp {
  15. display: flex;
  16. align-items: center;
  17. justify-content: center;
  18. padding: 98px;
  19. }
  20. .dot {
  21. position: relative;
  22. box-sizing: border-box;
  23. display: inline-block;
  24. width: 64px;
  25. height: 64px;
  26. font-size: 64px;
  27. transform: rotate(45deg);
  28. animation: antRotate 1.2s infinite linear;
  29. }
  30. .dot i {
  31. position: absolute;
  32. display: block;
  33. width: 28px;
  34. height: 28px;
  35. background-color: #1890ff;
  36. border-radius: 100%;
  37. opacity: 0.3;
  38. transform: scale(0.75);
  39. transform-origin: 50% 50%;
  40. animation: antSpinMove 1s infinite linear alternate;
  41. }
  42. .dot i:nth-child(1) {
  43. top: 0;
  44. left: 0;
  45. }
  46. .dot i:nth-child(2) {
  47. top: 0;
  48. right: 0;
  49. -webkit-animation-delay: 0.4s;
  50. animation-delay: 0.4s;
  51. }
  52. .dot i:nth-child(3) {
  53. right: 0;
  54. bottom: 0;
  55. -webkit-animation-delay: 0.8s;
  56. animation-delay: 0.8s;
  57. }
  58. .dot i:nth-child(4) {
  59. bottom: 0;
  60. left: 0;
  61. -webkit-animation-delay: 1.2s;
  62. animation-delay: 1.2s;
  63. }
  64. @keyframes antRotate {
  65. to {
  66. -webkit-transform: rotate(405deg);
  67. transform: rotate(405deg);
  68. }
  69. }
  70. @-webkit-keyframes antRotate {
  71. to {
  72. -webkit-transform: rotate(405deg);
  73. transform: rotate(405deg);
  74. }
  75. }
  76. @keyframes antSpinMove {
  77. to {
  78. opacity: 1;
  79. }
  80. }
  81. @-webkit-keyframes antSpinMove {
  82. to {
  83. opacity: 1;
  84. }
  85. }