advertise.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. }
  5. html,
  6. body {
  7. width: 100%;
  8. height: 100%;
  9. }
  10. .content {
  11. width: 100%;
  12. height: 100%;
  13. }
  14. .content .con {
  15. width: 100%;
  16. height: 100%;
  17. font-size: 0;
  18. display: flex;
  19. align-items: center;
  20. }
  21. #img {
  22. width: 100%;
  23. height: 100%;
  24. }
  25. #timer {
  26. display: inline-block;
  27. position: fixed;
  28. top: 40px;
  29. right: 10px;
  30. }
  31. #info {
  32. position: absolute;
  33. top: 0;
  34. left: 0;
  35. width: 36px;
  36. height: 36px;
  37. line-height: 36px;
  38. border-radius: 50%;
  39. background-color: rgba(0, 0, 0, 0.3);
  40. text-align: center;
  41. color: #FFFFFF;
  42. font-size: 12px;
  43. }
  44. .circleProgress_wrapper {
  45. width: 36px;
  46. height: 36px;
  47. position: relative;
  48. }
  49. .wrapper {
  50. width: 18px;
  51. height: 36px;
  52. position: absolute;
  53. top: 0;
  54. overflow: hidden;
  55. }
  56. .right {
  57. right: 0;
  58. }
  59. .left {
  60. left: 0;
  61. }
  62. .circleProgress {
  63. width: 32px;
  64. height: 32px;
  65. border: 2px solid #FFFFFF;
  66. border-radius: 50%;
  67. position: absolute;
  68. top: 0;
  69. -webkit-transform: rotate(45deg);
  70. }
  71. .rightcircle {
  72. border-top: 2px solid #03A9F4;
  73. border-right: 2px solid #03A9F4;
  74. right: 0;
  75. -webkit-animation: circleProgressLoad_right 4s linear;
  76. /*动画停留在最后一帧*/
  77. animation-fill-mode: forwards;
  78. -moz-animation-fill-mode: forwards;
  79. -webkit-animation-fill-mode: forwards;
  80. -o-animation-fill-mode: forwards;
  81. }
  82. .leftcircle {
  83. border-bottom: 2px solid #03A9F4;
  84. border-left: 2px solid #03A9F4;
  85. left: 0;
  86. -webkit-animation: circleProgressLoad_left 4s linear;
  87. /*动画停留在最后一帧*/
  88. animation-fill-mode: forwards;
  89. -moz-animation-fill-mode: forwards;
  90. -webkit-animation-fill-mode: forwards;
  91. -o-animation-fill-mode: forwards;
  92. }
  93. @-webkit-keyframes circleProgressLoad_right {
  94. 0% {
  95. border-top: 2px solid #03A9F4;
  96. border-right: 2px solid #03A9F4;
  97. -webkit-transform: rotate(45deg);
  98. }
  99. 50% {
  100. border-top: 2px solid #03A9F4;
  101. border-right: 2px solid #03A9F4;
  102. border-left: 2px solid #FFFFFF;
  103. border-bottom: 2px solid #FFFFFF;
  104. -webkit-transform: rotate(225deg);
  105. }
  106. 100% {
  107. border-left: 2px solid #FFFFFF;
  108. border-bottom: 2px solid #FFFFFF;
  109. -webkit-transform: rotate(225deg);
  110. }
  111. }
  112. @-webkit-keyframes circleProgressLoad_left {
  113. 0% {
  114. border-bottom: 2px solid #03A9F4;
  115. border-left: 2px solid #03A9F4;
  116. -webkit-transform: rotate(45deg);
  117. }
  118. 50% {
  119. border-bottom: 2px solid #03A9F4;
  120. border-left: 2px solid #03A9F4;
  121. border-top: 2px solid #FFFFFF;
  122. border-right: 2px solid #FFFFFF;
  123. -webkit-transform: rotate(45deg);
  124. }
  125. 100% {
  126. border-top: 2px solid #FFFFFF;
  127. border-right: 2px solid #FFFFFF;
  128. -webkit-transform: rotate(225deg);
  129. }
  130. }