dropsource-react-loaders
v1.2.3-ds.1
Published
Lightweight wrapper around Loaders.css
Downloads
4
Readme
React Loaders
Lightweight wrapper around Loaders.css.
Install
npm install --save react-loaders loaders.css
Usage
Require the component.
var Loader = require('react-loaders').Loader;
function renderLoader() {
return <Loader type="line-scale" active="true" />
}
Import any of the animations you want to use.
$primary-color: $my-brand-color;
@import 'loaders.css/src/animations/line-scale.scss'
.loader-hidden {
display: none;
}
.loader-active {
display: block;
}
If @import
ing with Sass, make you use something like autoprefixer to add backwards compatibility.