Live visitors
Updates every two seconds.
Rolling number counter
Every digit is a column that rolls to its next value, the way an odometer does. Place value is tracked, so new digits roll in and separators glide instead of jumping. Any locale, any currency.
Revenue this quarter
Updates every two seconds.
/month
<link rel="stylesheet" href="tally.css">
<span id="total"></span>
<script type="module">
import Tally from './tally.js';
const total = new Tally(document.querySelector('#total'), {
value: 1248650,
locale: 'en-IN',
format: { style: 'currency', currency: 'INR', maximumFractionDigits: 0 },
});
total.set(1296650); // roll to a new value
total.format({ locale: 'en-US', format: { style: 'currency', currency: 'USD' } });
</script>