React animations with animate.css
Installation
Using npm:
$ npm install --save animate.css-react
$ npm install --save animate.css
Run Demo
$ git clone https://github.com/kurdin/animate.css-react
$ cd animate.css-react
$ npm install
$ npm run demo
Open browser in http://localhost:8080
Notes
You need to install and require animate.css yourself.
Usage
import Animate from 'animate.css-react'
import 'animate.css/animate.css'
<Animate
enter="bounceIn"
leave="bounceOut"
appear="fadeInRight"
change="flipInX"
durationAppear={1000}
durationEnter={1000}
durationLeave={1000}
durationChange={1000}
animate={true|false|expression}
animateChangeIf={true|false|expression}
component="ul">
{this.state.items.map(item => <li key={item.id}>{item.name}</li>)}
</Animate>
<Animate
appear="fadeInDown"
durationAppear={1000}
component="div" >
<h1>react animate.css</h1>
</Animate>
based on https://github.com/thiagoc7/react-animate.css