How can I create a smooth closing transition for a nested navigation menu in Figma?

Currently, when I click the back chevron icon, the menu items don’t close smoothly in the prototype. However, I’ve noticed that the menu disappears when I hover over it back.
Does anyone know to fix this?
Any tips on achieving a seamless closing animation for the nested navigation menu?"
See the video here: