animate-components icon indicating copy to clipboard operation
animate-components copied to clipboard

Animation trigger on component unmount

Open jacobsmith opened this issue 8 years ago • 4 comments

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!

jacobsmith avatar Aug 09 '17 12:08 jacobsmith

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 avatar Aug 09 '17 14:08 nitin42

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) !

nitin42 avatar Aug 09 '17 14:08 nitin42

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

jacobsmith avatar Aug 09 '17 19:08 jacobsmith

Oh! Let me know what you experiment with 😀

nitin42 avatar Aug 09 '17 21:08 nitin42