I have been experiencing some inconsistent behavior with xaringanExtra:::use_freezeframe(). Most of the times seems to work but there are instances that some of the .gif files will be already playing when reaching the corresponding slide.
The issue seems to be present mostly when viewing the slides in chrome (e.g. not in Rstudio's viewer).
For example if I open in chrome and go back and forward between the two gif slides, it is not always the case that they will start from the beginning. I can tell however that use_freezeframe() works as when I click on the slide the animation stops and when I click again it starts from the beginning. However, the moment I turn on the slide with the animation sometimes it seems to be already playing rather than starting from the beginning.
I tried to create a reproducible example below:
---
title: "Presentation"
subtitle: ""
author: ""
institute: "RStudio, PBC"
date: "2016/12/12 (updated: `r Sys.Date()`)"
output:
xaringan::moon_reader:
self_contained: true
css: ["default", "custom.css"]
lib_dir: libs
nature:
ratio: '16:9'
highlightStyle: github
highlightLines: true
countIncrementalSlides: false
seal: false
---
```{r xaringanExtra-freezeframe, echo=FALSE}
xaringanExtra:::use_freezeframe()
```
---
<center>
<img src="animation_haz.gif">
</center>
---
<center>
<img src="animation_obs.gif">
</center>
---
I have been experiencing some inconsistent behavior with
xaringanExtra:::use_freezeframe(). Most of the times seems to work but there are instances that some of the .gif files will be already playing when reaching the corresponding slide.The issue seems to be present mostly when viewing the slides in chrome (e.g. not in Rstudio's viewer).
For example if I open in chrome and go back and forward between the two gif slides, it is not always the case that they will start from the beginning. I can tell however that use_freezeframe() works as when I click on the slide the animation stops and when I click again it starts from the beginning. However, the moment I turn on the slide with the animation sometimes it seems to be already playing rather than starting from the beginning.
I tried to create a reproducible example below: