aholachek / react-flip-toolkit

A lightweight magic-move library for configurable layout transitions
MIT License
4.08k stars 137 forks source link

Entering elements do not have onAppear called when the flip animation is interrupted by another update #187

Open kelleghan1 opened 2 years ago

kelleghan1 commented 2 years ago

Thanks for the great package. I am wondering about the expected behavior for entering elements that trigger a flip animation which is then interrupted by more entering elements. Is it expected that the onAppear callback is canceled for interrupted flip animations? I have a simple onAppear function which fades the element in by adding a class, but if the flip animation is interrupted then the entering element just appears with full opacity and onAppear is only called for the most recent entering element. Thanks