Motion
RollingNumber
A number that rolls into place like an odometer, and turns once more on hover. The real value is in an sr-only copy.
Preview
128hover to roll
Installation
// Resolves dependencies, copies the source, and installs npm packages automatically.
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | string | - | Whole number. Commas stay still |
| cycle | number | 0 | Change it to roll a full turn |
| delay | number | 0 | Entrance delay. 0 after interaction |
| height | number | 34 | Height of one digit in px |