An animated loading spinner
npm install spin.js
<link rel="stylesheet" href="https://github.com/fgnass/spin.js/blob/master/node_modules/spin.js/spin.css">
import {Spinner} from 'spin.js';
var target = document.getElementById('foo');
new Spinner({color:'#fff', lines: 12}).spin(target);
For an interactive demo and a list of all supported options please refer to the project's homepage.