Second click not reseting text on navbar menu


I’m trying to make an animation where the text on the dropdown navbar menu
slides in from right to left when the menu is openend.

It works on the first click but the second click doesn’t reset the text.
It does work again on the 3rd one

Any advice?

The animation is on the succes page

Thank you!

Here is my public share link: LINK
(how to access public share link)