Hoc pattern for animate components using the awesome animate.css library
npm install --save @darkimage/react-animate-hoc
you can watch the examples and the documentation at the DEMO WEBSITE
import React from 'react'
import { withAnimated } from 'react-animate-hoc'
import "animate.css" //dont forget to include the awesome animate.css
//if you are using your own component specify the `props.style` and `props.className` property
const MyAnimatedComponent = withAnimated((props) =>{
return
<div style={props.style} className={props.className}>
I'm a bouncing Div
</div>
},{
animation: "bounceIn" //specify an animation name from animate.css
});
MIT © darkimage