I’m trying to do a hamburger menu in all views that takes the entire screen when open. My idea is to have the background fade in from 0 opacity to 100 when opening and vice-versa when closing. I figure out the fade-in part by having the open menu duration on 0s (all the other options don’t matter) and having an interaction when clicking to go from 0 opacity to 100.
My problem is that since the duration is 0, when you close the menu I can’t animate the other elements because the menu is closing instantly. Is there any way I can delay the menu closing when clicking so the other elements can finish their interactions and then the bg fades out?