</> ConvertAtlas Developer Tools
Bootstrap 5 · Beginner

GSAP Count-Up

A number that counts up with eased motion, via GSAP.

Requires Bootstrap 5, GSAP. 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>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"></script>
<div class="card border-0 shadow-sm text-center" style="max-width:300px"><div class="card-body"><div class="display-4 fw-bold text-primary" id="gcNum">0</div><div class="text-secondary">Happy customers</div><button class="btn btn-sm btn-primary mt-2" id="gcBtn">Animate</button></div></div>
document.getElementById('gcBtn').onclick=function(){var o={v:0};gsap.to(o,{v:9842,duration:2,ease:'power1.out',onUpdate:function(){document.getElementById('gcNum').textContent=Math.floor(o.v).toLocaleString()}})};
Free to use.This component uses Bootstrap 5, GSAP (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.