A simple ios spinner built with css3 animation.
npm i ispinner -S
var ispinner = require('ispinner')
var el = document.getElementById('#spinner')
ispinner(el, {white: true})
el
is parent element to attach spinner elementoption
is optional, it containswhite
andwidth
- when
white
is true, spinner would be white color - when
width
is set, it would be applied to el.style.width and el.style.height.
- when
- spinner element is returned