Stromzaehler
by Jens Kühn
HTML
<div class="odometer">111000</div>
CSS
</style><!-- This closes the open style tag above. Just a jsFiddle thing. Please ignore. -->
<!-- Odometr includes -->
<link rel="stylesheet" href="http://github.hubspot.com/odometer/themes/odometer-theme-car.css" />
<script src="http://github.hubspot.com/odometer/odometer.js"></script>
<!-- Extra styles for this example -->
<style>
.odometer {
font-size: 20px;
}
JavaScript
var exampleOdometerValue = 111111;
var exampleOdometer = new Odometer({ el: $('.odometer')[0], theme: 'car', value: exampleOdometerValue });
exampleOdometer.render()
setInterval(function(){
exampleOdometer.update(exampleOdometerValue++);
}, 3000);