ispinner

0.0.2 • Public • Published

Ispinner

A simple ios spinner built with css3 animation.

Install

npm i ispinner -S

Usage

var ispinner = require('ispinner')
var el = document.getElementById('#spinner')
ispinner(el, {white: true})

API

ispinner(el, [option])

  • el is parent element to attach spinner element
  • option is optional, it contains white and width
    • 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.
  • spinner element is returned

Readme

Keywords

none

Package Sidebar

Install

npm i ispinner

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • chemzqm