I can use the --
operator to perform gradual reveals of slide content with xaringan, but is there a way to hide elements after they have been displayed?
For instance, in the example below I show a title and two plots with a gradual reveal between each. I also have a make-believe operator -hide-
that would ideally hide the first plot before revealing the second to avoid overcrowding my plot.
I can make a duplicate slide as a short-term fix, but hiding elements is a common practice in slide animations and I wanted to see if xaringagn supported it.
---
# slide title
--
```{r}
<my_cool_plot>
```
-hide-
--
```{r}
<next_iteration_of_my_cool_plot>
```