Open lujjjh opened 2 weeks ago
Hey, can you solved this bug? I have the same problem and I'm furious.
@bredigian In this example, only set transition
for whileInView
:
https://codesandbox.io/p/sandbox/framer-motion-issue-forked-6h53tq?file=%2Fsrc%2FApp.tsx%3A23%2C5
@bredigian In this example, only set
transition
forwhileInView
: https://codesandbox.io/p/sandbox/framer-motion-issue-forked-6h53tq?file=%2Fsrc%2FApp.tsx%3A23%2C5
okay, thanks you.
2. Describe the bug
When a
<Foo />
element is unmounted, a TypeError occurs because framer-motion attempts to animate the 'y' property from 10 to null.As a workaround, the transition can be relocated to the
whileInView
property. Nevertheless, it would be more ideal to prevent the TypeError from being triggered.3. IMPORTANT: Provide a CodeSandbox reproduction of the bug
https://codesandbox.io/p/sandbox/framer-motion-issue-hxv3pt?file=%2Fsrc%2FApp.tsx%3A20%2C17-20%2C28
4. Steps to reproduce
Steps to reproduce the behavior:
5. Expected behavior
No errors occur.