This is a material design style SVG/CSS3 loader spinner which degrades gracefully in browsers that do not support SVG animations.
The library is using vanilla javascript. No external libraries required.
Include flexpaper-spinner.css and flexpaper.spinner.js on your web page.
Create a element that you want to use as place holder for your spinner. In this example we'll use:
<div id="spinner-target" style="left:60%;top:40%;"></div>
<script>
FLEXPAPER.utils.addSpinner({
element : 'spinner-target',
width : 100,
height : 100,
logo : 'images/flexpaper-logo.png'
});
</script>
Maintained and sponsored by █▒▓▒░ The FlexPaper Project