Switching layouts without teleporting. A view switcher that rearranges the same items into a grid and animates each from where it was. The trick This is FLIP by hand: I record every item's rect, switch the layout class, then animate from the old offset to none.

Source: [Dev.to](https://dev.to/uimotion/building-a-list-to-grid-without-a-framework-5a1o)

Sponsored