【前端html+css3+js】实现背景文字渐变色以及js实现数字递增

1.实现文字渐变色

<style>
.text{
 background-image: -webkit-linear-gradient(bottom, rgb(7, 33, 119), rgb(151, 178, 252), rgb(0, 217, 255));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
}
</style>

2.实现圆以及边框渐变色

 <style>
        .circle {
            width: 100%;
            height: 100%;
            background: #fff;
            border-radius: 50%;
        }

        .content {
            width: 210px;
            height: 210px;
            box-sizing: border-box;
            padding: 5px;
            border-radius: 50%;
//边框色
            background-image: -webkit-linear-gradient(left, rgb(9, 64, 245) 0%, rgb(17, 75, 235) 30%, rgb(52, 134, 228) 60%, rgb(0, 217, 255) 90%);
        }

       
    </style>
<body>
<div class="content">
      <div class="circle">
</div>
</div>
</body>

3.js实现数字递增

<script>
 function NumAutoPlusAnimation(targetEle, options) {
      
        options = options || {};

        var $this = document.getElementById(targetEle),
            time = options.time || $this.data('time'), //总时间--毫秒为单位 
            finalNum = options.num || $this.data('value'),
            regulator = optio
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值