Turning off the reveal component during @media print

In my project, I have a report page that is meant to be printed out by users.

I accomplished this through @media print CSS and an onClick interaction that runs window.print().

To upgrade the web viewing experience, I added a reveal component to make the sections show upon scroll. This however, seems to hide all the bottom sections when using the built-in browser print.

Is it possible to turn off the reveal component when printing a page? Or is there some way to simulate scrolling to the bottom of page before/during window.print()?

Relevant links:

1 Like