I’m working on a website where the pages are setup within individual scenes and the user can scroll to transition between them. The issue I’m having is that I want a menu (currently persistent symbol) to animate in on the second page (scene 2) and remain for the duration of the other scenes apart from when the user scrolls back to the home page (scene 1).
As shown in the example this all works but I want to hide the menu (trigger the “men_shrink” custom behaviour) on the unload of scene 2 instead of waiting for scene 1 to transition and load. The issue is if I set “men_shrink” to fire on the unload of scene 2 to hide the menu during the transition (which is the desired effect) it also does it when scrolling in the other direction to scene 3 where I need it to remain unchanged.
Im guessing I need to only call “men_shrink” when its detected that the user is scrolling to the previous scene (scene 1) when the current scene = scene 2 and then set to trigger “men_shrink” on the unload of the scene?
Any help would be great.
scrolling menu.zip (15.0 KB)