Installation

Include the script after jquery.

<script src="path/to/jquery.min.js"></script>
<script src="path/to/material.spinner.min.js"></script>

or require it in CommonJS

var $ = require('jquery');
require('material-spinner');

Usage

via Data API

<div id="spinner" data-spinner='{"radius": 50}'></div>

via Javascript

$('#spinner').spinner({color: '#ff0000'});

Options

Name dafault description
radius 25 Optional, in px
strokeWidth 5 Optional, in px
duration 2 Optional, in sencond. Represent the duaration of a round
color '#3f88f8' Optional. MUST BE a valid color hex string