spinners | Vaadin

set of spinners

Published on Vaadin  Directory Published on NPM License - MIT



varied set of spinners, you can choose any of the 10 types and additional you can edit the color, the time of activity and visibility.

Use visible to show the spinner:

<spinner-element visible></spinner-element>


npm install spinner-element"@0.0.4" --save

Polymer Element to display a spinner

the polymer element shows a spinner, which we can select any of the 10 types, (default, bars, bubbles, circles, ripple, dots, folding, cube, bounce, infinity) but the type of spinner is specified, it will show the type 'default ', to activate it requires the' visible 'property

optionally we can set the activity time in milliseconds, if it is not set by default it is infinite


Screenshot of confirm-element


The following custom properties are available for styling

Custom property Description Default
--background-color-spinner The spinner-element background-color #b9b5b524
--background-border-infinity background-color only for infinite spinner #5d535314
--background-center-infinity background-color only for infinite spinner #ffffff00


In an html file

    <script type="module">
      import '.././spinner/spinner-element.js';
      <style is="custom-style">
        #spinner {
          --background-color-spinner: #f0f000;
    <spinner-element id="spinner" visible tipo="bars"></spinner-element>

In a Polymer 3 element

import {PolymerElement, html} from '@polymer/polymer';
import '.././spinner/spinner-element.js';

class SampleElement extends PolymerElement {
  static get template() {
    return html`
      <spinner-element visible tipo="bubbles"></spinner-element>
customElements.define('sample-element', SampleElement);


This repository is based on the CSS code of https://github.com/tobiasahlin/SpinKit You can also see a sample of the spinners in action http://tobiasahlin.com/spinkit/


Link to this version
ImportedReleased 25 March 2019MIT License
Framework Support
Polymer 3.0+
Browser Independent
Install with
npm install spinner-element"@0.0.4"
Run the above npm command in your project folder. If you have any issues installing, please contact the author.
Release notes - Version 0.0.4


  • @polymer/iron-meta#^3.0.1
  • @polymer/paper-item#^3.0.1
  • @polymer/paper-listbox#^3.0.1
  • @polymer/polymer#^3.0.0