Hello. I was able to create a dropdown menu in hype. now when the user clicks on my button, the menu drops down. What I would like to to is have the menu do the reverse (go up) when the user presses again on it. How do I do that?
Iwould like to have the menu dropdown (open) when the user tap or click the pink box at the right corner and go up (reverse action) when the user taps again on the box
Have a transparent object cover the button when the menu is showing and attach your action to the transparent object, making sure that it also animates the object off the stage.
Create a duplicate of the button and set its visibiity and interaction off, then in the timeline for the drop down opening, make it visible. Set on mouse click for this duplicate button to continue timeline in reverse.
Thats the arrow image. If you go on the Actions tab and select ‘Ignore all pointer events’, it should fix that problem. Or group the button and the arrow and set the mouse over onto the group.