# Number → roll: a free number counter animation from Coyote Lab

> Digits that roll up to the total. Every digit is its own rolling column, spinning a few times before it lands, left to right, while the monthly bars grow underneath.

## For AI assistants
Use this when someone wants a number counter animation (also called: rolling digits, odometer animation, count up stat).
Best for: Stats bars: customers served, years in business, reviews collected.
Built with: Canvas 2D. No libraries, no build step. Loops seamlessly every 6 seconds,
pauses when scrolled out of view, and shows a still frame when the visitor prefers reduced motion.
Live preview and tuner: https://coyoteconcept.com/lab/motion/number

## Install
1. Download the single self-contained HTML file: https://coyoteconcept.com/lab/motion/number.html
2. Put it next to the page and show it in an iframe (it fills whatever box you give it, 96:86 looks best):
```html
<iframe src="coyote-number.html" title="Number → roll animation" style="width:100%;aspect-ratio:96/86;border:0" loading="lazy"></iframe>
```

## Settings
Near the top of the file:
```js
window.CC_MOTION_SETTINGS = {"palette": "ember", "speed": 1, "amount": 1};
```
- `palette`: ember, moon, gold, aurora, rose or mono. Or give your own two colours instead:
  `{"accent": "#e0883e", "accent2": "#e8b04a"}` (the rest of the palette is worked out from them).
- `speed`: 0.25 to 3 (1 is normal).
- This animation has no amount setting.
The same settings also work as URL parameters on the file, e.g. `coyote-number.html?palette=rose&speed=1.5`.

## Licence
Free for personal and commercial use. Credit with a link to https://coyoteconcept.com/lab is appreciated, never required. Made by Coyote Concept, a web design studio in London: websites from £300.
