it comes down to three rules, and each one fixes a bug you only see once you look for it.
direction belongs to the value
the first is that direction belongs to the value, not to the digit. 1299 to 1301 runs the tens from 9 to 0, whose own shortest path is downward, which puts one column travelling backwards inside a number that went up, so every column takes the sign of the whole.
identity belongs to the place
the second is about identity rather than motion: columns keyed by their position in the string are handed their neighbour's digit the moment a place is added or dropped, so 1234 losing its thousands rolls all three survivors to show digits that never moved. keyed by place value, nothing moves that did not move.
a fixed advance
the third is a fixed advance per column, without which the readout shivers where it stands.
take it with you
three steps, and the stage above runs in your own project.
install
nothing to add. it runs on react alone, 18 or newer.
copy
4 files, kept together in one folder, odometer/. the styles travel with them.