东西湖大屏
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
2.0 KiB

  1. .ball-running-dots {
  2. position: absolute;
  3. top: 0.2rem;
  4. }
  5. .left-dots {
  6. left: 136px;
  7. }
  8. .right-dots {
  9. right: 200px;
  10. }
  11. .ball-running-dots > div {
  12. position: relative;
  13. -webkit-box-sizing: border-box;
  14. -moz-box-sizing: border-box;
  15. box-sizing: border-box;
  16. }
  17. .ball-running-dots {
  18. display: block;
  19. font-size: 0;
  20. color: #316fd9;
  21. }
  22. .ball-running-dots > div {
  23. display: inline-block;
  24. float: none;
  25. background-color: currentColor;
  26. border: 0 solid currentColor;
  27. }
  28. .ball-running-dots {
  29. width: 16px;
  30. height: 16px;
  31. }
  32. .ball-running-dots > div {
  33. position: absolute;
  34. margin-left: 30px;
  35. border-radius: 100%;
  36. }
  37. .left-dots > div {
  38. animation: ball-running-dots-animate 2s linear infinite;
  39. }
  40. .right-dots > div {
  41. animation: ball-running-dots-animate2 2s linear infinite;
  42. }
  43. .ball-running-dots > div:nth-child(1) {
  44. animation-delay: 0s;
  45. }
  46. .ball-running-dots > div:nth-child(2) {
  47. animation-delay: -0.8s;
  48. }
  49. .ball-running-dots > div:nth-child(3) {
  50. animation-delay: -1.2s;
  51. }
  52. .ball-running-dots > div:nth-child(4) {
  53. animation-delay: -1.6s;
  54. }
  55. @keyframes ball-running-dots-animate {
  56. 0%{
  57. width: 100%;
  58. height: 100%;
  59. transform: translateY(0) translateX(-500%) scale(-.1);
  60. opacity: 0.5;
  61. }
  62. 80% {
  63. transform: translateY(0) translateX(0);
  64. }
  65. 85% {
  66. width: 100%;
  67. height: 100%;
  68. transform: translateY(-125%) translateX(0);
  69. }
  70. 90% {
  71. width: 200%;
  72. height: 75%;
  73. }
  74. 95% {
  75. width: 100%;
  76. height: 100%;
  77. transform: translateY(-100%) translateX(-500%);
  78. }
  79. 100% {
  80. width: 100%;
  81. height: 100%;
  82. transform: translateY(0) translateX(-500%);
  83. opacity: 1;
  84. }
  85. }
  86. @keyframes ball-running-dots-animate2 {
  87. 0%{
  88. width: 100%;
  89. height: 100%;
  90. transform: translateY(0) translateX(500%) scale(-.1);
  91. opacity: 0.5;
  92. }
  93. 80% {
  94. transform: translateY(0) translateX(0);
  95. }
  96. 85% {
  97. width: 100%;
  98. height: 100%;
  99. transform: translateY(-125%) translateX(0);
  100. }
  101. 90% {
  102. width: 200%;
  103. height: 75%;
  104. }
  105. 95% {
  106. width: 100%;
  107. height: 100%;
  108. transform: translateY(-100%) translateX(500%);
  109. }
  110. 100% {
  111. width: 100%;
  112. height: 100%;
  113. transform: translateY(0) translateX(500%);
  114. opacity: 1;
  115. }
  116. }