I want to ‘restart’ a GIF by forcing the image to be reloaded in the timeline or if a user clicks.
I am wondering if Hype can fetch GIFs in an action (timeline og user), so a non-looped animation appear to run once every time when displayed.
If the animation was running in a loop there would be no challenge, but this is not what I’m going for.
Attempting this in conventional manner the GIF-animation is executed on scene-load (with or without the ressource preload option switched) thus only the last frame is displayed – and as a still image only.
Is there an option to achieve that the GIF-animation is executed (loaded) by a specific action?
Very elegant. Making the button trigger new scene – which then loads the gif-sequence – is a nice approach. Ill try to incorporate it in my setup and check it out.
Two questions:
(1) What do do mean with “is more a Chrome issue”?
(2) “Will also need to add a cache number on the end”: do I have to do this or is it an automatic part of the submitted js-test() function?
Thats not really what that example is about.. that was just illerstrating the going from and back to a scene and the gif restarting.. similar to what you want but you need from a different action than on sceneload to start the animation.
As I said.
In Safari for example the animation will just restart..