loading.css 1.5 KB

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