motion icon indicating copy to clipboard operation
motion copied to clipboard

[BUG] transitionEnd not waiting until end of transition - issue in sandbox from docs

Open jorgebef opened this issue 2 years ago • 5 comments

2. Describe the bug

The transitionEnd property inside a Variant causes issues when the animation is cancelled early. The issue has been introduced in version 10.6.0 and works correctly in 10.5.0 after testing in the sandbox provided below which is based on a sandbox from the documentation for this exact example.

https://codesandbox.io/s/framer-motion-transitionend-forked-xgczyd?file=/src/App.tsx

4. Steps to reproduce

Steps to reproduce the behavior:

The issue arises when using the transitionEnd property inside a variant or the animate property directly.

5. Expected behavior

The expected behavior is exactly what happens in version 10.5.0 where, when interrupting the animation, the transitionEnd is not applied and only is applied when completing or ending the transition successfully.

6. Video or screenshots

If applicable, add a video or screenshots to help explain the bug. Expected behaviour is as shown in this video:

https://github.com/framer/motion/assets/3082620/1d8c8755-6b9e-4b76-a7a5-71486cafdcd4

The issue is shown below:

https://github.com/framer/motion/assets/3082620/1cd30083-0238-4b4d-b42c-a0c336f8b5dd

jorgebef avatar Aug 28 '23 19:08 jorgebef

This is still an issue in v10.16.4

kaoz70 avatar Oct 02 '23 15:10 kaoz70

Can confirm! ☝️ I encountered this issue in my project as well and had to downgrade all the way back to v10.5.0 until further notice on this issue.

stefanweck avatar Oct 11 '23 16:10 stefanweck

Is this resolved? I'm facing the same issue in my project.

Szorcu avatar Nov 16 '23 16:11 Szorcu

This is still an issue as of 11.0.3

tpict avatar Jan 25 '24 19:01 tpict

Having this same issue with 11.0.7

tien avatar Apr 24 '24 02:04 tien