博主信息
博文 11
粉丝 0
评论 0
访问量 17913
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
纯CSS3实现div按照顺序出入效果
**沐曦??
原创
708人浏览过
  1. 代码:
  2. 1
  3. 2
  4. 3
  5. 4
  6. 5
  7. 6
  8. 7
  9. 8
  10. 9
  11. 10
  12. 11
  13. 12
  14. 13
  15. 14
  16. 15
  17. 16
  18. 17
  19. 18
  20. 19
  21. 20
  22. 21
  23. 22
  24. 23
  25. 24
  26. 25
  27. 26
  28. 27
  29. 28
  30. 29
  31. 30
  32. 31
  33. 32
  34. 33
  35. 34
  36. 35
  37. 36
  38. 37
  39. 38
  40. 39
  41. 40
  42. 41
  43. 42
  44. 43
  45. 44
  46. 45
  47. 46
  48. 47
  49. 48
  50. 49
  51. 50
  52. 51
  53. 52
  54. 53
  55. 54
  56. 55
  57. 56
  58. 57
  59. 58
  60. 59
  61. 60
  62. 61
  63. 62
  64. 63
  65. 64
  66. 65
  67. 66
  68. 67
  69. 68
  70. 69
  71. 70
  72. 71
  73. 72
  74. <!DOCTYPE html>
  75. <html>
  76. <head>
  77. <meta charset="UTF-8">
  78. <title></title>
  79. <style type="text/css">
  80. div{
  81. margin-top: 10px;
  82. height: 50px;
  83. background-color: #FF0000;
  84. opacity: 0.6;
  85. }
  86. .a{
  87. animation: aa 2s linear 100ms infinite;
  88. }
  89. .b{
  90. animation: bb 2s linear infinite
  91. }
  92. .c{
  93. animation: cc 2s linear infinite
  94. }
  95. .d{
  96. animation:dd 2s linear infinite
  97. }
  98. @keyframes aa{
  99. 0%{width: 0;}
  100. 25%{width:200px;}
  101. 50%{width:200px;}
  102. 75%{width:200px;}
  103. 100%{width:200px;}
  104. }
  105. @keyframes bb{
  106. 0%{width: 0;}
  107. 25%{width:0px;}
  108. 50%{width:200px;}
  109. 75%{width:200px;}
  110. 100%{width:200px;}
  111. }
  112. @keyframes cc{
  113. 0%{width: 0;}
  114. 25%{width:0px;}
  115. 50%{width:0px;}
  116. 75%{width:200px;}
  117. 100%{width:200px;}
  118. }
  119. @keyframes dd{
  120. 0%{width: 0;}
  121. 25%{width:0px;}
  122. 50%{width:0px;}
  123. 75%{width:0px;}
  124. 100%{width:200px;}
  125. }
  126. </style>
  127. </head>
  128. <body>
  129. <div class="a">
  130. </div>
  131. <div class="b">
  132. </div>
  133. <div class="c">
  134. </div>
  135. <div class="d">
  136. </div>
  137. </body>
  138. </html>
本博文版权归博主所有,转载请注明地址!如有侵权、违法,请联系admin@php.cn举报处理!
全部评论 文明上网理性发言,请遵守新闻评论服务协议
0条评论
作者最新博文
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号

  • 登录PHP中文网,和优秀的人一起学习!
    全站2000+教程免费学