motion
motion copied to clipboard
[BUG] Layout issue moving elements into or out of a scrollable container
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:
- Open CodeSandbox link
- 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