Element providing a multiple color material design circular spinner.
See: Documentation, Demo.
npm install --save @polymer/paper-spinner
<html>
<head>
<script type="module">
import '@polymer/paper-spinner/paper-spinner.js';
</script>
</head>
<body>
<paper-spinner active></paper-spinner>
</body>
</html>
import {PolymerElement, html} from '@polymer/polymer';
import '@polymer/paper-spinner/paper-spinner.js';
class SampleElement extends PolymerElement {
static get template() {
return html`
<paper-spinner active></paper-spinner>
`;
}
}
customElements.define('sample-element', SampleElement);
If you want to send a PR to this element, here are the instructions for running the tests and demo locally:
git clone https://github.com/PolymerElements/paper-spinner
cd paper-spinner
npm install
npm install -g polymer-cli
polymer serve --npm
open http://127.0.0.1:<port>/demo/
polymer test --npm