I have figured out how to make it start at a certain number and how to smoothly transition to another number, but don't know how to increase number slowly.
The "Your heart has beaten approximately ... times in total" is a good example of what I am trying to achieve.
My attempt:
setTimeout(function() {
odometer.innerText = 456;
}, 1000);
<!-- Odometr includes -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/themes/odometer-theme-car.min.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/odometer.min.js"></script>
<div id="odometer" class="odometer odometer-theme-car">123</div>