Skip to content Skip to sidebar Skip to footer

How Synchronize More Gif Pictures?

Is there any way, how to synchronize gif animations? Problem is that if they have same timing, but are loaded in different time, it can looks strange. I don't know, for example by

Solution 1:

GIF animations are not scriptable. The best you can do is load them via JavaScript, then insert them both into the DOM after they've loaded.

Something like this:

var img = new Image();
var imgCount = 0;
img.onload = loadCount;
img.src="....."var img2 = new Image();
img2.onload = loadCount;
img2.src="....."functionloadCount() {
    imgCount++;
    if(imgCount==2) {
       //insert IMG tags into DOM
    }  
}

Post a Comment for "How Synchronize More Gif Pictures?"