dropsource-react-loaders

Lightweight wrapper around Loaders.css

Usage no npm install needed!

<script type="module">
  import dropsourceReactLoaders from 'https://cdn.skypack.dev/dropsource-react-loaders';
</script>

README

React Loaders

Lightweight wrapper around Loaders.css.

Demo

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 @importing with Sass, make you use something like autoprefixer to add backwards compatibility.