JSFiddle - React, Tailwind, and code Playground
HTML
<div id="odometer" class="odometer">123</div>
CSS
</style><!-- This closes the open style tag above. Just a jsFiddle thing. Please ignore. -->
<!-- Odometer includes -->
<link rel="stylesheet" href="http://github.hubspot.com/odometer/themes/odometer-theme-minimal.css" />
<script src="http://github.hubspot.com/odometer/odometer.js"></script>
<!-- Extra styles for this example -->
<style>
.odometer .odometer-inside:before {
content: "$00";
}
.odometer {
font-size: 100px;
}
JavaScript
setTimeout(function(){
odometer.innerHTML = 456;
}, 1000);