motion icon indicating copy to clipboard operation
motion copied to clipboard

[BUG] The staggerChildren exit transition is not working within AnimatePresence

Open sahebyuvrajsingh opened this issue 1 year ago • 1 comments

I am unable to get the staggerChildren working on conditionally rendered navigation within AnimatePresence, specially for the exit part. I am stuck on this part since 2-3 weeks now. I have mentioned the sandbox here within which replicates my exact situation. Please can anyone have a look into it, I would be really glad and grateful.

Minimal Reproduction https://codesandbox.io/p/sandbox/cool-tereshkova-xzdt6y

Framer Motion - StaggerChildren Error

sahebyuvrajsingh avatar Oct 20 '24 13:10 sahebyuvrajsingh

I looked at the code in your sandbox and I noticed that you use AnimatePresence twice. I removed one and your code now seems to be working.

https://codesandbox.io/p/devbox/youthful-zhukovsky-ppdtxy

bosbode avatar Mar 25 '25 16:03 bosbode