-
-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] AnimatePresence with mode=popLayout doesn't consistently trigger opacity exit animations on elements with layout #2416
Comments
Interestingly if I add a different prop to the |
Am experiencing the exact same issue, but in a different setup. There seem to be cases where Here's an example. If you slowly hover over the dots on the right, it works as expected. However, once you start going faster, it sometimes bugs and multiple divs remain visible |
Hey @mattgperry, Could you help or propose a workaround about this well documented issue from @samselikoff . We are also experiencing this issue in a lot of animations since 11.0.11 release. |
This bug is still prevalent, any updates or workarounds? |
Can confirm, still an issue |
@RareSecond can confirm. I faced a similar issue as described in #2416 (comment) recently. Have you found any workaround yet, by chance? Tested on: |
Bug since version 11.0.11. How can we help @mattgperry ? |
2. Describe the bug
Motion elements with
layout
andexit
animations don't always run their exit animations if they're inside an<AnimatePresence>
that has a mode of "popLayout".3. IMPORTANT: Provide a CodeSandbox reproduction of the bug
https://codesandbox.io/p/devbox/github/samselikoff/2023-11-25-framer-motion-pop-layout-bug/tree/main?file=%2Fapp%2Fpage.tsx%3A9%2C11
4. Steps to reproduce
Steps to reproduce the behavior:
Behavior seems to continue, where the fade-out only happens for every other item.
5. Expected behavior
Exit animation is always applied.
6. Video or screenshots
Screen.Recording.2023-11-25.at.10.25.14.PM.mov
The text was updated successfully, but these errors were encountered: