Open ghost opened 9 years ago
I made an example that reprocudes the issue http://jsfiddle.net/vdLe9y95/7/. Just look at page about minute and you will see what I'm talking about. It appears enough often. Also I shortly investigated this, I only was able to produce the issue if initialize odometer with some kind of round value, like 10000, 5000, 1000. If I setup it with 12345, the issue disappears.
The issue here is related to the various timing things going on. The JS options duration is set to 3 seconds, the CSS transition duration is still set to the default of 2 seconds, and the refresh
function self-calling setTimeout
occurs ever 5 seconds. Since these are misaligned in a timeline (and the timing of JS and CSS transitions are not guaranteed to be in sync with each other), this animation will definitely have some issues.
The issue occur simetimes while odometer value is increased. The least significant digit is increased by 1 when reels are stopped. When they farther start rotating the digit replaced with that it should be. E.g.