If you need help with the React part, just post an updated demo. Like I was trying to say in my previous post, you will probably need to assign a data-flip-id when swapping elements with map because it will not render the same element in the new position.   See the Pen OJzvOBv by GreenSock (@GreenSock) on CodePen