简体   繁体   English

Framer-Motion Exit Animation 未在外部父级上触发

[英]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.

相关问题 React Framer-motion AnimatePresence 退出 animation 不起作用 - React Framer-motion AnimatePresence exit animation does not work react framer-motion中的退出动画没有出现 - Exit animations in react framer-motion not appearing Framer Motion 出口 animation 没有使用 react-router-dom 在手风琴上触发 - Framer Motion exit animation not firing on accordion with react-router-dom framer-motion - dom 节点在退出 animation 后不会立即卸载 - framer-motion - dom node does not unmounts immediately after exit animation 应用运动来反应组件 Framer-Motion - Apply motion to react component Framer-Motion framer-motion,有没有办法在组件渲染后启动 animation,css..etc.. 全部完成 - framer-motion, is there a way to start animation after component's render,css..etc.. all completed 成帧器运动:Animation 不会循环 - Framer Motion: Animation Will not Loop NextJS,framer-motion:如何让 animation 仅在初始页面加载时触发并每 12 小时重置一次? - NextJS, framer-motion: How do I make an animation fire only on initial page load and reset every 12 hours? 使用 framer-motion 汇总,isPropValid 情感 function 错误 - Rollup with framer-motion, isPropValid emotion function error 使用 framer-motion 为 react-router 设置动画的问题 - Troubles animating react-router with framer-motion
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM