Closing current popup with javascript

This is the way I would do it.
First I would use.

So that you can use one Symbol with instances of it.

I would then put the button in the symbol And have it continue a popup timeline.
The timeline would use a pause and got to time in timeline with reverse.
This creates a toggled button.

At the begining of the timeline I would have the call to the JS.
The JS will look for all the symbole Instances with the name popup and reverse the popup timeline of each. We would need to check that we are not doing so for a running timeline..

The hype-symbol-override-extension. ( we put the cdn linked file in the Head)

Is used to set the Inner text of each button and info pop up.

Screenshot 2021-04-27 at 16.11.13



We can also let the group that all the symbols are in call the same JS. This will allow the user to click on the scene area ( where the group is expanded to ) and close all open popups.

infographic dummy Hypeforum. mhv1.zip (27.6 KB)

1 Like