网页前端设计html/css/js制作创意动画进度条/数据占比cid1152+源码下载


Warning: Undefined property: stdClass::$maxbutton id="5" in /www/wwwroot/code.5g-o.com/wp-content/plugins/kama-clic-counter/class.KCCounter.php on line 733

html and css

 <!DOCTYPE html>
<html lang="en">
<head> 
  <title>Snowlake</title>
  <link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
  <link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
  
  <style>
   :root { 
    
  --color-red: #d75959; 
  --color-yellow: #f5c463;
  --color-green: #9ccd7e; 
    --color-blue: #5ca7db; 
    --rgb-black: 0, 0, 0;
   
}
      *{
          color: white;
      }
 
      body{
          font-family: 'Poppins', sans-serif;
          background-color: #000000;
background-image: linear-gradient(147deg, #000000 0%, #2c3e50 74%);
          height: 100vh;
          color: white;
      }
      
      .wrapper{
          margin-top: 150px;
      }
.progress-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
 
.progress-list li .line {
    position: relative;
}
.progressbar:not(.circle) svg,
.progressbar:not(.circle) svg path {
    border-radius: 20px;
}
.progressbar svg path:first-child {
    stroke: rgba(var(--rgb-black), 0.09);
}
.progressbar.border {
    border: 1px solid transparent;
    box-sizing: border-box;
}
.progressbar.border svg path:first-child {
    stroke: transparent;
}
.progressbar.line svg {
    height: 5px;
}
.progressbar.line.border svg {
    height: 4px;
}
.progressbar.circle {
    position: relative;
    margin: 0 auto 30px;
}
.progressbar.circle {
    width: 170px;
    height: 85px;
}
.progressbar.circle .progressbar-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    font-size: 40px;     
    display: flex;     
    align-items: flex-end;     
    justify-content: center;
    color: white !important;
    font-weight: bold;
}
.progressbar.circle .progressbar-text:after {
    content: "%";
    display: block;
    font-size: 20px;
    padding-left: 2px;
}
 
  
 
 
.progressbar.red svg path:last-child {
    stroke: var(--color-red)
}
 
.progressbar.yellow svg path:last-child {
    stroke: var(--color-yellow)
}
.progressbar.green svg path:last-child {
    stroke: var(--color-green)
}
 
 
 
 
.progressbar.blue svg path:last-child {
    stroke: var(--color-blue)
}
 
 
      h5{
          background: transparent;
          padding: 10px;
          width: 75%;
          margin: 0 auto;
          border-radius: 50px;
          border: 2px solid #ebebeb;
          font-size: 17px;
          color: white;
      }
      p{
          margin-top: 25px;
      }
    </style>
</head>
<body>
  
    <div class="wrapper image-wrapper">
      <div class="container inner">
        <div class="row">
          <div class="col-md-10 offset-md-1">
            <h2 class="title-color text-center">OUR PROGRESS</h2>
              <br><br><br>
               <div class="row text-center">              
              <div class="col-lg-3">
                <div class="progressbar circle blue" data-value="75"></div>
                <h5>New Visitors</h5>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing.</p>
              </div>
             
              <div class="col-lg-3">
                <div class="progressbar circle green" data-value="80"></div>
                <h5>Social Media</h5>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing.</p>
              </div>
                
              <div class="col-lg-3">
                <div class="progressbar circle red" data-value="100"></div>
                <h5>Referrals</h5>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing.</p>
              </div>
               
              <div class="col-lg-3">
                <div class="progressbar circle yellow" data-value="80"></div>
                <h5>Search Engines</h5>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing.</p>
              </div>
           </div>
         </div>
        </div>
        </div>
    </div>
   
  
  <script src="https://code.jquery.com/jquery-2.2.4.js"></script> 
  
  <script src="progressbar.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/waypoints/2.0.3/waypoints.min.js"></script>  
  <script src="https://cdnjs.cloudflare.com/ajax/libs/Counter-Up/1.0.0/jquery.counterup.min.js"></script>
  
  
  
  <script>
    $(document).ready(function() {
  'use strict';
   
   
  var $pline = $('.progressbar.line');
  var $pcircle = $('.progressbar.circle');
  $pline.each(function(i) {
    var line = new ProgressBar.Line(this, {
      strokeWidth: 6,
      trailWidth: 6,
      duration: 3000,
      easing: 'easeInOut',
      text: {
        style: {
          color: 'inherit',
          position: 'absolute',
          right: '0',
          top: '-30px',
          padding: 0,
          margin: 0,
          transform: null
        },
        autoStyleContainer: false
      },
      step: function(state, line, attachment) {
        line.setText(Math.round(line.value() * 100) + ' %');
      }
    });
    var value = ($(this).attr('data-value') / 100);
    $pline.waypoint(function() {
      line.animate(value);
    }, {
      offset: "100%"
    })
  });
  $pcircle.each(function(i) {
    var circle = new ProgressBar.SemiCircle(this, {
      strokeWidth: 5,
      trailWidth: 5,
      duration: 2000,
      easing: 'easeInOut',
      step: function(state, circle, attachment) {
        circle.setText(Math.round(circle.value() * 100));
      }
    });
    var value = ($(this).attr('data-value') / 100);
    $pcircle.waypoint(function() {
      circle.animate(value);
    }, {
      offset: "100%"
    })
  });
   
  $('.counter .value').counterUp({
    delay: 50,
    time: 1000
  });
   
  $(".countdown").countdown();
   
    
});
    
    </script>
</body>
</html>

 

js

 在线演示


让链接同时具备两种打开方式

获取源码: counter new
下载数:99人次, 文件大小: 14.4 KB, 上传日期: 2021年-4月-21日

公众号回复:gcode  获取解压密码

qrcode_for_gh_6ea2c28a1709_258 (1)

2,080 人查阅

一键获取本网站前端代码设计的所有源码

获取资源构建和完善自己的源码库
源码可以在本地直接演示
同时研究和体验 如何将一些具体的想法的实现过程
源码可以直接嫁接到自己的网站里复用
稍作修改成为自己的作品
下载 (4)

您需要先支付 8元 才能查看此处内容!立即支付

类似文章