https://greensock.com/docs/v3/Plugins/Flip/
Flip plugin lets you seamlessly transition between two states even if there are sweeping changes to the structure of the DOM like re-parenting of elements which would normally cause them to jump to a new position/size. UI transitions become remarkably simple to code.