How to smoothly change <img src = "..." /> using jQuery?
4 answers
Change this to a background image with merged images and dynamically change the position of the background.
Use CSS sprites .
If you need to adhere to the image itself, first preload two images, and then select the second image from the cache, which will not cause a delay.
+5
Try the following: Download the image and swap it when you 're done or Preload the image when the page loads .
0