Flip Menu.
flip between two many different elements
I add dinamically the atributte data-flip-id="matched" when click at a menu element.
and work with a "previus active" and a "current active" element to make de animaiton. So, when the animation ends, the current element is stored as the prev element and gets ready for another click.
but...I'm having a problem with the Flip behavior. I don't understand why it only works in one direction.
What I notice is that when I go from right to left (and fail), the transform animation is on the initial position element. I believe that is the issue, but I'm not sure how to solve it.
https://codepen.io/Gon82/pen/dyaZvRm