Hi @Shaun Gorneau !
Thank you for the reply and your code works perfectly but actually, I have some advance animations in one of my projects and I tried to make a simple example in the codepen. I want to do it with timelines like I want to play TimeLine1 while opening the menu and TimeLine2 while closing it.
Please see the menu of this site https://designcanada.com/ how its menu animates and while closing, it animates to the other way.
Thank you very much for the support.