score:5

Accepted answer

Take a look at this:

https://codepen.io/anon/pen/BYvVqP

I just used a state to store the classes.

className={this.state.animationClass}

Related Query

More Query from same tag