Go to the library’s page and download a zip file with the library or fire up bower:
$ bower install odometer
Include the js library, for example
Include the css for the theme of your choice, for example
Create an element with the CSS class
.odometer and the library will initialise automatically.
Check out the documentation if you need more configuration options.
You can update the value by setting the element’s
innerText, or by using jQuery’s