HTML5
50%CSS3
75%
.progress-title{ font-size: 18px; font-weight: 700; color: #000; margin: 0 0 10px; } .progress-outer{ background: #fff; padding: 5px 60px 5px 5px; border: 5px solid #bebfbf; border-radius: 45px; margin-bottom: 20px; position: relative; } .progress{ background: #bebfbf; border-radius: 20px; margin: 0; } .progress .progress-bar{ border-radius: 20px; box-shadow: none; animation: animate-positive 2s; } .progress .progress-value{ font-size: 20px; font-weight: 700; color: #6b7880; position: absolute; top: 3px; right: 10px; } @keyframes animate-positive{ 0%{ width: 0; } }
$(document).ready(function(){ $('.progress-value > span').each(function(){ $(this).prop('Counter',0).animate({ Counter: $(this).text() },{ duration: 1500, easing: 'swing', step: function (now){ $(this).text(Math.ceil(now)); } }); }); });