framer / motion

Open source, production-ready animation and gesture library for React
https://framer.com/motion
MIT License
22.27k stars 733 forks source link

[BUG] AnimatePresence skips 3D Elements #2639

Open koljam opened 3 weeks ago

koljam commented 3 weeks ago

2. Describe the bug

AnimatePresence skips motion.mesh elements when there are more than 4 currently exiting.

3. IMPORTANT: Provide a CodeSandbox reproduction of the bug

A CodeSandbox minimal reproduction Important File: src\scene\Experience.jsx

4. Steps to reproduce

Steps to reproduce the behavior:

  1. Go to CodeSandbox
  2. See the animation
  3. See boxes vanishing every ~5 elements

5. Expected behavior

Every box should go up and vanish when this animation is done.

6. Video or screenshots

See CodeSandbox

7. Environment details