1.0.0 • Published 10 years ago
react-loading-order-with-animation v1.0.0
React Loading Order With Animation
Animate components in order.
Installation
npm install react-loading-order-with-animation
Usage
import LoadingOrderAnimation from 'react-loading-order-with-animation';
<LoadingOrderAnimation animation="fade-in"
move="from-bottom-to-top"
distance={30}
speed={1000}
wait={300}>
<div>
Children component
</div>
</LoadingOrderAnimation>Props
animation(String) - effect, values:fade-in, default:fade-inmove(String) - direction, values:from-top-to-bottom,from-bottom-to-top,from-left-to-right,from-right-to-left, default:nonedistance(Number) - direction distance in px, default:0speed(Number) - animation speed in ms, default:700wait(Number) - wait before animation, after, default:100block(String) - css style, values:inline,block, default:block
Development
$ npm installRun app
$ npm startAnd open in browser: http://localhost:4000
Build
$ npm run build1.0.0
10 years ago