Skip to content
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

Animation trigger on component unmount #20

Open
jacobsmith opened this issue Aug 9, 2017 · 4 comments
Open

Animation trigger on component unmount #20

jacobsmith opened this issue Aug 9, 2017 · 4 comments

Comments

@jacobsmith
Copy link

Hi, I have a feeling I'm missing something obvious, but I'm having trouble understanding how to animate an element when it unmounts. For example, I have a list view and when an item is marked off, I want to animate it away. All of the examples I see seem to fire immediately.

If you could point me a bit in the right direction, I'll gladly write up some more documentation and issue a PR for it to help others! Thanks!

@nitin42
Copy link
Owner

nitin42 commented Aug 9, 2017

animate-components does all of its work in runtime and so it may be a little difficult to handle the animation when a component unmounts because it has a declarative api which means currently we cannot trigger an animation on unmount imperatively using this lib. What do you think ?

@nitin42
Copy link
Owner

nitin42 commented Aug 9, 2017

I'll gladly write up some more documentation and issue a PR for it to help others! Thanks!

I really appreciate this! I'll look more into this problem this weekend (a little busy with some other project right now) !

@jacobsmith
Copy link
Author

Great, thanks for the feedback! I may try some things on the library myself, just wanted to make sure I wasn't missing something!

@nitin42
Copy link
Owner

nitin42 commented Aug 9, 2017

Oh! Let me know what you experiment with 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants