To use a builtin theme, simply include the theme style sheet:
<link rel="stylesheet" href="odometer-theme-default.css" />
| Name | Theme | |
|---|---|---|
| Default | default | |
| Minimal | minimal | |
| Car | car | |
| Plaza | plaza | |
| Slot Machine | slot-machine | |
| Train Station | train-station | |
| Digital | digital |
If you need to use multipled Odometer themes on a single page, do the following.
odometerOptions = { auto: false }; // Disables auto-initialization
// For each odometer, initialize with the theme passed in:
var odometer = new Odometer({ el: $('.odometer')[0], value: 123, theme: 'car' });
odometer.render();