商丘12345 前端

animation.css 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. .step2_line {
  2. background-image: url(../img/step2_line.png);
  3. background-repeat: no-repeat;
  4. background-position: center center;
  5. position: absolute;
  6. height: 1600px;
  7. width: 120px;
  8. animation: step2_line 2s linear infinite;
  9. z-index: 999999;
  10. }
  11. @keyframes step2_line {
  12. 0% { clip: rect(1600px, 120px, 1600px, 0px); }
  13. 50% { clip: rect(0px, 120px, 1600px, 0px); }
  14. 100% { clip: rect(0px, 120px, 0px, 0px); }
  15. }
  16. .posi_line1{
  17. left: 650px;
  18. top: 282px;
  19. animation: step2_line 2s linear 0s infinite;
  20. }
  21. .posi_line2{
  22. left: 2010px;
  23. top: 282px;
  24. animation: step2_line 2s linear 2s infinite;
  25. }
  26. .posi_line3{
  27. left: 2780px;
  28. top: 950px;
  29. animation: step3_line_l 2s linear 4s infinite;
  30. }
  31. .posi_line4{
  32. left: 4520px;
  33. top: 1030px;
  34. animation: step3_line_r 2s linear 6s infinite;
  35. }
  36. .posi_line5{
  37. left: 5970px;
  38. top: 282px;
  39. animation: step2_line 2s linear 8s infinite;
  40. }
  41. .step3_line_l {
  42. background-image: url(../img/step3_line_l.png);
  43. background-repeat: no-repeat;
  44. background-position: center center;
  45. position: absolute;
  46. height: 925px;
  47. width: 480px;
  48. animation: step3_line_l 2s linear infinite;
  49. }
  50. @keyframes step3_line_l {
  51. 0% { clip: rect(0px, 0px, 925px, 0px); }
  52. 50% { clip: rect(0px, 480px, 925px, 0px); }
  53. 100% { clip: rect(0px, 480px, 925px, 480px); }
  54. }
  55. .step3_line_r {
  56. background-image: url(../img/step3_line_r.png);
  57. background-repeat: no-repeat;
  58. background-position: center center;
  59. position: absolute;
  60. height: 925px;
  61. width: 480px;
  62. animation: step3_line_l 2s linear infinite;
  63. z-index: 3333;
  64. }
  65. @keyframes step3_line_l {
  66. 0% { clip: rect(0px, 0px, 925px, 0px); }
  67. 50% { clip: rect(0px, 480px, 925px, 0px); }
  68. 100% { clip: rect(0px, 480px, 925px, 480px); }
  69. }