消失的那么快
纪念我的放肆
当前位置:首页 > 网页设计 > 正文

给网站底部底部添加蓝色波浪

作者:ling发布时间:2023-04-04 14:20分类: 网页设计 浏览:122评论:0


导读: 在网站底部文件合适的位置添加下面的代码: <!--底部波浪开始--> <div...

 给网站底部底部添加蓝色波浪 -蓝立网 -第1 张图片
在网站底部文件合适的位置添加下面的代码:

  1. <!--底部波浪开始-->
  2. <div class="wiiuii_layout">
  3. <svg class="editorial"
  4. xmlns="http://www.w3.org/2000/svg"
  5. xmlns:xlink="http://www.w3.org/1999/xlink"
  6. viewBox="0 24 150 28"
  7. preserveAspectRatio="none">
  8. <defs>
  9. <path id="gentle-wave"
  10. d="M-160 44c30 0
  11. 58-18 88-18s
  12. 58 18 88 18
  13. 58-18 88-18
  14. 58 18 88 18
  15. v44h-352z" />
  16. </defs>
  17. <g class="parallax">
  18. <use xlink:href="#gentle-wave" x="50" y="0" fill="#4579e2"/>
  19. <use xlink:href="#gentle-wave" x="50" y="3" fill="#3461c1"/>
  20. <use xlink:href="#gentle-wave" x="50" y="6" fill="#2d55aa"/>
  21. </g>
  22. </svg>
  23. </div>
  24. <style type='text/css'>
  25. .parallax > use{animation: move-forever 12s linear infinite;}.parallax > use:nth-child(1){animation-delay: -2s;}.parallax > use:nth-child(2){animation-delay: -2s; animation-duration: 5s;}.parallax > use:nth-child(3){animation-delay: -4s; animation-duration: 3s;}@keyframes move-forever{0%{transform: translate(-90px, 0%);} 100%{transform: translate(85px, 0%);}}.wiiuii_layout{width: 100%;height: 40px;position: relative;overflow: hidden;z-index: 1;background: var(--footer-bg);}.editorial{display: block; width: 100%; height: 40px; margin: 0;}
  26. </style>
  27. <!--底部波浪结束-->

发表评论:

网页设计排行
Free Web Hosting