Play timeline forward on one click, reverse on the next

I have a little menu icon that animates into a close icon. I want it to animate on the first click, then animate in reverse on the second click. Do I need two completely separate timelines? What’s an easy way to do this?

One timeline, forward and reverse animation in it with a timeline action (pause) in the middle (where the transition changes) then a Mouse Click action of Continue Timeline… with the “can restart” checked