Some digital publishing systems in the past offered a way to toggle InDesign layers in the final output.
Since in5's interactivity is largely built from InDesign's interactivity, toggling layer visibility is not a built-in feature with in5.
However, in5 does support InDesign's ability to control Object States with Buttons.
Typically buttons can only control Object States on the same page. However, by applying the custom code from this article, you can effectively synchronize content across the entire document and toggle visibility across pages.