I am using reveal.js for my presentation. The presentation has some animated plots using plotly.js and chart.js. For performance reasons, I used addEventListner so that the animations run only when I reach to that slide. For example:
Reveal.addEventListener("slide2", function () {
// plot function here
}
When I export the slides to pdf using ?print-pdf, all the canvas elements are rendered blank. Is there a way to get around this so that the printed pdf contains at least the initial or final frame or any frame of these animated plots?
A similar question was asked here but that question was related to export-pdf on iframe elements. The suggested answer there to disable lazy-loading by using data-preload does not work in my case.