< span class= "price" data-price= "123.59" data-starttime= "1509809876" > 123.59
< span class= "price" data-price= "255.76" data-starttime= "1509810123" > 255.76
there are several similar forms in the list page, with a price reduction of 0.10 yuan per second, then the number in the span continues to become smaller. The current problem is that each time the first price will move, and the rest will not move. Another problem is that I use settimeout to constantly get the current time and data-starttime to determine whether the price reduction time has begun, resulting in faster and faster animation flatness of requestAnimationFrame
.ask for advice