#精品
ripro主题首页搜索模块波纹代码

2021-04-30 0 461

教程开始

第一步:

parts 文件下 search.php 倒数第三个</div>前添加以下代码

<div class="awaves"> <svg class="waves" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 24 150 28" preserveAspectRatio="none" shape-rendering="auto"> <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"></path> </defs> <g class="parallax"> <use xlink:href="#gentle-wave" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  x="48" y="0" fill="rgba(255,255,255,0.7"></use> <use xlink:href="#gentle-wave" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  x="48" y="3" fill="rgba(255,255,255,0.5)"></use> <use xlink:href="#gentle-wave" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  x="48" y="5" fill="rgba(255,255,255,0.3)"></use> <use xlink:href="#gentle-wave" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  x="48" y="7" fill="#fff"></use> </g> </svg> </div>

第二步:

添加 CSS

.awaves { background: linear-gradient(60deg, rgb(252, 185, 62) 0%, rgb(255, 111, 132) 100%); padding-top: 320px; z-index: -1; position: absolute; bottom: 0; width: 100%; } .waves { position: relative; width: 100%; height: 10vh; margin-bottom: -6px; min-height: 100px; max-height: 150px; } .parallax>use { animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite; } .parallax>use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; } .parallax>use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; } .parallax>use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; } .parallax>use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; } @keyframes move-forever { 0% { transform: translate3d(-90px, 0, 0); } 100% { transform: translate3d(85px, 0, 0); } }

效果图如下ripro主题首页搜索模块波纹代码

收藏 (0)

微信扫一扫

支付宝扫一扫

点赞 (0)

免责声明

本资源仅用于个人学习和研究使用,禁止用于任何商业环境!

1. 本网站名称:汇站网
2. 本站永久网址:https://www.huizhanii.com
3. 本站所有资源来源于网友投稿和收集,仅对编程人员及源代码爱好者开放下载做参考和研究使用,本站不提供任何技术服务!
4. 本站所有资源的展示图片和信息不代表本站立场!本站仅作为信息存储平台
5. 下载者禁止在服务器和虚拟机下进行搭建运营,本站所有资源不支持联网运行!仅允许调试和研究使用
6. 未经原版权作者许可,禁止用于任何商业环境,不得擅自使用。下载者如违反国家法律,一切法律后果自行承担!
7. 为尊重作者版权,请在下载24小时内删除!建议购买正版授权作品
8. 若资源侵犯您的合法权益,请提供版权证明和作品信息联系邮箱:972908224@qq.com,我们会及时处理
9. 如下载链接失效或文件有问题,请联系站长处理
10. 欢迎投稿优质源码或教程,审核通过后将有奖励
11. 本站资源收费仅用于维持网站运营
12. 数字商品具有特殊性,赞助后不支持退款

汇站网 WordPress ripro主题首页搜索模块波纹代码 https://www.huizhanii.com/208.html

站长资源下载中心-找源码上汇站

常见问题
  • 如果付款后没有弹出下载页面,多刷新几下,有问题联系客服!
查看详情
  • 本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。
查看详情

相关文章

联系官方客服

为您解决烦忧 - 24小时在线 专业服务