欢迎光临
我们一直在努力

WordPress底部添加好看的动态蓝色波浪

最近看到群里好多人在问底部波浪怎么弄的 ,今天就来带大家实现底部动态波浪的效果。以日主题RiPro-V2为例。

在 ripro-v2主题目录下,themes/ripro-v2/footer.php 文件中的“</footer>”(重要)下面添加下面的代码:

<!--底部波浪开始-->
<!--by:飞鱼博客-https://www.xpn.cc/-->
<div class="wiiuii_layout">
<svg class="editorial"
     xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     viewBox="0 24 150 28"
     preserveAspectRatio="none">
 <defs>
 <path id="gentle-wave"
 d="M-160 44c30 0 
    58-18 88-18s
    58 18 88 18 
    58-18 88-18 
    58 18 88 18
    v44h-352z" />
  </defs>
  <g class="parallax">
   <use xlink:href="#gentle-wave" x="50" y="0" fill="#4579e2"/>
   <use xlink:href="#gentle-wave" x="50" y="3" fill="#3461c1"/>
   <use xlink:href="#gentle-wave" x="50" y="6" fill="#2d55aa"/>  
  </g>
</svg>
</div>
<style type='text/css'>
.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;}
</style>
<!--by:飞鱼博客-https://www.xpn.cc/-->
<!--底部波浪结束-->

效果图演示:

WordPress底部添加好看的动态蓝色波浪

 收藏 (0) 打赏

您可以选择一种方式赞助本站

支付宝扫一扫赞助

微信钱包扫描赞助

除特别注明外,本站所有文章均基于CC-BY-NC-SA 4.0原创,转载请注明出处。
文章名称:《WordPress底部添加好看的动态蓝色波浪》
文章链接:https://www.xpn.cc/2084/fy.html
分享到: 更多 (0)

热门推荐

评论 抢沙发

登录

忘记密码 ?