Reset a gif on a layer - without Javascript

Hi everyone,

I have found a thread past 5 years about how to reset a gif with javascript, (
however I was wondering if since then there is an easier way to handle it:
I have an animated gif on a separate layer, with a button to "stop" animation - when you click it it hides current layer with a gif and I am back on my main layer, from which I can "play" the animation by showing the layer with gif again.
However the layer does not restart but resumes: the gif "remembers" its last frame and starts from there.
Is there any possibility to define a trigger which will reset the layer with the gif, to play it from the beginning?
Thank you very much.

4 Replies