Zero configuration loading spinner.
Live demo from the example folder.
bower install react-spinner
npm install react-spinner
Plain old script tag:
(Compatible with CommonJS, e.g. Browserify.)
The CSS file:
Adds the spinner, which centers itself based on its container's dimensions. If those are not predefined, simply manually center it by adding more style rules to the exposed
.react-spinner class here.
You can also override the
height if you want a bigger or smaller spinner. Everything resizes correctly.