In this recipe, we are going to learn how to use the library react-animations.
Using react-animations library
Getting ready
For this recipe, we need to install the following packages:
npm install react-animations radium
How to do it...
Let's do some animation:
- We need to use Radium to create our inline styles to use our animations from the react-animations package. First, let's create our component:
import React, { Component } from 'react';
import { fadeIn } from 'react-animations';
import Radium, { StyleRoot } from 'radium&apos...