If you would like to export a flipbook (or scrolling site, etc with a non-looping animated GIF that you'd like to have play again when returning to its page, then add the following code to the JavaScript portion of the Resources section of the Export HTML5 with in5 dialog:
$(document).on('newPage', function(e, data) { $('img[src$=".gif"]').each(function(){ $(this).attr("src", $(this).attr('src')); }) });