Just an update, I was able to get the toggle function working, so I don't need help on this particular issue anymore, but a couple of new issues came up upon getting toggle working.
I want to have the pause on hover functionality working along with this toggle button. The toggle button is in the slide, if that makes a difference. Pause on hover isn't working because when the toggle button sees that the slide is paused, it toggles it to resume instead of remaining paused.
The second thing I'd need help with is if there is any way to not make the transition to the next slide immediate when clicking the resume button. This is a play/pause button with an audio clip. If someone pauses it, it jumps to the next slide immediately. I'd like it to not do that.
In case this is all complicated to read, here is what I would ideally like to happen.
- -slideshow is playing by default (this works)
- -hovering the slide pauses the scrolling (the toggle button breaks this)
- -the play/pause button pauses the slideshow, and resumes it when the clip is paused (this works)
- -the play/pause button respects the pause on hover, even though it is a toggle. Can I make it so the play pause button pauses the slideshow no matter what as long as it is being hovered, and the toggle only comes into effect with clicking? (can't figure this one out)
Thanks!