

It had to be easy to install and use, and offer enough flexibility that we could customise the animations to suit the project. What we needed was something in between – something that made it easy to apply animation to elements and offered a consistent set of pre-built animations we could apply to our projects knowing that the results would be reliable and consistent. On the other hand, projects like React Spring offer advanced animation tools for handling large sets of animated elements. Unfortunately though, React Transition Group doesn’t bring any animations, you still need to handle that part yourself. React Transition Group offers a handy approach to adding and removing classes so that we can then apply animations to it. There are lots of good ways of building animations into our React UI. Why not just use something else? That’s a fair question.

React Animation is a helpful package of wrapper components along with pre-built animations you can apply to projects easily. We’ve been working on ways to make adding UI animation to React projects quicker and easier, including releasing a new package called React Animation. It can become a problem when we leave this to last and put together quick solutions as needed, we can create situations where our animations aren’t consistent, applied to the wrong things, or even forgotten entirely. They need movement to smooth the transition between states or to draw attention to the most important action or newest content.įor example, we might want to add a little animation when a price changes so that people don’t miss it, as in this little example: How UI moves often finds itself thrown in as an afterthought. It’s easy to let this happen – designs tend to take shape in the form of flat images, and when we’re coding we’re thinking about browser compatibility, screen sizes, and the implementation of features.

We often forget about how animation is going to feature into our web projects. With these helpful components and prebuilt animation keyframes, you’ll be adding animation to your apps in no time. Animating your React apps doesn’t have to be a hassle.
