Hello, I would like some help solving an issue:
I've attached a CodePen with details of the implementation:
I have a menu that opens and closes, and the status of this menu is stored in the browser session (open/closed). When the initial status is "open", the animation plays normally ("start" -> "end").
The problem occurs when the initial status of the animation is "closed"; it should play ("end" -> "start"). I'm setting the position as follows:
if (!toggle) {