How it works...

We need to include the elements we want to animate inside our ReactCSSTransitionGroup component. Every time we add an item to our Todo list, we can see that our special classes (.todo-enter and .todo-enter-active) are being injected for a second to start our animation:

And if we remove an item, we will see the .todo-leave and .todo-leave-active classes for a second:

As you can see, using ReactCSSTransitionGroup helps us to handle the states of our animations. You can use this to create better animations in your React application.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.246.159