</> ConvertAtlas Developer Tools
Bootstrap 5 · Beginner

GSAP Animated Stat

A gradient stat card that counts up smoothly, 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 text-white" style="max-width:320px;background:linear-gradient(135deg,#0d6efd,#00d4ff)"><div class="card-body text-center">
  <div class="display-4 fw-bold" id="asNum">0</div>
  <div class="opacity-75">Active subscribers</div>
</div></div>
var o={v:0};gsap.to(o,{v:24819,duration:2.2,ease:'power2.out',onUpdate:function(){document.getElementById('asNum').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.