motion icon indicating copy to clipboard operation
motion copied to clipboard

[BUG] Layout issue moving elements into or out of a scrollable container

Open cweseloh opened this issue 2 years ago • 0 comments

2. Describe the bug

When moving elements (using layoutId) in or out of a parent element that has overflow:scroll or overflow:hidden, the element immediately disappears and doesn't appear again until it's inside the destination element.

3. IMPORTANT: Provide a CodeSandbox reproduction of the bug

https://codesandbox.io/p/sandbox/framer-motion-usescroll-element-scrolling-forked-zqvzdy

4. Steps to reproduce

Steps to reproduce the behavior:

  1. Open CodeSandbox link
  2. Click the "Move from Top Container to Bottom Container" button

5. Expected behavior

The box labeled "A" slowly moves from the top container to the bottom container without disappearing

6. Video or screenshots

(See Sandbox)

7. Environment details

Chrome 120.0.6099.217

cweseloh avatar Jan 15 '24 21:01 cweseloh