【子比美化】页面底部添加自适应白色波浪效果

【子比美化】页面底部添加自适应白色波浪效果-游小二
【子比美化】页面底部添加自适应白色波浪效果
30
文章过期提示
温馨提示: 每日登录积分+10,回帖积分+5,资源投稿审核通过积分+50可免费查看所有积分付费内容。

效果图

图片[1]-【子比美化】页面底部添加自适应白色波浪效果-游小二

教程开始

复制下面css代码 添加到自定义css中

把下面的代码放到footer.php文件的<footer class="footer">标签的前面即可

<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"style="bottom: 4px;">
    <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" x="48" y="0" fill="var(--float-btn-bg)"></use>
        <use xlink:href="#gentle-wave" x="48" y="3" fill="var(--main-shadow)"></use>
        <use xlink:href="#gentle-wave" x="48" y="5" fill="var(--main-border-color)"></use>
        <use xlink:href="#gentle-wave" x="48" y="7" fill="var(--main-bg-color)"></use>
    </g>
</svg>

 

THE END
分享
评论 抢沙发

请登录后发表评论

    暂无评论内容