-
Notifications
You must be signed in to change notification settings - Fork 161
How to install the package for react app??? #43
Comments
Doc has to be improve, here my guide for install react'animations with Radium in React app
Final code should look like this
|
Hello @Nikoobox use the command below to install the react-animation package using npm
if you are using styled components for styling in your react app, add the following code below import styled, { keyframes } from 'styled-components';
import { bounce } from 'react-animations';
const bounceAnimation = keyframes`${bounce}`;
const BouncyDiv = styled.div`
animation: 1s ${bounceAnimation};
`; you are free to make changes/switch to whichever animation you want Below is a list of all available animations in
|
If by any chance you are using version 16.8 and above of reactjs, you should use the command below to force install
|
Please include a simple line explaining how to npm install the package properly. It is not obvious for some programmers, especially for beginners
The text was updated successfully, but these errors were encountered: