水波波浪进度球

1 篇文章 0 订阅

水波浪进度球

先看效果图:
效果图

直接撸代码:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <style>
    *{
      margin:0;
    }
    .box{
      width: 200px;
      height: 200px;
      margin: 50px auto;
      background-image: linear-gradient(-180deg, rgba(255,255,255,0.00) 0%, rgba(255,234,149,0.96) 68%);
      border-radius: 100%;
      overflow: hidden;
      position: relative;
    }
    .box:before{
      content: '';
      width: 180px;
      height: 180px;
      background-image: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,234,149,0.96) 68%);
      border-radius: 100%;
      position: absolute;
      left: 10px;
      top: 10px;
    }
    .box:after{
      content: '';
      width: 160px;
      height: 160px;
      background-image: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,234,149,1) 50%);
      border-radius: 100%;
      position: absolute;
      left: 20px;
      top: 20px;
    }
    .wave{
      margin-top: 50px;
      width: 100%;
      height: 210px;
      position: relative;
      overflow: hidden;
      z-index: 2;
    }
    .parallax>use {
      animation: wave-move 1s linear infinite;
      animation-duration: .9s;
    }
    .parallax>use:nth-child(1) {
      animation-delay: -.1s;
    }
    .parallax>use:nth-child(2) {
      animation-delay: -.5s;
    }
    .parallax>use:nth-child(3) {
      animation-delay: -.8s;
    }
    @keyframes wave-move {
      0% {
        transform: translate(90px,0);
      }
      100% {
        transform: translate(-85px,0);
      }
    }
  </style>
</head>
<body>
  <div class="box">
    <svg class="wave" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 24 200 210">
      <defs>
        <path id="wave-shape" stroke="rgba(255,255,255,.8)" stroke-width=".5" d="M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 58-18 88-18 58 18 88 18 v185h-528z"></path>
      </defs>
      <g class="parallax">
        <use xlink:href="#wave-shape" x="50" y="0" fill="url(#linear)"></use>
        <use xlink:href="#wave-shape" x="50" y="3" fill="url(#linear)"></use>
        <use xlink:href="#wave-shape" x="50" y="6" fill="url(#linear)"></use>
      </g>
      <defs>
        <linearGradient id="linear" x1="0%" y1="0%" x2="100%" y2="0%" gradientTransform="rotate(90)">
          <stop offset="10%"   stop-color="#FDD936" stop-opacity="0.4" />
          <stop offset="80%" stop-color="#E6911B" stop-opacity="0.8" />
        </linearGradient>
      </defs>
    </svg>
  </div>
</body>
</html>

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值