LayoutId shared element transitions across nested trees – missing constraint
Goal Use Framer Motion’s layoutId to animate a component that appears in two different parts of the component tree, potentially spanning separate React contexts or deeply nested DOM hierarchies. Uncertainty While layoutId is documented to treat elements with the same ID as a shared element, the behavior when the DOM structure changes dramatically (e.g., a co