motion icon indicating copy to clipboard operation
motion copied to clipboard

[BUG] positionTransition doesn't get called when an adjacen element changes its height

Open tretyakvl opened this issue 6 years ago • 1 comments

2. Describe the bug

In the example below the same motion component behave differently depending on how deep it is in the tree. The one higher doesn't transition when an adjacent element changes its height.

3. IMPORTANT: Provide a CodeSandbox reproduction of the bug

https://codesandbox.io/s/condescending-swirles-xsn09

4. Steps to reproduce

Steps to reproduce the behavior:

  1. Go to the sandbox above
  2. Click toggle 1 button
  3. Observe

5. Expected behavior

I expect the outside div in the example to transition its position.

tretyakvl avatar Jan 21 '20 13:01 tretyakvl

Closing as positionTransition has been removed. With the new layout prop you can group sections of the tree using AnimateSharedLayout.

mattgperry avatar Sep 29 '20 08:09 mattgperry