The picture shows an approximate diagram.
The structure only works forward. When, by analogy with clicks to the next slide, I made a button with a transition to the previous slide, it was not reflected - there was a blank screen.
Because it didn’t work correctly or the onclick attribute= " document.getElementById (‘q1’). style. display= ‘block’;"
Interactions toggle class, toggle visibility were triggered incorrectly.
If anyone can figure out what’s going on, I’d appreciate it. I’ll attach the source file.