Reload GIF on page refresh and tab change

Hello hello,

I’m trying to reload/refresh a GIF every time the page is refreshed, as my GIFs are not looping GIFs.

I also use webflow tabs to tell a story that uses GIF animations, and while I have successful ‘Replay’ buttons in place, I’d also like the tab change to trigger the replay mechanism.

I tried to use the code from this thread in 2014 to no avail:

You can view my project here:


Thank you so much to whoever points me in the right direction!