Lukas
(Lukas)
August 5, 2016, 9:40am
1
Hi,
I use jQuery to re-play animated gif’s when loading a scene and going back to scene. Code below reloads gif but does it twice. In effect animated gif is being reloaded twice during scene animation. Tried $(window).load but that doesn’t work at all. Help
<img id="eighty" src="VP.hyperesources/blank.png" width="200" height="200" />
<script type="text/javascript">
$(document).ready(function () {
$("#eighty").attr("src", "VP.hyperesources/animated.gif?" + Math.random());
});
</script>
MarkHunte
(Mark Hunte)
August 5, 2016, 10:01am
2
This thread may help you work something out
Hi.
I have an animated GIF that is set to play just once rather than loop. Placed within a scene it plays as you would expect. When I navigate away from the scene, and then back again, the GIF does not play again, it just displays the last frame.
This could be useful for some situations but I would ideally like it to trigger every time the scene is visited (which I would have expected to be the default). Is there a way to achieve this without any clever timeline jumping to force it?
Thanks.