当前位置:   article > 正文

css3 做成的音频波动效果_css 仿siri音频波纹

css 仿siri音频波纹

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset='uft-8'>
  5. <title>音频波效果</title>
  6. <style type="text/css">
  7. #container{
  8. position:relative;
  9. }
  10. #container span{
  11. width:5px;
  12. height: 5px;
  13. top:0px;
  14. position:absolute;
  15. background:red;
  16. -webkit-animation: bodong 0.5s infinite ease;
  17. }
  18. #container span:first-child{
  19. left:0px;
  20. -webkit-animation-delay:.3s;
  21. }
  22. #container span:nth-child(2){
  23. left:7px;
  24. -webkit-animation-delay:.4s;
  25. }
  26. #container span:nth-child(3){
  27. left:14px;
  28. -webkit-animation-delay:.6s;
  29. }
  30. #container span:nth-child(4){
  31. left:21px;
  32. -webkit-animation-delay:.8s;
  33. }
  34. #container span:nth-child(5){
  35. left:28px;
  36. -webkit-animation-delay:1s;
  37. }
  38. @-webkit-keyframes bodong{
  39. 0%{height:5px; background:bule;}
  40. 30%{height:15px; background:bule;}
  41. 60%{height:20px; background:bule;}
  42. 80%{height:15px; background:bule;}
  43. 100%{height:5px; background:bule;}
  44. }
  45. </style>
  46. </head>
  47. <body>
  48. <div id='container'>
  49. <span></span>
  50. <span></span>
  51. <span></span>
  52. <span></span>
  53. <span></span>
  54. </div>
  55. </body>
  56. </html>



声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/木道寻08/article/detail/937071
推荐阅读
相关标签
  

闽ICP备14008679号