[英]Framer-Motion Exit Animation not firing on outer parent
Using AnimatePresence
here from framer-motion
and the exit animation of the outer parent does not seem to fire.在framer-motion
和外部父级的出口 animation 使用AnimatePresence
似乎没有触发。
The enter animations fire for all 3 elements.输入动画会为所有 3 个元素触发。 For the exit animaions, only the 2 children's exit animations fire.对于退出动画,只有 2 个孩子的退出动画会触发。 The outer parent vanishes with no exit animation.外部父级消失,没有出口 animation。 What gives?是什么赋予了?
CodeSandbox: https://codesandbox.io/s/dusty-badger-forked-yu5xm?file=/components/overlay.js CodeSandbox: https://codesandbox.io/s/dusty-badger-forked-yu5xm?file=/components/overlay.js
This was a confirmed bug with transition: { when: "afterChildren" }
and has been fixed in framer-motion@3.5.3 .这是一个已确认的带有transition: { when: "afterChildren" }
的错误,并已在framer-motion@3.5.3中修复。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.