-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Animate inside AnimateGroup ignores complete #56
Comments
Hi @stroborobo, Can you try with I will update the doc to exclude The reason I didn't want to support let me know if this makes sense and see if cheers |
I see, thanks for the fast reply. Turns out I didn't really need it in the first place, so I'm just using two independent Animations. But I'll keep your advice in mind for later :) |
no worries mate, happy to help with issues 👍 |
going to close this issue, feel free to reopen if have more questions |
For the onComplete callback instead of using a timer, you could use a element.addEventListener('transitionend', () => {
onComplete && onComplete();
}); |
That would be amazing. Please send a PR. |
No problem, I'll look at it this weekend. Not sure how to go about implementing this feature in the hooks though. Thinking of passing a ref |
lol maybe borrow react hook form's API, |
Never used react hook forms but I'll take a look at it |
I've added the event listener but getting a few warning from jest. I think it has something to with the onComplete event firing after the test has completed. Im going to add a onComplete callback for animation keyframes. You can view the progress here for now repo |
that's awesome! @harry-sm |
Describe the bug
When an Animation with a complete prop is placed inside of an AnimationGroup the complete styles are not applied.
To Reproduce
https://codesandbox.io/s/animate-components-in-sequences-e18mv
Expected behavior
The completion styles are applied after the animation is completed.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: