Forum Discussion
HoneyTurner
2 days agoCommunity Member
Toggle Play button mid-scene
I have a slide that plays video narrative for half the scene, then pauses the timeline until the user clicks the button. While paused, I do not want the user to be able to avoid the button by pres...
- 2 days ago
Are you sure you don't want to use visibility = "hidden" and visibility = "visible"? The keywords "none" and "inline" normally go with display rather than visibility.
Nathan_Hilliard
2 days agoCommunity Member
Are you sure you don't want to use visibility = "hidden" and visibility = "visible"? The keywords "none" and "inline" normally go with display rather than visibility.
- HoneyTurner4 hours agoCommunity Member
I've confirmed, your solution works. It looks like I may have had a combination of visibility and display during my testing, giving me inconsistent results. Now that it's all properly paired, it's working.
Hide:
document.getElementById('play-pause').style.visibility = "hidden";
Show:
document.getElementById('play-pause').style.visibility = "visible";