loading.css 1.5 KB

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