U
U
Username2018-10-10 11:18:14
Animation
Username, 2018-10-10 11:18:14

How to implement animation through ReactCSSTransitionGroup?

Good afternoon!
When changing the array index, after a certain time interval, the following picture with animation should be displayed, but the animation, unfortunately, works only once when entering the page.
How to make an animation show when changing the array index?
CodeSandBox: https://codesandbox.io/s/mq0kyr80p

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-10-10
@dalv_happy

Set a key for the image:

<img src={data.url} key={data.url} width="100%" alt="" />

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question