Advertisement
Guest User

Untitled

a guest
Apr 26th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>dom</title>
  6.  
  7. <style>
  8. .big{
  9. width: 100%;
  10. height: 700px;
  11. position: relative;
  12. padding: 20px 15px;
  13. margin: 0;
  14. background-color: #333;
  15. }
  16. .box{
  17. width: 200px;
  18. height: 200px;
  19. box-sizing: border-box;
  20. border: 1px solid #cb6341;
  21. position: fixed;
  22. left: 50%;
  23. right: 50%;
  24. margin-left: -100px;
  25. }
  26. .box:after, .box:before{
  27. content: "";
  28. width: 110%;
  29. height: 100%;
  30. box-sizing: border-box;
  31. border: 2px solid;
  32. position: absolute;
  33. top: -5%;
  34. left: -5%;
  35. animation: boxBorder 6s linear infinite;
  36. }
  37. .box:before{
  38. animation-delay: -3s;
  39. }
  40. .box .icon{
  41. position: absolute;
  42. top: 50%;
  43. left: 50%;
  44. width: 100px;
  45. height: 100px;
  46. margin-top: -50px;
  47. margin-left: -50px;
  48. animation: iconBox 3s linear infinite;
  49. }
  50. .box .icon:after,.box .icon:before{
  51. content: "";
  52. width: 40%;
  53. height: 100%;
  54. box-sizing: border-box;
  55. border-radius: 50%;
  56. border: 2px solid #fff;
  57. position: absolute;
  58. top: 0;
  59. left: 30px;
  60. animation: iconBorder 3s linear infinite;
  61. }
  62. .box .icon:after{
  63. transform: rotate(60deg);
  64. }
  65. .box .icon:before{
  66. transform: rotate(-60deg);
  67. }
  68. .box .icon2:before{
  69. transform: rotate(0deg);
  70. }
  71. .box .icon2:after{
  72. height: 10px;
  73. width: 10px;
  74. background-color: #fff;
  75. transform: translate(12px,-6px);
  76. border: 3px solid #333;
  77. box-sizing: content-box;
  78. animation: iconYuan 3s linear infinite 0.6s;
  79. }
  80.  
  81. /* 动画开始 */
  82. @keyframes iconBox {
  83. 0%{
  84. transform: rotate(0deg);
  85. }
  86. 100%{
  87. transform: rotate(360deg);
  88. }
  89. }
  90. @keyframes iconBorder {
  91. 0%{
  92. border-color: #fff;
  93. }
  94. 30%{
  95. border-color: yellow;
  96. }
  97. 60%{
  98. border-color: blue;
  99. }
  100. 100%{
  101. border-color: red;
  102. }
  103. }
  104. @keyframes iconYuan {
  105. 0%{
  106. background-color: #fff;
  107. }
  108. 30%{
  109. background-color: yellow;
  110. }
  111. 60%{
  112. background-color: blue;
  113. }
  114. 100%{
  115. background-color: red;
  116. }
  117. }
  118. @keyframes boxBorder {
  119. 0%{
  120. border-color: #fff;
  121. clip: rect(0, 220px, 2px ,0);
  122. }
  123. 25%{
  124. border-color: yellow;
  125. clip: rect(0, 2px, 220px ,0);
  126. }
  127. 50%{
  128. border-color: blue;
  129. clip: rect(218px, 220px, 220px ,0);
  130. }
  131. 75%{
  132. border-color: green;
  133. clip: rect(0, 220px, 220px ,218px);
  134. }
  135. 100%{
  136. border-color: aqua;
  137. clip: rect(0, 220px, 2px ,0);
  138. }
  139. }
  140. </style>
  141. </head>
  142. <body>
  143.  
  144. <div class="box">
  145. <div class="icon icon1"></div>
  146. <div class="icon icon2"></div>
  147. </div>
  148.  
  149. <div id="dd">
  150. <span>sb</span>
  151. <span>sb</span>
  152. <span>sb</span>
  153. <span>sb</span>
  154. <span>sb</span>
  155. <span>sb</span>
  156. </div>
  157.  
  158.  
  159. <script>
  160. var a = ["小明","小刚","小红","小方","小王"];
  161. var b = a.filter(function(x){
  162. return x!="小明"
  163. });
  164. </script>
  165.  
  166. </body>
  167. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement