Skip to content
A spinning loader, with dots
HTML JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows doc: lien demo Jan 10, 2020
.gitignore First commit Jan 10, 2020
.prettierrc fix: connectedCallbacks Jan 21, 2020
index.html doc: github link added on the demo Jan 10, 2020
index.js fix: connectedCallbacks Jan 21, 2020
package.json fix: connectedCallbacks Jan 21, 2020
yarn.lock First commit Jan 10, 2020

Customized built-in elements <spinning-dots>


The goal of this module is to have a reusable component to display a spinning loader. Live demo


With npm

Install the package using npm or yarn

npm i @grafikart/spinning-dots-element
# or
yarn add @grafikart/spinning-dots-element

Then import it in your script

import '@grafikart/spinning-dots-element'


<script type="module" src="//"></script>

Then use the custom element in your html using <spinning-dots>.

<-- This will create a loader with a 68px width  -->

<-- Everything scales according to the width -->
<spinning-dots style="width:100px;"></spinning-dots>

<-- Every configuration possible -->
<spinning-dots style="width:100px; stroke-width:20px; color: #535FF6;" dots="8"></spinning-dots>


Attribute Type Description
dots number The number of dots to display

CSS Styles

This custom element is affected by these styles

Property Description
width Set the size of the element
stroke-width Set the width of the trail
color Set the color, inherit the parent color by default



  • Make library usable using new SpinningDots()


  • Better default size


  • Initial release
You can’t perform that action at this time.