I'm having basically the same issue that was listed here:
A mouse click takes a user to an animated GIF and it works fine the first time they click but when they click again, the GIF won't play again. There's an answer to this question in the post I listed but the link to that solution is broken. Can anyone help me out?
It seems you have to reload your gif file. Webkit browsers (Safari, Chrome and Opera) requires that.
See post #3: Animated gif stops midstream You'll find a demo file.
If you don't succeed send me your work using a private message.
Thank you so much! This is exactly what I was looking for!