Hey,
I see the issue, Anyway In your particular use case you can use “collapsed on load” instead, and it should work fine and achieve the result that you want. Im attaching a screen shot and the code
// The code in this file will load on every page of your site
$w.onReady(function () {
// Write your code here
});
export function button5_click(event) {
$w("#button5").link = "/studio";
$w("#gearupMenu").collapse();
$w("#studioMenu").expand();
}
export function button6_click(event) {
$w("#button6").link = "/home";
$w("#gearupMenu").expand();
$w("#studioMenu").collapse();
}
Another way is to use the corvid timeline API, if you want the menus to animate in and out.
One more thing to go with that… Any chance you know if there is a way to show an element based of the previous page they were on?
Page A and B have a different menus, C has no menu. If a person goes from page A to C is there a way to show the menu from A …or if a person goes from page B to page C the menu from B would be shown.