How does one close a hamburger menu with a widget

I am having problems with triggering a second widget to act as the close menu button. Adding a second trigger to animate the hamburger menu opacity to 0 and move off the screen does not work as it isn’t separate to the first set of animation triggers of opening the hamburger menu in the first place. How most conveniently do I fix this problem?

Thanks, Emily.