The seedlings in the picture have three growth states. Use the countdown method to dynamically change the src in the img tag.
It performs well on Android. On iOS, it counts once and the seedlings flash once.
I don’t know the reason. Can I ask for a solution?
js is written like this (very scumbag, don’t spray~)
我想大声告诉你2017-05-19 10:18:06
First, preload the image
Just change the src attribute of the image every time to reduce unnecessary rearrangements
我想大声告诉你2017-05-19 10:18:06
Combine the picture into a Sprite picture and modify the display coordinates of the picture