css音阶波浪动画图,线性渐变色

本文介绍了使用CSS实现的一种动态加载成功的图标效果。通过CSS的linear-gradient创建背景颜色渐变,利用关键帧动画line-scale-pulse-out-rapid实现线条脉冲缩放动画,创建出节奏感强烈的加载成功视觉反馈。该效果适用于网页加载状态提示。
摘要由CSDN通过智能技术生成

如图,动态加载中动画,颜色线性渐变

html

<div class="loader-inner line-scale-pulse-out-rapid success">
          <div></div>
          <div></div>
          <div></div>
        </div>

css

/*动态分析图标*/
.line-scale-pulse-out-rapid.success > div {
  background-image: -webkit-linear-gradient(top, rgb(201, 115, 255), rgb(20, 11, 255));
}
.line-scale-pulse-out-rapid>div{
  width:3px;
  height:20px;
  margin-right: 0;
  display:inline-block;
  /*border-radius:2px;*/
  /*margin-right:2px;*/
  vertical-align:middle;
  -webkit-animation:line-scale-pulse-out-rapid .9s -.5s infinite cubic-bezier(.11,.49,.38,.78);
  animation:line-scale-pulse-out-rapid .9s -.5s infinite cubic-bezier(.11,.49,.38,.78)
}
.line-scale-pulse-out-rapid>div:nth-child(2),.line-scale-pulse-out-rapid>div:nth-child(4){
  -webkit-animation-delay:-.25s!important;
  animation-delay:-.25s!important
}
.line-scale-pulse-out-rapid>div:nth-child(1),.line-scale-pulse-out-rapid>div:nth-child(5){
  -webkit-animation-delay:0s!important;
  animation-delay:0s!important
}
@-webkit-keyframes line-scale-pulse-out-rapid{
  0%,90%{
    -webkit-transform:scaley(1);
    transform:scaley(1)
  }
  80%{
    -webkit-transform:scaley(.3);
    transform:scaley(.3)
  }
}
@keyframes line-scale-pulse-out-rapid{
  0%,90%{
    -webkit-transform:scaley(1);
    transform:scaley(1)
  }
  80%{-webkit-transform:scaley(.3);
    transform:scaley(.3)
  }
}
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值