1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    30
    Vote Rating
    0
    exs is on a distinguished road

      0  

    Default Restart GIF animation

    Restart GIF animation


    I have a GIF animation in scene 1, after it goes to scene2 and then back to scene1, the GIF animation does not play. How can I have the GIF animation restart when we go back to scene1? Thx.

  2. #2
    Sencha User arnebech's Avatar
    Join Date
    Jun 2010
    Posts
    498
    Vote Rating
    9
    arnebech will become famous soon enough

      0  

    Default


    You could try reloading the image, something like this (untested).

    Code:
    var image = document.querySelector('#image-id img');
    var src = image.src;
    image.src = "";
    
    //option 1, not sure if it will work
    image.src = src; 
    
    //option 2, might cause a flash
    setTimeout(function(){
      image.src = src;
    },0)

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar