To make a non-looping animated GIF replay when you return to its page, paste the following code into the JavaScript portion of the Resources section of the Export HTML5 with in5 dialog (in5 > Export HTML5 with in5...):

$(document).on('newPage', function(e, data) { $('img[src$=".gif"]').each(function(){
    $(this).attr("src", $(this).attr('src'));
}) });