</> ConvertAtlas Developer Tools
Bootstrap 5 · Intermediate

SVG Progress Ring

An SVG ring that animates to a percentage 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 text-center" style="max-width:280px"><div class="card-body">
  <svg viewBox="0 0 120 120" style="width:120px;height:120px;transform:rotate(-90deg)"><circle cx="60" cy="60" r="52" fill="none" stroke="#e9ecef" stroke-width="10"/><circle id="prCirc" cx="60" cy="60" r="52" fill="none" stroke="#0d6efd" stroke-width="10" stroke-linecap="round" stroke-dasharray="327" stroke-dashoffset="327" style="transition:stroke-dashoffset .8s"/></svg>
  <div class="mt-2"><button class="btn btn-primary btn-sm" id="prBtn">Load 75%</button></div>
</div></div>
document.getElementById('prBtn').onclick=function(){var c=document.getElementById('prCirc');c.style.strokeDashoffset=327-(327*0.75)};
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.