Forum Discussion
AndreaBorsoi-5e
3 years agoCommunity Member
Trigger the Modern Player to expand the menu (to view) from a button
I would like to make the Modern Player Menu to expand (sliding-in from left to right in the player, to be in view) from a button in the master slide. This is similar an effect than clicking on the t...
SteveGannon
3 years agoCommunity Member
The following JavaScript (placed in an Execute JavaScript trigger), which was provided a while back from another community member, should do the trick. It hides the three vertical bars at the top of the player and toggles the menu/sidebar on/off via your button.
//Turn off the hamburger 'menu' icon
let hamburger = document.querySelector("#hamburger > div");
gsap.set(hamburger, { autoAlpha:0 });
//Toggle the sidebar on/off
document.querySelector("#hamburger > div").click();
Related Content
- 7 months ago
- 9 months ago