Closed oSethoum closed 9 months ago
@mattgperry can this be added?
+1 This would be useful for a SolidJS project I am working on. I want to be able to animate exits for items that are being deleted, and I want to be able to trigger the true deletion of an item only after its animation has been completed. This would ensure that the container component is not immediately re-rendered, which currently cancels the animation.
This should be very easy to add.
As a workaround you probably can listen to motioncomplete
on parent element and rely on event bubbling up.
Also you can resolve the elements returned from <Presence>
with children()
, and observe as they change.
This is now a wontfix, see https://github.com/motiondivision/motionone/discussions/241
Hopefully future maintainers will have more time to take a look at this one!
Is your feature request related to a problem? Please describe. the
Presence
component doesn't have anonExitComplete
callback propsDescribe the solution you'd like a way to add callback when the animation the exit transition finishes.