Can you trigger an animation based on if the mobile nav is open/closed?

Clicking the body(any area outside the navbar) on mobile closes the navigation which is fine, but I have a lottie as the menu icon that when clicked plays and then toggles to navigation. The problem is that if the area outside the nav is clicked then it closes without the lottie reversing to its original state. Is there anyways to trigger an animation when the nav is closed even if it was closed by clicking anywhere on the body of the page? I’m using the standard webflow navbar.

1 Like