Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Blinking on Enter and Exit Animations with layoutId and AnimatePresence #2616

Open
ibelick opened this issue Apr 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ibelick
Copy link

ibelick commented Apr 10, 2024

1. Read the FAQs馃憞

2. Describe the bug

When using AnimatePresence with elements that have a layoutId, the components blink upon entering and exiting. The expected smooth transition is interrupted by a sudden change in opacity, making the components momentarily disappear or flash.

3. IMPORTANT: Provide a CodeSandbox reproduction of the bug

https://codesandbox.io/p/sandbox/frosty-fast-dc5lt8?file=%2Fsrc%2FApp.tsx

4. Steps to reproduce

To observe the behavior:

Open the provided CodeSandbox link.
Click on any item to select it and trigger the animation.
Notice the blinking as the selected item enters or exits the view.

5. Expected behavior

The expected behavior is a smooth transition for components entering and exiting without any blinking. Elements with layoutId should animate their layout changes seamlessly under AnimatePresence.

6. Video or screenshots

blinkingissue.mp4

7. Environment details

OS: macOS 13.0
Browser: Chrome 123.0.6312.105
Framer Motion version: 11.0.25

@ibelick ibelick added the bug Something isn't working label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant