Animated Skill Bars
Skill progress bars that animate to their values on click.
Requires Bootstrap 5. Add the CDN tags below to your page (styles in
<head>, scripts before </body>). The downloaded file already includes them.<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"><script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script><div class="card border-0 shadow-sm" style="max-width:340px"><div class="card-body">
<h6 class="fw-bold mb-3">Skills</h6>
<div class="mb-2"><div class="d-flex justify-content-between small"><span>JavaScript</span><span>90%</span></div><div class="progress" style="height:6px"><div class="progress-bar bg-warning sk" data-w="90" style="width:0;transition:width 1s"></div></div></div>
<div class="mb-2"><div class="d-flex justify-content-between small"><span>CSS</span><span>80%</span></div><div class="progress" style="height:6px"><div class="progress-bar bg-info sk" data-w="80" style="width:0;transition:width 1s"></div></div></div>
<div><div class="d-flex justify-content-between small"><span>PHP</span><span>70%</span></div><div class="progress" style="height:6px"><div class="progress-bar bg-primary sk" data-w="70" style="width:0;transition:width 1s"></div></div></div>
<button class="btn btn-sm btn-primary mt-3" id="skBtn">Animate</button>
</div></div>document.getElementById('skBtn').onclick=function(){document.querySelectorAll('.sk').forEach(function(b){b.style.width=b.dataset.w+'%'})};Free to use.This component uses Bootstrap 5 (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.