Open gabrielalan opened 8 years ago
Yes, I came up this problem too. And after I add defaultStyles, it works. I don't know why willEnter doesn't work. Eh, well, my problem is there was no animation after first rendering, not adding. Left my words out.
I realize that is necessary to use spring on the styles prop, like this:
styles={this.state.items.map(item => ({ key: item.key, style: {width: spring(item.size), height: spring(item.size)}, }))}
So thanks guys, I think that resolves the problem.
Ah, haha, -_-! I didn't notice it....
This is not mentioned in the documention, or have I overlooked anything? Is there a reason for that?
Hello guys, sorry for posting again almost on the same day, but I need to clear my mind about willEnter function.
I'm trying to use the TransitionMotion example from the README:
You'll be notice that I added willEnter no the example, but when I add the element, the animation dont fire for this new element. What I'm doing wrong? Thanks
Ps: I'm not using ES2016.