I have a problem with blinking images with large images. In my body I have 5 images:
<img id="img1" src="img1.png" width="250"> <img id="img2" src="img2.png" width="250"> <img id="img3" src="img3.png" width="250"> <img id="img4" src="img4.png" width="250"> <img id="img5" src="img5.png" width="250">
and one I drag one of them using jQuery UI, all change their src and dragend:
function dragStart() { $('#img2').attr('src','newimg2.png'); $('#img3').attr('src','newimg3.png'); $('#img4').attr('src','newimg4.png'); $('#img5').attr('src','newimg5.png'); }
so good, so good. But I need to use large images (2000 x 2000 pixels), because all the images can be clicked, and then they will liven up to the full size of the viewport so that they will not be pixelated.
$this.animate( { width: 1800, top: -650, left: -250 }, { duration: 4000, easing: 'easeOutElastic' })
I think they flicker due to the size of each image. Do any of you have an idea how to prevent this flicker on images if all src are changing at the same time?
Thank you for your efforts.
source share