Skip to content

Avoid Reload of a slide to go to the first slide #504

Answered by yhatt
grumpyf0x48 asked this question in Q&A
Discussion options

You must be logged in to vote

Marp's HTML slide is one simple HTML file, so if you request a full page reload, you cannot avoid the first page being briefly displayed until the assets for each slide have finished loading.

Therefore, it would be more efficient to reload only the specific GIF image, to restart the animations from the beginning. In exported HTML slide, writing a script like the following allows you to click on a GIF image to reload it, prompting a replay. (Allow using HTML tags and scripts on Marp tools you are using. Depending on the browser's cache situation, there may be cases where the replay does not occur).

![](https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif)

<sc…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@grumpyf0x48
Comment options

Answer selected by grumpyf0x48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants