Layout animations can animate elements between any two different layouts - all using performant transforms. Item reordering, accordions, open/collapse, button states - the list of use-cases is extensive. Enabling layout transforms is simple - just apply the layout prop. Or layoutId for animating between completely different elements.
React: https://motion.dev/docs/react-layout-animations
Vue: https://motion.dev/docs/vue-layout-animations
JS: https://motion.dev/docs/layout-animations